Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009765/0.0009767, allocations: 95.45 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008829/0.000883, allocations: 186 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.2 MB / 241.8 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1845/0.1845, allocations: 44.23 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.0004331, allocations: 8 kB / 409.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.1637, allocations: 61.91 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.3744/0.5382, allocations: 75.04 MB / 0.5338 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04668/0.5849, allocations: 17.08 MB / 0.5504 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0227/0.6076, allocations: 374 kB / 0.5508 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01657/0.6243, allocations: 3.811 MB / 0.5545 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04088/0.6652, allocations: 10.73 MB / 0.565 GB, free: 3.926 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005978/0.6712, allocations: 0.9136 MB / 0.5659 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.06856/0.7398, allocations: 48.71 MB / 0.6135 GB, free: 2.258 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01178/0.7517, allocations: 6.985 MB / 0.6203 GB, free: 11.23 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003991/0.7557, allocations: 1.417 MB / 0.6217 GB, free: 9.805 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003705/0.7594, allocations: 1.834 MB / 0.6235 GB, free: 7.965 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001372/0.7608, allocations: 200 kB / 0.6236 GB, free: 7.77 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003328/0.7642, allocations: 1.073 MB / 0.6247 GB, free: 6.695 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003512/0.7677, allocations: 2.237 MB / 0.6269 GB, free: 4.453 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002529/0.7703, allocations: 1.174 MB / 0.628 GB, free: 3.27 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01006/0.7804, allocations: 7.967 MB / 0.6358 GB, free: 11.29 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.7804, allocations: 4 kB / 0.6358 GB, free: 11.28 MB / 478.1 MB Notification: Performance of FrontEnd: time 5.29e-06/0.7804, allocations: 0 / 0.6358 GB, free: 11.28 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0003672/0.7808, allocations: 3.938 kB / 0.6358 GB, free: 11.28 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2101 * Number of variables: 2101 Notification: Performance of Generate backend data structure: time 0.01484/0.7956, allocations: 6.085 MB / 0.6418 GB, free: 5.113 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.7957, allocations: 8.031 kB / 0.6418 GB, free: 5.105 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003214/0.7989, allocations: 0.9999 MB / 0.6427 GB, free: 4.094 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04225/0.8412, allocations: 8.137 MB / 0.6507 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/0.8521, allocations: 4.023 MB / 0.6546 GB, free: 7.855 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003954/0.8526, allocations: 348.9 kB / 0.655 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002347/0.8549, allocations: 467.6 kB / 0.6554 GB, free: 7.055 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03234/0.8873, allocations: 14.8 MB / 0.6698 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001968/0.8875, allocations: 63.42 kB / 0.6699 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006538/0.8882, allocations: 215.8 kB / 0.6701 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004785/0.893, allocations: 2.79 MB / 0.6728 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02653/0.9195, allocations: 12.7 MB / 0.6852 GB, free: 7.613 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3656/1.285, allocations: 53.4 MB / 0.7374 GB, free: 161 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01685/1.302, allocations: 6.312 MB / 0.7436 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02137/1.324, allocations: 12.98 MB / 0.7562 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/1.324, allocations: 56.09 kB / 0.7563 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=228): time 5.25e-06/1.324, allocations: 3.562 kB / 0.7563 GB, free: 153.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=270): time 0.06832/1.392, allocations: 28.94 MB / 0.7845 GB, free: 129 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/1.392, allocations: 221.7 kB / 0.7848 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006472/1.399, allocations: 5.259 MB / 0.7899 GB, free: 123.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008461/1.399, allocations: 65.7 kB / 0.79 GB, free: 123.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002352/1.402, allocations: 4.027 MB / 0.7939 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001742/1.404, allocations: 1.005 MB / 0.7949 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003175/1.404, allocations: 144 kB / 0.795 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003415/1.404, allocations: 0.6116 MB / 0.7956 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003856/1.408, allocations: 3.063 MB / 0.7986 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005637/1.414, allocations: 7.133 MB / 0.8056 GB, free: 105.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005397/1.419, allocations: 4.578 MB / 0.81 GB, free: 101 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.964e-05/1.419, allocations: 40 kB / 0.8101 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=934) (initialization): time 0.01767/1.437, allocations: 11.56 MB / 0.8214 GB, free: 89.35 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.425e-05/1.437, allocations: 64 kB / 0.8214 GB, free: 89.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/1.437, allocations: 147.9 kB / 0.8216 GB, free: 89.14 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003756/1.441, allocations: 1.766 MB / 0.8233 GB, free: 87.37 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005764/1.447, allocations: 1.653 MB / 0.8249 GB, free: 85.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/1.46, allocations: 12.3 MB / 0.8369 GB, free: 73.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006623/1.466, allocations: 431 kB / 0.8373 GB, free: 72.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001271/1.468, allocations: 435.1 kB / 0.8377 GB, free: 72.31 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 654 * Number of states: 0 () * Number of discrete variables: 59 (frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.arrowLine.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 (862): * Single equations (assignments): 857 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005566/1.473, allocations: 2.803 MB / 0.8405 GB, free: 69.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001203/1.474, allocations: 458.1 kB / 0.8409 GB, free: 69.05 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009632/1.484, allocations: 6.253 MB / 0.847 GB, free: 62.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-05/1.484, allocations: 28 kB / 0.8471 GB, free: 62.74 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/1.484, allocations: 12 kB / 0.8471 GB, free: 62.73 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.971e-05/1.484, allocations: 15.91 kB / 0.8471 GB, free: 62.71 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02465/1.509, allocations: 13.83 MB / 0.8606 GB, free: 48.88 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/1.509, allocations: 0 / 0.8606 GB, free: 48.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/1.511, allocations: 458.5 kB / 0.861 GB, free: 48.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0034/1.515, allocations: 1.529 MB / 0.8625 GB, free: 46.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002666/1.515, allocations: 44 kB / 0.8626 GB, free: 46.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01283/1.528, allocations: 11.57 MB / 0.8739 GB, free: 35.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/1.528, allocations: 4 kB / 0.8739 GB, free: 35.03 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01373/1.541, allocations: 10.14 MB / 0.8838 GB, free: 24.8 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001965/1.543, allocations: 0.5146 MB / 0.8843 GB, free: 24.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000568/1.544, allocations: 41 kB / 0.8843 GB, free: 24.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.546, allocations: 203.7 kB / 0.8845 GB, free: 24.03 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004434/1.546, allocations: 149.8 kB / 0.8846 GB, free: 23.88 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/1.547, allocations: 71.91 kB / 0.8847 GB, free: 23.82 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004373/1.551, allocations: 3.344 MB / 0.888 GB, free: 20.48 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.551, allocations: 0 / 0.888 GB, free: 20.48 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006705/1.558, allocations: 1.443 MB / 0.8894 GB, free: 19.05 MB / 0.5294 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01273/1.57, allocations: 10.98 MB / 0.9001 GB, free: 7.98 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01086/1.581, allocations: 7.641 MB / 0.9076 GB, free: 344 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.581, allocations: 0 / 0.9076 GB, free: 344 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.2761/1.858, allocations: 3.231 MB / 0.9107 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004268/1.862, allocations: 0.617 MB / 0.9113 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.126/1.988, allocations: 149.9 MB / 1.058 GB, free: 47.66 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004841/1.993, allocations: 4.493 MB / 1.062 GB, free: 43.12 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005669/1.999, allocations: 2.333 MB / 1.064 GB, free: 40.79 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003755/2.002, allocations: 2.741 MB / 1.067 GB, free: 38.04 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/2.002, allocations: 0 / 1.067 GB, free: 38.04 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4609/2.463, allocations: 111.4 MB / 1.176 GB, free: 120.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/2.464, allocations: 213.8 kB / 1.176 GB, free: 120.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.996/7.46, allocations: 2.188 kB / 1.176 GB, free: 120.2 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat