Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque.torque.3.|cutTorque.torque.2.|cutTorque.torque.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009814/0.0009815, allocations: 200.2 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007479/0.0007479, allocations: 102.4 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1802/0.1802, allocations: 44.84 MB / 392 MB, free: 9.316 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002136/0.0002137, allocations: 4 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0894/0.08963, allocations: 62.96 MB / 0.5153 GB, free: 2.762 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.2002/0.2899, allocations: 34.11 MB / 0.5486 GB, free: 5.629 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01623/0.3062, allocations: 7.252 MB / 0.5557 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005841/0.312, allocations: 156.7 kB / 0.5559 GB, free: 0.668 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.3154, allocations: 1.503 MB / 0.5573 GB, free: 144 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01062/0.326, allocations: 4.401 MB / 0.5616 GB, free: 13.26 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.3272, allocations: 248.5 kB / 0.5619 GB, free: 13.1 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003828/0.3311, allocations: 2.687 MB / 0.5645 GB, free: 11.21 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003628/0.3347, allocations: 2.992 MB / 0.5674 GB, free: 8.172 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007784/0.3355, allocations: 0.685 MB / 0.5681 GB, free: 7.484 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001056/0.3366, allocations: 1.024 MB / 0.5691 GB, free: 6.457 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.3368, allocations: 88 kB / 0.5692 GB, free: 6.371 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008791/0.3376, allocations: 0.5343 MB / 0.5697 GB, free: 5.836 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007005/0.3384, allocations: 0.9895 MB / 0.5707 GB, free: 4.844 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003722/0.3387, allocations: 0.5235 MB / 0.5712 GB, free: 4.312 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.3414, allocations: 3.423 MB / 0.5745 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3415, allocations: 3.938 kB / 0.5745 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3415, allocations: 0 / 0.5745 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.148e-05/0.3415, allocations: 0 / 0.5745 GB, free: 0.8789 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1004 * Number of variables: 1004 Notification: Performance of Generate backend data structure: time 0.00322/0.3447, allocations: 2.448 MB / 0.5769 GB, free: 14.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.3448, allocations: 12.03 kB / 0.5769 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004609/0.3494, allocations: 1.626 MB / 0.5785 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.3513, allocations: 1.319 MB / 0.5798 GB, free: 11.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.702e-05/0.3514, allocations: 143.7 kB / 0.5799 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002817/0.3517, allocations: 191.9 kB / 0.5801 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007861/0.3596, allocations: 6.425 MB / 0.5864 GB, free: 4.344 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/0.3596, allocations: 11.88 kB / 0.5864 GB, free: 4.332 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002228/0.3599, allocations: 87.91 kB / 0.5865 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001932/0.3618, allocations: 1.411 MB / 0.5879 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008173/0.37, allocations: 5.454 MB / 0.5932 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.3919, allocations: 20.61 MB / 0.6133 GB, free: 8.176 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003611/0.3955, allocations: 2.007 MB / 0.6153 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008415/0.3964, allocations: 0.6875 MB / 0.6159 GB, free: 5.348 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005409/0.4018, allocations: 3.628 MB / 0.6195 GB, free: 1.578 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.4018, allocations: 42.94 kB / 0.6195 GB, free: 1.527 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 2.755e-06/0.4018, allocations: 0 / 0.6195 GB, free: 1.527 MB / 426.7 MB Notification: Performance of matching and sorting (n=78): time 0.004688/0.4065, allocations: 1.974 MB / 0.6214 GB, free: 15.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.4066, allocations: 59.8 kB / 0.6215 GB, free: 15.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.4088, allocations: 1.95 MB / 0.6234 GB, free: 13.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.631e-05/0.4088, allocations: 37.7 kB / 0.6234 GB, free: 13.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/0.4099, allocations: 1.887 MB / 0.6253 GB, free: 11.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.4102, allocations: 312 kB / 0.6256 GB, free: 11.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.491e-05/0.4103, allocations: 63.98 kB / 0.6256 GB, free: 11.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000258/0.4105, allocations: 493.3 kB / 0.6261 GB, free: 10.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.4117, allocations: 0.8842 MB / 0.627 GB, free: 9.809 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002242/0.4139, allocations: 2.762 MB / 0.6297 GB, free: 6.105 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001842/0.4158, allocations: 1.556 MB / 0.6312 GB, free: 4.547 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.326e-05/0.4158, allocations: 20 kB / 0.6312 GB, free: 4.527 MB / 442.7 MB Notification: Performance of matching and sorting (n=399) (initialization): time 0.004513/0.4203, allocations: 3.519 MB / 0.6347 GB, free: 1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/0.4204, allocations: 39.98 kB / 0.6347 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-05/0.4205, allocations: 64.88 kB / 0.6348 GB, free: 0.8984 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.91e-05/0.4205, allocations: 100 kB / 0.6348 GB, free: 0.8008 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.4223, allocations: 0.6628 MB / 0.6355 GB, free: 140 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.324e-05/0.4224, allocations: 135.5 kB / 0.6356 GB, free: 4 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.4238, allocations: 415.6 kB / 0.636 GB, free: 15.59 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002048/0.424, allocations: 195.9 kB / 0.6362 GB, free: 15.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 304 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.arrowLine.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[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],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[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 (365): * Single equations (assignments): 360 * 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.001695/0.4257, allocations: 1.374 MB / 0.6376 GB, free: 14.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.4259, allocations: 153.9 kB / 0.6377 GB, free: 13.87 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002538/0.4262, allocations: 197.2 kB / 0.6379 GB, free: 13.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.602e-05/0.4262, allocations: 8 kB / 0.6379 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.4262, allocations: 0 / 0.6379 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.4262, allocations: 11.92 kB / 0.6379 GB, free: 13.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005257/0.4315, allocations: 4.101 MB / 0.6419 GB, free: 9.406 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.4315, allocations: 4 kB / 0.6419 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003502/0.4319, allocations: 99.83 kB / 0.642 GB, free: 9.305 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.928e-06/0.4319, allocations: 12 kB / 0.642 GB, free: 9.293 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.4319, allocations: 23.98 kB / 0.642 GB, free: 9.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.004e-05/0.432, allocations: 15.89 kB / 0.6421 GB, free: 9.254 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/0.432, allocations: 8 kB / 0.6421 GB, free: 9.246 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.4332, allocations: 1.263 MB / 0.6433 GB, free: 7.875 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000299/0.4335, allocations: 258.7 kB / 0.6435 GB, free: 7.602 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.4337, allocations: 16 kB / 0.6436 GB, free: 7.586 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004302/0.4341, allocations: 39.81 kB / 0.6436 GB, free: 7.547 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.328e-05/0.4342, allocations: 55.8 kB / 0.6437 GB, free: 7.492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.546e-05/0.4342, allocations: 28 kB / 0.6437 GB, free: 7.465 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001432/0.4357, allocations: 1.275 MB / 0.6449 GB, free: 6.199 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.453e-06/0.4357, allocations: 0 / 0.6449 GB, free: 6.199 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001965/0.4377, allocations: 0.7076 MB / 0.6456 GB, free: 5.488 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (57): * Single equations (assignments): 54 * 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.0002558/0.4379, allocations: 139 kB / 0.6457 GB, free: 5.344 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002456/0.4404, allocations: 2.028 MB / 0.6477 GB, free: 3.332 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.4404, allocations: 0 / 0.6477 GB, free: 3.332 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.4409, allocations: 465.5 kB / 0.6482 GB, free: 2.879 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.442, allocations: 232.3 kB / 0.6484 GB, free: 2.656 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007795/0.4498, allocations: 6.615 MB / 0.6549 GB, free: 11.92 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002015/0.4518, allocations: 2.324 MB / 0.6571 GB, free: 9.566 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003507/0.4522, allocations: 139.4 kB / 0.6573 GB, free: 9.43 MB / 474.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4522, allocations: 0 / 0.6573 GB, free: 9.43 MB / 474.7 MB Notification: Performance of Templates: time 0.04125/0.4934, allocations: 30.13 MB / 0.6867 GB, free: 11.34 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches