Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.conf.json 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/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutForceAndTorque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForceAndTorque.force.3.|cutForceAndTorque.torque.3.|cutForceAndTorque.force.2.|cutForceAndTorque.torque.2.|cutForceAndTorque.force.1.|cutForceAndTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3") translateModel(ModelicaTest.MultiBody.Sensors.CutForceAndTorque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutForceAndTorque.force.3.|cutForceAndTorque.torque.3.|cutForceAndTorque.force.2.|cutForceAndTorque.torque.2.|cutForceAndTorque.force.1.|cutForceAndTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001096, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.6 MB / 243.1 MB, free: 14.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007283/0.0007281, allocations: 97.31 kB / 295.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1672/0.1672, allocations: 44.83 MB / 392 MB, free: 9.301 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002325, allocations: 8 kB / 464.8 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.08841, allocations: 62.94 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutForceAndTorque3): time 0.221/0.3095, allocations: 47.58 MB / 0.5618 GB, free: 12.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02045/0.3299, allocations: 9.739 MB / 0.5713 GB, free: 4.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008531/0.3385, allocations: 223.5 kB / 0.5715 GB, free: 4.051 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005462/0.344, allocations: 2.069 MB / 0.5735 GB, free: 1.973 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01347/0.3575, allocations: 5.922 MB / 0.5793 GB, free: 12.03 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.359, allocations: 303.6 kB / 0.5796 GB, free: 11.73 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003325/0.3623, allocations: 3.063 MB / 0.5826 GB, free: 8.664 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004592/0.3669, allocations: 3.799 MB / 0.5863 GB, free: 4.816 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008888/0.3678, allocations: 0.7861 MB / 0.5871 GB, free: 4.027 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001182/0.369, allocations: 1.184 MB / 0.5882 GB, free: 2.84 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.3692, allocations: 104 kB / 0.5883 GB, free: 2.738 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009069/0.3701, allocations: 0.5461 MB / 0.5889 GB, free: 2.191 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008326/0.371, allocations: 1.177 MB / 0.59 GB, free: 1.012 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004262/0.3714, allocations: 0.6169 MB / 0.5906 GB, free: 396 kB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003134/0.3745, allocations: 4.142 MB / 0.5947 GB, free: 12.23 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3745, allocations: 0 / 0.5947 GB, free: 12.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3746, allocations: 0 / 0.5947 GB, free: 12.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.216e-05/0.3746, allocations: 0 / 0.5947 GB, free: 12.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1183 * Number of variables: 1183 Notification: Performance of Generate backend data structure: time 0.003715/0.3783, allocations: 2.821 MB / 0.5974 GB, free: 9.348 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.3784, allocations: 8.031 kB / 0.5974 GB, free: 9.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004785/0.3832, allocations: 1.7 MB / 0.5991 GB, free: 7.633 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002224/0.3854, allocations: 1.511 MB / 0.6006 GB, free: 6.074 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/0.3855, allocations: 180.7 kB / 0.6007 GB, free: 5.895 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003491/0.3859, allocations: 243.9 kB / 0.601 GB, free: 5.656 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00935/0.3952, allocations: 7.47 MB / 0.6083 GB, free: 13.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.64e-05/0.3953, allocations: 11.88 kB / 0.6083 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/0.3956, allocations: 115.8 kB / 0.6084 GB, free: 13.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002144/0.3977, allocations: 1.568 MB / 0.6099 GB, free: 12.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009358/0.4071, allocations: 6.219 MB / 0.616 GB, free: 5.941 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02475/0.4319, allocations: 23.31 MB / 0.6387 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004075/0.436, allocations: 2.199 MB / 0.6409 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009331/0.4369, allocations: 0.7717 MB / 0.6416 GB, free: 10.92 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005587/0.4425, allocations: 3.888 MB / 0.6454 GB, free: 6.891 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.4426, allocations: 47.06 kB / 0.6455 GB, free: 6.836 MB / 458.7 MB Notification: Performance of pre-optimization done (n=87): time 2.464e-06/0.4426, allocations: 0 / 0.6455 GB, free: 6.836 MB / 458.7 MB Notification: Performance of matching and sorting (n=87): time 0.005527/0.4481, allocations: 2.244 MB / 0.6477 GB, free: 4.586 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.4482, allocations: 59.97 kB / 0.6477 GB, free: 4.516 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002341/0.4505, allocations: 2.089 MB / 0.6498 GB, free: 2.379 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.4506, allocations: 33.7 kB / 0.6498 GB, free: 2.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00119/0.4518, allocations: 2.124 MB / 0.6519 GB, free: 188 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002532/0.452, allocations: 343.8 kB / 0.6522 GB, free: 15.84 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.764e-05/0.4521, allocations: 64 kB / 0.6523 GB, free: 15.78 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.4524, allocations: 456.7 kB / 0.6527 GB, free: 15.33 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.4536, allocations: 0.9275 MB / 0.6536 GB, free: 14.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002434/0.456, allocations: 2.901 MB / 0.6564 GB, free: 10.51 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001979/0.458, allocations: 1.645 MB / 0.658 GB, free: 8.867 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-05/0.458, allocations: 20 kB / 0.6581 GB, free: 8.848 MB / 474.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.004787/0.4628, allocations: 3.726 MB / 0.6617 GB, free: 5.121 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.266e-05/0.4629, allocations: 36 kB / 0.6617 GB, free: 5.086 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.738e-05/0.463, allocations: 68 kB / 0.6618 GB, free: 5.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.918e-05/0.4631, allocations: 104 kB / 0.6619 GB, free: 4.918 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001783/0.4648, allocations: 0.6979 MB / 0.6626 GB, free: 4.219 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-05/0.465, allocations: 139.4 kB / 0.6627 GB, free: 4.082 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/0.4665, allocations: 439.2 kB / 0.6631 GB, free: 3.648 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002134/0.4668, allocations: 196 kB / 0.6633 GB, free: 3.457 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 318 * Number of states: 0 () * Number of discrete variables: 34 (cutForceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,cutForceAndTorque.torqueArrow.headAtOrigin,cutForceAndTorque.forceArrow.arrowLine.twoHeadedArrow,cutForceAndTorque.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutForceAndTorque.torqueColor[3],cutForceAndTorque.torqueColor[2],cutForceAndTorque.torqueColor[1],cutForceAndTorque.forceColor[3],cutForceAndTorque.forceColor[2],cutForceAndTorque.forceColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (388): * Single equations (assignments): 383 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001907/0.4687, allocations: 1.562 MB / 0.6649 GB, free: 1.883 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.4689, allocations: 169.8 kB / 0.665 GB, free: 1.715 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002719/0.4691, allocations: 214.7 kB / 0.6652 GB, free: 1.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/0.4692, allocations: 19.92 kB / 0.6652 GB, free: 1.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4692, allocations: 0 / 0.6652 GB, free: 1.48 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4692, allocations: 0 / 0.6652 GB, free: 1.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006666/0.4759, allocations: 5.088 MB / 0.6702 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.348e-06/0.4759, allocations: 8 kB / 0.6702 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004177/0.4763, allocations: 111.8 kB / 0.6703 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.499e-05/0.4763, allocations: 12 kB / 0.6703 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.478e-05/0.4764, allocations: 27.98 kB / 0.6704 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.195e-05/0.4764, allocations: 19.88 kB / 0.6704 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.859e-06/0.4764, allocations: 15.94 kB / 0.6704 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.4779, allocations: 1.395 MB / 0.6718 GB, free: 10.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004126/0.4783, allocations: 302.3 kB / 0.672 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.4785, allocations: 20 kB / 0.6721 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005043/0.479, allocations: 35.88 kB / 0.6721 GB, free: 10.13 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.498e-05/0.4791, allocations: 67.72 kB / 0.6722 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.519e-05/0.4792, allocations: 32 kB / 0.6722 GB, free: 10.03 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001835/0.481, allocations: 1.465 MB / 0.6736 GB, free: 8.547 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.481, allocations: 3.938 kB / 0.6736 GB, free: 8.543 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002373/0.4834, allocations: 0.8086 MB / 0.6744 GB, free: 7.73 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 0 () * 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 (63): * Single equations (assignments): 60 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002587/0.4837, allocations: 154.9 kB / 0.6746 GB, free: 7.566 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002812/0.4865, allocations: 2.155 MB / 0.6767 GB, free: 5.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4865, allocations: 0 / 0.6767 GB, free: 5.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005746/0.4871, allocations: 0.5025 MB / 0.6772 GB, free: 4.93 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.4883, allocations: 282.8 kB / 0.6774 GB, free: 4.656 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009841/0.4982, allocations: 7.614 MB / 0.6849 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/0.5007, allocations: 2.604 MB / 0.6874 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004529/0.5012, allocations: 167.4 kB / 0.6876 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of SimCode: time 7.51e-07/0.5012, allocations: 0 / 0.6876 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of Templates: time 0.2433/0.7444, allocations: 34.27 MB / 0.721 GB, free: 167 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutForceAndTorque3/CutForceAndTorque3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches