Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Force,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2326/0.2326, allocations: 46.11 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00223/0.00223, allocations: 79.48 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1241, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Force): time 0.01907/0.1432, allocations: 15.51 MB / 495.7 MB, free: 5.555 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.1558, allocations: 4.921 MB / 0.4889 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003912/0.1598, allocations: 107.7 kB / 0.489 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01034/0.1702, allocations: 5.008 MB / 0.4939 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006906/0.1771, allocations: 2.462 MB / 0.4963 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.1798, allocations: 1.104 MB / 0.4974 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009621/0.1894, allocations: 6.886 MB / 0.5041 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2124/0.4018, allocations: 5.769 MB / 0.5097 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004419/0.4063, allocations: 2.397 MB / 0.5121 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005747/0.4121, allocations: 3.22 MB / 0.5152 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003267/0.4154, allocations: 0.5035 MB / 0.5157 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005474/0.4209, allocations: 1.391 MB / 0.5171 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004772/0.4257, allocations: 2.978 MB / 0.52 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006854/0.4326, allocations: 3.407 MB / 0.5233 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.4443, allocations: 10.2 MB / 0.5333 GB, free: 6.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4443, allocations: 0 / 0.5333 GB, free: 6.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4443, allocations: 0 / 0.5333 GB, free: 6.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000355/0.4447, allocations: 0 / 0.5333 GB, free: 6.488 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01753/0.4622, allocations: 7.593 MB / 0.5407 GB, free: 1.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.4623, allocations: 7 kB / 0.5407 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002106/0.4644, allocations: 1.022 MB / 0.5417 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03843/0.5028, allocations: 6.186 MB / 0.5477 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01166/0.5145, allocations: 4.585 MB / 0.5522 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005226/0.5151, allocations: 359.5 kB / 0.5526 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002211/0.5173, allocations: 484.2 kB / 0.553 GB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/0.5507, allocations: 14.55 MB / 0.5672 GB, free: 8.691 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002118/0.5509, allocations: 62.8 kB / 0.5673 GB, free: 8.656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007374/0.5517, allocations: 224.3 kB / 0.5675 GB, free: 8.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005238/0.5569, allocations: 2.748 MB / 0.5702 GB, free: 5.777 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02821/0.5851, allocations: 12.24 MB / 0.5821 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08134/0.6665, allocations: 57.81 MB / 0.6386 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01955/0.6861, allocations: 7.161 MB / 0.6456 GB, free: 7.969 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005633/0.6918, allocations: 3.766 MB / 0.6493 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01548/0.7073, allocations: 8.757 MB / 0.6578 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.081e-05/0.7074, allocations: 67.2 kB / 0.6579 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=246): time 5.019e-06/0.7074, allocations: 4 kB / 0.6579 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=288): time 0.08737/0.7948, allocations: 30.93 MB / 0.6881 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001634/0.795, allocations: 240.8 kB / 0.6883 GB, free: 11.85 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01193/0.8069, allocations: 6.657 MB / 0.6948 GB, free: 5.195 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007088/0.8077, allocations: 69.7 kB / 0.6949 GB, free: 5.121 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00512/0.8128, allocations: 4.426 MB / 0.6992 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002094/0.8149, allocations: 1.094 MB / 0.7003 GB, free: 15.61 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00382/0.8188, allocations: 1.711 MB / 0.702 GB, free: 13.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.819, allocations: 301.1 kB / 0.7022 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005938/0.8249, allocations: 3.397 MB / 0.7056 GB, free: 10.18 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2159/1.041, allocations: 8.377 MB / 0.7137 GB, free: 183 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01506/1.056, allocations: 12.77 MB / 0.7262 GB, free: 174.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003139/1.056, allocations: 50.16 kB / 0.7263 GB, free: 174.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.0263/1.083, allocations: 13.05 MB / 0.739 GB, free: 170.2 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/1.083, allocations: 81.44 kB / 0.7391 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001776/1.083, allocations: 178.7 kB / 0.7393 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004269/1.087, allocations: 1.772 MB / 0.741 GB, free: 169.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007188/1.094, allocations: 1.957 MB / 0.7429 GB, free: 169.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01338/1.108, allocations: 12.75 MB / 0.7553 GB, free: 162.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007195/1.115, allocations: 498.2 kB / 0.7558 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/1.117, allocations: 0.5039 MB / 0.7563 GB, free: 162.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 796 * Number of states: 0 () * Number of discrete variables: 67 (force2.forceArrow.twoHeadedArrow,force2.forceArrow.headAtOrigin,force1.forceArrow.twoHeadedArrow,force1.forceArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],force2.connectionLineColor[3],force2.connectionLineColor[2],force2.connectionLineColor[1],force2.forceColor[3],force2.forceColor[2],force2.forceColor[1],force1.connectionLineColor[3],force1.connectionLineColor[2],force1.connectionLineColor[1],force1.forceColor[3],force1.forceColor[2],force1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,22,100.0%), (2,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005672/1.123, allocations: 2.981 MB / 0.7592 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/1.124, allocations: 0.5551 MB / 0.7598 GB, free: 160.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/1.134, allocations: 6.486 MB / 0.7661 GB, free: 155.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.993e-05/1.134, allocations: 30.66 kB / 0.7661 GB, free: 155.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-05/1.134, allocations: 12 kB / 0.7661 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-05/1.134, allocations: 24.11 kB / 0.7662 GB, free: 155.6 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02337/1.157, allocations: 14.43 MB / 0.7803 GB, free: 143.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-05/1.157, allocations: 11.84 kB / 0.7803 GB, free: 143.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002222/1.16, allocations: 495.2 kB / 0.7807 GB, free: 142.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003591/1.163, allocations: 1.523 MB / 0.7822 GB, free: 141.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004506/1.164, allocations: 55.98 kB / 0.7823 GB, free: 141 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01253/1.176, allocations: 11.94 MB / 0.7939 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.176, allocations: 11.94 kB / 0.794 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/1.19, allocations: 10.55 MB / 0.8043 GB, free: 118.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001558/1.192, allocations: 0.6225 MB / 0.8049 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001238/1.193, allocations: 52 kB / 0.8049 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003089/1.196, allocations: 189.2 kB / 0.8051 GB, free: 117.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008005/1.197, allocations: 185.6 kB / 0.8053 GB, free: 117.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002107/1.197, allocations: 77.31 kB / 0.8053 GB, free: 117.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006727/1.204, allocations: 4.278 MB / 0.8095 GB, free: 112.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 3e-07/1.204, allocations: 0 / 0.8095 GB, free: 112.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008011/1.212, allocations: 1.532 MB / 0.811 GB, free: 111.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 227 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,17,75.0%), (4,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01345/1.226, allocations: 11.23 MB / 0.822 GB, free: 99.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01432/1.24, allocations: 10.08 MB / 0.8318 GB, free: 89.87 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/1.24, allocations: 3.938 kB / 0.8318 GB, free: 89.87 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005182/1.245, allocations: 3.311 MB / 0.8351 GB, free: 86.54 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00548/1.251, allocations: 0.7587 MB / 0.8358 GB, free: 85.79 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.331/1.582, allocations: 94.19 MB / 0.9278 GB, free: 191.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009009/1.591, allocations: 4.531 MB / 0.9322 GB, free: 190.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00798/1.599, allocations: 2.791 MB / 0.9349 GB, free: 190.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004654/1.604, allocations: 2.944 MB / 0.9378 GB, free: 190.3 MB / 0.5606 GB Notification: Performance of SimCode: time 7.92e-07/1.604, allocations: 1.031 kB / 0.9378 GB, free: 190.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1678/1.771, allocations: 122.7 MB / 1.058 GB, free: 90.75 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.64/15.41, allocations: 6.5 kB / 1.058 GB, free: 90.74 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Force.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Force.pipe 2>&1)