Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r.3.|freeMotion.r.2.|freeMotion.r.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000928/0.000928, 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.291/1.291, allocations: 226.6 MB / 243.1 MB, free: 12.36 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007689/0.0007692, allocations: 98.05 kB / 295.1 MB, free: 4.422 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1797/0.1797, allocations: 44.84 MB / 392 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002346/0.0002346, allocations: 11.98 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09554/0.09579, allocations: 62.95 MB / 0.5153 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01896/0.1148, allocations: 23.36 MB / 0.5381 GB, free: 13.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.1262, allocations: 6 MB / 0.544 GB, free: 7.645 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003406/0.1296, allocations: 119.7 kB / 0.5441 GB, free: 7.527 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.132, allocations: 1.104 MB / 0.5452 GB, free: 6.418 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007022/0.1391, allocations: 3.334 MB / 0.5484 GB, free: 3.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009783/0.1401, allocations: 215.6 kB / 0.5486 GB, free: 2.859 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.1935/0.3336, allocations: 3.907 MB / 0.5525 GB, free: 11.42 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004072/0.3377, allocations: 2.803 MB / 0.5552 GB, free: 11.1 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.3395, allocations: 1.001 MB / 0.5562 GB, free: 11.1 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002499/0.342, allocations: 1.533 MB / 0.5577 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005103/0.3425, allocations: 124.5 kB / 0.5578 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.3439, allocations: 0.5347 MB / 0.5583 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00167/0.3456, allocations: 1.442 MB / 0.5597 GB, free: 11.09 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009296/0.3466, allocations: 0.7636 MB / 0.5605 GB, free: 11.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005878/0.3525, allocations: 4.798 MB / 0.5652 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.832e-06/0.3525, allocations: 0 / 0.5652 GB, free: 10.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3525, allocations: 0 / 0.5652 GB, free: 10.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001959/0.3527, allocations: 0 / 0.5652 GB, free: 10.73 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.006349/0.359, allocations: 3.366 MB / 0.5684 GB, free: 9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3591, allocations: 12.97 kB / 0.5685 GB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009176/0.3683, allocations: 3.079 MB / 0.5715 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004136/0.3724, allocations: 1.798 MB / 0.5732 GB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.3726, allocations: 194.3 kB / 0.5734 GB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006656/0.3733, allocations: 251.6 kB / 0.5736 GB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01449/0.3878, allocations: 10.21 MB / 0.5836 GB, free: 4.051 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.549e-05/0.3879, allocations: 31.25 kB / 0.5836 GB, free: 4.051 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003694/0.3883, allocations: 128.4 kB / 0.5838 GB, free: 4.051 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003104/0.3914, allocations: 2.371 MB / 0.5861 GB, free: 3.371 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/0.4056, allocations: 9.043 MB / 0.5949 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04896/0.4546, allocations: 38.15 MB / 0.6322 GB, free: 6.465 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00569/0.4603, allocations: 3.386 MB / 0.6355 GB, free: 2.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.4622, allocations: 1.231 MB / 0.6367 GB, free: 1.582 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008844/0.471, allocations: 5.178 MB / 0.6417 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.4711, allocations: 50.22 kB / 0.6418 GB, free: 12.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 5.72e-06/0.4711, allocations: 4 kB / 0.6418 GB, free: 12.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.006614/0.4777, allocations: 3.311 MB / 0.645 GB, free: 8.934 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.886e-05/0.4778, allocations: 166.8 kB / 0.6452 GB, free: 8.734 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006953/0.4848, allocations: 3.855 MB / 0.6489 GB, free: 4.887 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002647/0.4851, allocations: 45.3 kB / 0.649 GB, free: 4.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002501/0.4876, allocations: 3.225 MB / 0.6521 GB, free: 1.637 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008415/0.4885, allocations: 0.6048 MB / 0.6527 GB, free: 1.035 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.4887, allocations: 125.2 kB / 0.6528 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003881/0.4891, allocations: 0.5868 MB / 0.6534 GB, free: 328 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002851/0.492, allocations: 1.935 MB / 0.6553 GB, free: 14.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00517/0.4972, allocations: 6.128 MB / 0.6613 GB, free: 6.234 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004674/0.5019, allocations: 3.449 MB / 0.6647 GB, free: 2.809 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.048e-05/0.502, allocations: 44 kB / 0.6647 GB, free: 2.766 MB / 458.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01419/0.5162, allocations: 7.705 MB / 0.6722 GB, free: 11.06 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.5163, allocations: 68 kB / 0.6723 GB, free: 11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002034/0.5165, allocations: 152.3 kB / 0.6724 GB, free: 10.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.5168, allocations: 220 kB / 0.6726 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004694/0.5215, allocations: 1.47 MB / 0.6741 GB, free: 9.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002232/0.5217, allocations: 292.6 kB / 0.6744 GB, free: 8.875 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004984/0.5267, allocations: 0.9176 MB / 0.6753 GB, free: 7.953 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001031/0.5278, allocations: 401.1 kB / 0.6756 GB, free: 7.562 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (797): * Single equations (assignments): 789 * Array equations: 8 * 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.004468/0.5323, allocations: 2.24 MB / 0.6778 GB, free: 5.309 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005944/0.5329, allocations: 307.9 kB / 0.6781 GB, free: 5.004 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008299/0.5337, allocations: 411.4 kB / 0.6785 GB, free: 4.602 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.284e-05/0.5338, allocations: 35.98 kB / 0.6786 GB, free: 4.566 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.5338, allocations: 7.938 kB / 0.6786 GB, free: 4.559 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.5338, allocations: 5.844 kB / 0.6786 GB, free: 4.555 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009135/0.5429, allocations: 5.531 MB / 0.684 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.543, allocations: 4 kB / 0.684 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008925/0.5439, allocations: 208.3 kB / 0.6842 GB, free: 14.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.14e-05/0.5439, allocations: 12 kB / 0.6842 GB, free: 14.71 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.56e-05/0.544, allocations: 29.64 kB / 0.6842 GB, free: 14.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/0.544, allocations: 11.98 kB / 0.6842 GB, free: 14.67 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.544, allocations: 11.94 kB / 0.6842 GB, free: 14.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002923/0.5469, allocations: 2.528 MB / 0.6867 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000734/0.5477, allocations: 380.6 kB / 0.6871 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002813/0.548, allocations: 29.39 kB / 0.6871 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009289/0.5489, allocations: 60.86 kB / 0.6871 GB, free: 11.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.5491, allocations: 88.36 kB / 0.6872 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.934e-05/0.5491, allocations: 37.25 kB / 0.6873 GB, free: 11.44 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003869/0.553, allocations: 2.339 MB / 0.6896 GB, free: 9.117 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.553, allocations: 0 / 0.6896 GB, free: 9.117 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005506/0.5586, allocations: 1.105 MB / 0.6906 GB, free: 8.016 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * 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.0004053/0.559, allocations: 157.3 kB / 0.6908 GB, free: 7.855 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007268/0.5663, allocations: 4.402 MB / 0.6951 GB, free: 3.492 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.5663, allocations: 8.125 kB / 0.6951 GB, free: 3.484 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001272/0.5676, allocations: 0.9456 MB / 0.696 GB, free: 2.531 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/0.5697, allocations: 367.2 kB / 0.6964 GB, free: 2.18 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.5864, allocations: 10.53 MB / 0.7066 GB, free: 7.555 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003565/0.59, allocations: 3.211 MB / 0.7098 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008764/0.5909, allocations: 283.4 kB / 0.71 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of SimCode: time 6.62e-07/0.5909, allocations: 0 / 0.71 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of Templates: time 0.2622/0.8531, allocations: 52.31 MB / 0.7611 GB, free: 194.5 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches