Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 200.1 kB / 17.43 MB, free: 4.242 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 229.5 MB / 247.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000868/0.000868, allocations: 95.33 kB / 299.8 MB, free: 5.371 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3247/0.3247, allocations: 45.01 MB / 397 MB, free: 31.49 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002634, allocations: 8 kB / 470.8 MB, free: 7.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3202, allocations: 63.1 MB / 0.5214 GB, free: 38.49 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01712/0.3374, allocations: 23.46 MB / 0.5443 GB, free: 21.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01416/0.3516, allocations: 8.999 MB / 0.5531 GB, free: 14.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004597/0.3562, allocations: 112.9 kB / 0.5532 GB, free: 14.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.3574, allocations: 448.3 kB / 0.5536 GB, free: 14.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003557/0.3609, allocations: 1.481 MB / 0.555 GB, free: 13.57 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006712/0.3616, allocations: 234.3 kB / 0.5553 GB, free: 13.46 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006574/0.3682, allocations: 5.047 MB / 0.5602 GB, free: 11.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004384/0.3726, allocations: 3.64 MB / 0.5637 GB, free: 9.414 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001663/0.3743, allocations: 1.018 MB / 0.5647 GB, free: 8.891 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001745/0.3761, allocations: 1.556 MB / 0.5663 GB, free: 8.055 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004142/0.3765, allocations: 122.6 kB / 0.5664 GB, free: 8.055 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001226/0.3777, allocations: 0.6254 MB / 0.567 GB, free: 7.473 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009426/0.3787, allocations: 1.476 MB / 0.5684 GB, free: 5.992 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001177/0.3799, allocations: 1.806 MB / 0.5702 GB, free: 4.168 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004476/0.3844, allocations: 5.784 MB / 0.5758 GB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.3844, allocations: 0 / 0.5758 GB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3844, allocations: 0 / 0.5758 GB, free: 14.36 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001718/0.3846, allocations: 0 / 0.5758 GB, free: 14.36 MB / 394.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.005649/0.3902, allocations: 3.31 MB / 0.5791 GB, free: 10.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3903, allocations: 11.97 kB / 0.5791 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008823/0.3991, allocations: 3.08 MB / 0.5821 GB, free: 7.883 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003319/0.4025, allocations: 1.823 MB / 0.5839 GB, free: 6.012 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.4026, allocations: 200.9 kB / 0.5841 GB, free: 5.812 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004725/0.4031, allocations: 251.8 kB / 0.5843 GB, free: 5.566 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/0.4181, allocations: 10.2 MB / 0.5943 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.087e-05/0.4182, allocations: 39.69 kB / 0.5943 GB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003699/0.4185, allocations: 127.8 kB / 0.5944 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0034/0.422, allocations: 2.372 MB / 0.5967 GB, free: 8.184 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01558/0.4375, allocations: 9.035 MB / 0.6056 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04558/0.4832, allocations: 38.18 MB / 0.6428 GB, free: 7.809 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005218/0.4884, allocations: 3.373 MB / 0.6461 GB, free: 4.168 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.49, allocations: 1.229 MB / 0.6473 GB, free: 2.922 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007787/0.4978, allocations: 5.178 MB / 0.6524 GB, free: 13.59 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.245e-05/0.4979, allocations: 55.05 kB / 0.6524 GB, free: 13.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=150): time 4.108e-06/0.4979, allocations: 0 / 0.6524 GB, free: 13.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=150): time 0.006242/0.5041, allocations: 3.317 MB / 0.6557 GB, free: 10.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.5043, allocations: 162.8 kB / 0.6558 GB, free: 10 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004923/0.5092, allocations: 3.838 MB / 0.6596 GB, free: 6.172 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.866e-05/0.5093, allocations: 41.7 kB / 0.6596 GB, free: 6.125 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001972/0.5113, allocations: 3.231 MB / 0.6628 GB, free: 2.844 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000493/0.5118, allocations: 0.6059 MB / 0.6634 GB, free: 2.23 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.512, allocations: 128 kB / 0.6635 GB, free: 2.105 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003498/0.5124, allocations: 0.5909 MB / 0.6641 GB, free: 1.508 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002478/0.5148, allocations: 1.933 MB / 0.666 GB, free: 15.57 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005376/0.5202, allocations: 6.133 MB / 0.672 GB, free: 7.344 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2307/0.7509, allocations: 8.811 MB / 0.6806 GB, free: 122.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/0.7511, allocations: 47.16 kB / 0.6806 GB, free: 122.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01219/0.7633, allocations: 7.699 MB / 0.6881 GB, free: 120.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.32e-05/0.7634, allocations: 69.41 kB / 0.6882 GB, free: 120.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/0.7636, allocations: 153.2 kB / 0.6883 GB, free: 120.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001891/0.7638, allocations: 194.2 kB / 0.6885 GB, free: 120.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003915/0.7677, allocations: 1.468 MB / 0.69 GB, free: 119.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002037/0.768, allocations: 289.9 kB / 0.6902 GB, free: 119.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004456/0.7724, allocations: 0.9261 MB / 0.6911 GB, free: 119.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004474/0.7729, allocations: 403.8 kB / 0.6915 GB, free: 119.4 MB / 490.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003132/0.776, allocations: 2.234 MB / 0.6937 GB, free: 118.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004421/0.7765, allocations: 311.1 kB / 0.694 GB, free: 118.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000583/0.7771, allocations: 411.7 kB / 0.6944 GB, free: 118 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.134e-05/0.7771, allocations: 43.08 kB / 0.6944 GB, free: 118 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.7771, allocations: 1.469 kB / 0.6944 GB, free: 118 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.7772, allocations: 6.984 kB / 0.6944 GB, free: 118 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008048/0.7852, allocations: 5.525 MB / 0.6998 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.7853, allocations: 6.938 kB / 0.6998 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009819/0.7862, allocations: 207.1 kB / 0.7 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.54e-05/0.7863, allocations: 10.62 kB / 0.7 GB, free: 115.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.791e-05/0.7864, allocations: 28.02 kB / 0.7001 GB, free: 115.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.295e-05/0.7864, allocations: 10.66 kB / 0.7001 GB, free: 115.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.7864, allocations: 9.75 kB / 0.7001 GB, free: 115.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.7892, allocations: 2.533 MB / 0.7026 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006189/0.7898, allocations: 388.3 kB / 0.7029 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.7901, allocations: 26.5 kB / 0.703 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009358/0.791, allocations: 70.14 kB / 0.703 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/0.7912, allocations: 83.45 kB / 0.7031 GB, free: 114.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.7913, allocations: 41.58 kB / 0.7031 GB, free: 114.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003907/0.7953, allocations: 2.33 MB / 0.7054 GB, free: 113.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7953, allocations: 4 kB / 0.7054 GB, free: 113.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004831/0.8001, allocations: 1.097 MB / 0.7065 GB, free: 113.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003497/0.8005, allocations: 162.2 kB / 0.7067 GB, free: 113 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00693/0.8074, allocations: 4.414 MB / 0.711 GB, free: 111.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/0.8074, allocations: 0 / 0.711 GB, free: 111.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.8086, allocations: 0.9563 MB / 0.7119 GB, free: 111.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004302/0.8129, allocations: 340.4 kB / 0.7122 GB, free: 111.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.827, allocations: 10.44 MB / 0.7224 GB, free: 104.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/0.8301, allocations: 3.205 MB / 0.7255 GB, free: 102.2 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004727/0.8348, allocations: 2.233 MB / 0.7277 GB, free: 100.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004703/0.8353, allocations: 226.8 kB / 0.7279 GB, free: 100.6 MB / 490.7 MB Notification: Performance of SimCode: time 6.11e-07/0.8353, allocations: 0 / 0.7279 GB, free: 100.6 MB / 490.7 MB Notification: Performance of Templates: time 0.04121/0.8766, allocations: 24.1 MB / 0.7515 GB, free: 77.87 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches