Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001692/0.001692, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002/0.002, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.512/1.512, allocations: 227.4 MB / 247 MB, free: 10.45 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.2241/0.2241, allocations: 46.12 MB / 344.4 MB, free: 11.47 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.002585/0.002585, allocations: 83.86 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3123, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.01594/0.3283, allocations: 13.65 MB / 0.5439 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.3385, allocations: 4.733 MB / 0.5486 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002395/0.341, allocations: 94.31 kB / 0.5487 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008731/0.3498, allocations: 4.456 MB / 0.553 GB, free: 10.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006721/0.3565, allocations: 2.198 MB / 0.5552 GB, free: 8.531 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003046/0.3596, allocations: 1.143 MB / 0.5563 GB, free: 7.387 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009981/0.3696, allocations: 6.346 MB / 0.5625 GB, free: 1.023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007973/0.3776, allocations: 5.554 MB / 0.5679 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003981/0.3816, allocations: 2.232 MB / 0.5701 GB, free: 9.168 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004657/0.3863, allocations: 2.94 MB / 0.5729 GB, free: 6.219 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001506/0.3879, allocations: 496 kB / 0.5734 GB, free: 5.734 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/0.3913, allocations: 1.494 MB / 0.5749 GB, free: 4.238 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003798/0.3951, allocations: 2.681 MB / 0.5775 GB, free: 1.551 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005357/0.4005, allocations: 3.119 MB / 0.5805 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01393/0.4145, allocations: 9.876 MB / 0.5902 GB, free: 4.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.4145, allocations: 4 kB / 0.5902 GB, free: 4.496 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.988e-06/0.4145, allocations: 0 / 0.5902 GB, free: 4.496 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002959/0.4148, allocations: 3.938 kB / 0.5902 GB, free: 4.492 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1985 * Number of variables: 1985 Notification: Performance of Generate backend data structure: time 0.01734/0.4322, allocations: 7.037 MB / 0.5971 GB, free: 13.36 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4322, allocations: 8.031 kB / 0.5971 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001999/0.4343, allocations: 0.9503 MB / 0.598 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03909/0.4734, allocations: 6.093 MB / 0.604 GB, free: 6.289 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009434/0.4828, allocations: 4.286 MB / 0.6081 GB, free: 1.945 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003182/0.4832, allocations: 333 kB / 0.6085 GB, free: 1.617 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.4847, allocations: 455.7 kB / 0.6089 GB, free: 1.172 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02862/0.5133, allocations: 13.86 MB / 0.6224 GB, free: 2.484 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001936/0.5136, allocations: 55.58 kB / 0.6225 GB, free: 2.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009903/0.5146, allocations: 219.8 kB / 0.6227 GB, free: 2.215 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004997/0.5196, allocations: 2.531 MB / 0.6252 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02598/0.5456, allocations: 11.88 MB / 0.6368 GB, free: 3.789 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07021/0.6159, allocations: 51.37 MB / 0.6869 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01652/0.6324, allocations: 6.118 MB / 0.6929 GB, free: 8.832 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005339/0.6378, allocations: 3.733 MB / 0.6965 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02331/0.6612, allocations: 12.82 MB / 0.7091 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.6613, allocations: 60.5 kB / 0.7091 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=228): time 5.159e-06/0.6613, allocations: 0 / 0.7091 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of matching and sorting (n=270): time 0.3138/0.9751, allocations: 27.96 MB / 0.7364 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/0.9752, allocations: 212.5 kB / 0.7366 GB, free: 159 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007928/0.9832, allocations: 4.974 MB / 0.7415 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007376/0.984, allocations: 65.28 kB / 0.7416 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002497/0.9865, allocations: 3.998 MB / 0.7455 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001444/0.9879, allocations: 1.056 MB / 0.7465 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002756/0.9907, allocations: 1.451 MB / 0.7479 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.9908, allocations: 301.1 kB / 0.7482 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00419/0.995, allocations: 3.067 MB / 0.7512 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006063/1.001, allocations: 7.105 MB / 0.7581 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01031/1.011, allocations: 11.02 MB / 0.7689 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001208/1.012, allocations: 44 kB / 0.7689 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=922) (initialization): time 0.01928/1.031, allocations: 11.55 MB / 0.7802 GB, free: 114 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.031, allocations: 64 kB / 0.7803 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001594/1.031, allocations: 140 kB / 0.7804 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004318/1.036, allocations: 1.739 MB / 0.7821 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005477/1.041, allocations: 1.637 MB / 0.7837 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/1.055, allocations: 12.86 MB / 0.7963 GB, free: 97.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00623/1.061, allocations: 419.5 kB / 0.7967 GB, free: 96.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001464/1.062, allocations: 423.9 kB / 0.7971 GB, free: 96.44 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 59 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (850): * Single equations (assignments): 845 * 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 {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0051/1.067, allocations: 2.676 MB / 0.7997 GB, free: 93.75 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/1.069, allocations: 484.9 kB / 0.8001 GB, free: 93.28 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01071/1.079, allocations: 6.256 MB / 0.8062 GB, free: 86.99 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.142e-05/1.08, allocations: 31.91 kB / 0.8063 GB, free: 86.96 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.893e-05/1.08, allocations: 8 kB / 0.8063 GB, free: 86.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-05/1.08, allocations: 15.95 kB / 0.8063 GB, free: 86.94 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02474/1.104, allocations: 13.41 MB / 0.8194 GB, free: 73.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.93e-05/1.104, allocations: 0 / 0.8194 GB, free: 73.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/1.107, allocations: 451.3 kB / 0.8198 GB, free: 73.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00381/1.111, allocations: 1.53 MB / 0.8213 GB, free: 71.56 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006773/1.111, allocations: 44 kB / 0.8214 GB, free: 71.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/1.125, allocations: 12.23 MB / 0.8333 GB, free: 59.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.125, allocations: 4 kB / 0.8333 GB, free: 59.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/1.139, allocations: 10.11 MB / 0.8432 GB, free: 48.84 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001403/1.14, allocations: 0.5188 MB / 0.8437 GB, free: 48.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001474/1.142, allocations: 43.98 kB / 0.8437 GB, free: 48.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003318/1.145, allocations: 187.7 kB / 0.8439 GB, free: 48.08 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008468/1.146, allocations: 157.7 kB / 0.8441 GB, free: 47.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003686/1.147, allocations: 68 kB / 0.8441 GB, free: 47.86 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005474/1.152, allocations: 3.124 MB / 0.8472 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/1.152, allocations: 0 / 0.8472 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007259/1.159, allocations: 1.39 MB / 0.8485 GB, free: 43.36 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (212): * Single equations (assignments): 207 * 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,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01477/1.174, allocations: 10.78 MB / 0.8591 GB, free: 32.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01101/1.185, allocations: 7.656 MB / 0.8665 GB, free: 24.84 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.185, allocations: 4.375 kB / 0.8665 GB, free: 24.84 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00547/1.191, allocations: 3.257 MB / 0.8697 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005274/1.196, allocations: 0.646 MB / 0.8703 GB, free: 20.92 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1155/1.312, allocations: 62.66 MB / 0.9315 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007818/1.32, allocations: 4.183 MB / 0.9356 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006413/1.326, allocations: 2.301 MB / 0.9379 GB, free: 9.141 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005215/1.331, allocations: 2.6 MB / 0.9404 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of SimCode: time 9.22e-07/1.331, allocations: 0 / 0.9404 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4518/1.783, allocations: 101.2 MB / 1.039 GB, free: 165.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.6/24.38, allocations: 3.938 kB / 1.039 GB, free: 165.6 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1)