Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces.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.WorldForces,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001326, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2254/0.2254, allocations: 46.11 MB / 344.2 MB, free: 11.55 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.002308/0.002308, allocations: 77.41 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1259, allocations: 62.46 MB / 480.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldForces): time 0.01839/0.1444, allocations: 16.29 MB / 496.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.1571, allocations: 5.252 MB / 0.49 GB, free: 15.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005094/0.1622, allocations: 111.7 kB / 0.4901 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01173/0.1741, allocations: 5.502 MB / 0.4955 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00782/0.1819, allocations: 2.614 MB / 0.498 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003126/0.1851, allocations: 1.178 MB / 0.4992 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2468/0.4319, allocations: 8.225 MB / 0.5072 GB, free: 13.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01134/0.4433, allocations: 6.918 MB / 0.514 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006933/0.4503, allocations: 2.661 MB / 0.5166 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007621/0.458, allocations: 3.65 MB / 0.5201 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003794/0.4618, allocations: 0.5789 MB / 0.5207 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005808/0.4676, allocations: 1.449 MB / 0.5221 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006129/0.4738, allocations: 3.335 MB / 0.5254 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008007/0.4819, allocations: 3.807 MB / 0.5291 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.4961, allocations: 11.36 MB / 0.5402 GB, free: 2.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.4962, allocations: 0 / 0.5402 GB, free: 2.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.4962, allocations: 0 / 0.5402 GB, free: 2.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005395/0.4967, allocations: 3.25 kB / 0.5402 GB, free: 2.668 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: 2313 * Number of variables: 2313 Notification: Performance of Generate backend data structure: time 0.0265/0.5233, allocations: 8.308 MB / 0.5483 GB, free: 12.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.5233, allocations: 12.03 kB / 0.5483 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004318/0.5277, allocations: 1.097 MB / 0.5494 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05798/0.5857, allocations: 8.307 MB / 0.5575 GB, free: 3.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/0.5996, allocations: 5.501 MB / 0.5629 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004981/0.6001, allocations: 400.1 kB / 0.5632 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002199/0.6023, allocations: 0.5263 MB / 0.5638 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03301/0.6353, allocations: 15.18 MB / 0.5786 GB, free: 13.03 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003015/0.6357, allocations: 81.73 kB / 0.5787 GB, free: 12.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001289/0.637, allocations: 247.2 kB / 0.5789 GB, free: 12.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005348/0.6423, allocations: 2.806 MB / 0.5816 GB, free: 10.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02587/0.6682, allocations: 12.38 MB / 0.5937 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0836/0.7519, allocations: 61.17 MB / 0.6535 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0157/0.7676, allocations: 5.468 MB / 0.6588 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005805/0.7735, allocations: 3.602 MB / 0.6623 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002797/0.7738, allocations: 50.22 kB / 0.6624 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.658e-05/0.7739, allocations: 59.55 kB / 0.6624 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 9.819e-06/0.7739, allocations: 4.109 kB / 0.6624 GB, free: 6.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=262): time 0.08609/0.86, allocations: 28.81 MB / 0.6906 GB, free: 9.555 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002259/0.8603, allocations: 293.3 kB / 0.6908 GB, free: 9.207 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01643/0.8767, allocations: 7.067 MB / 0.6978 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008249/0.8776, allocations: 63.89 kB / 0.6978 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.005536/0.8831, allocations: 4.81 MB / 0.7025 GB, free: 13.29 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001709/0.8849, allocations: 1.018 MB / 0.7035 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004431/0.8893, allocations: 1.721 MB / 0.7052 GB, free: 10.54 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.8895, allocations: 305.1 kB / 0.7055 GB, free: 10.24 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005489/0.895, allocations: 3.191 MB / 0.7086 GB, free: 7.039 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2193/1.114, allocations: 8.368 MB / 0.7168 GB, free: 179.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/1.128, allocations: 12.54 MB / 0.729 GB, free: 170.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003211/1.129, allocations: 55.09 kB / 0.7291 GB, free: 170.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1100) (initialization): time 0.0365/1.165, allocations: 12.52 MB / 0.7413 GB, free: 166.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002288/1.166, allocations: 82.62 kB / 0.7414 GB, free: 166.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003677/1.166, allocations: 186.5 kB / 0.7415 GB, free: 166.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007004/1.173, allocations: 1.531 MB / 0.743 GB, free: 166.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01274/1.186, allocations: 1.983 MB / 0.745 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02422/1.21, allocations: 13.3 MB / 0.758 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01286/1.223, allocations: 479 kB / 0.7584 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002473/1.226, allocations: 0.5049 MB / 0.7589 GB, free: 157.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 830 * Number of states: 0 () * Number of discrete variables: 71 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,worldTorque1.arrow.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldForce.arrow.twoHeadedArrow,worldForce.arrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (1025): * Single equations (assignments): 1019 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,13,100.0%), (1,14,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00922/1.235, allocations: 3.182 MB / 0.762 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00167/1.236, allocations: 0.5854 MB / 0.7626 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01607/1.253, allocations: 5.615 MB / 0.7681 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.002e-05/1.253, allocations: 30.62 kB / 0.7681 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-05/1.253, allocations: 6.625 kB / 0.7681 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.976e-05/1.253, allocations: 14.3 kB / 0.7681 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02837/1.281, allocations: 13.32 MB / 0.7811 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.853e-05/1.281, allocations: 4 kB / 0.7811 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002301/1.284, allocations: 463.3 kB / 0.7816 GB, free: 143.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003334/1.287, allocations: 1.251 MB / 0.7828 GB, free: 141.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000556/1.287, allocations: 47.98 kB / 0.7828 GB, free: 141.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/1.299, allocations: 12.35 MB / 0.7949 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.299, allocations: 7.922 kB / 0.7949 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/1.312, allocations: 9.352 MB / 0.804 GB, free: 119.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/1.314, allocations: 0.6455 MB / 0.8047 GB, free: 119.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002047/1.316, allocations: 47.98 kB / 0.8047 GB, free: 119.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003432/1.32, allocations: 156.3 kB / 0.8049 GB, free: 119 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006711/1.32, allocations: 162.4 kB / 0.805 GB, free: 118.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003315/1.321, allocations: 67.73 kB / 0.8051 GB, free: 118.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007651/1.328, allocations: 4.518 MB / 0.8095 GB, free: 114.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.91e-07/1.328, allocations: 0 / 0.8095 GB, free: 114.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008716/1.337, allocations: 1.56 MB / 0.811 GB, free: 112.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (204): * Single equations (assignments): 198 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(4,18,75.0%), (1,11,100.0%), (1,10,100.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.351, allocations: 10.03 MB / 0.8208 GB, free: 102.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01491/1.365, allocations: 9.165 MB / 0.8298 GB, free: 93.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/1.366, allocations: 0 / 0.8298 GB, free: 93.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004265/1.37, allocations: 2.964 MB / 0.8327 GB, free: 90.46 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006674/1.377, allocations: 0.8663 MB / 0.8335 GB, free: 89.61 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3367/1.713, allocations: 96.28 MB / 0.9275 GB, free: 192.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01235/1.726, allocations: 4.844 MB / 0.9323 GB, free: 191.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0104/1.736, allocations: 2.788 MB / 0.935 GB, free: 191.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006514/1.743, allocations: 3.185 MB / 0.9381 GB, free: 191.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.824e-06/1.743, allocations: 1.062 kB / 0.9381 GB, free: 191.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2107/1.953, allocations: 126 MB / 1.061 GB, free: 87.13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/15.81, allocations: 3.938 kB / 1.061 GB, free: 87.12 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces_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_WorldForces.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1)