Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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: 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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009549/0.0009551, allocations: 93.42 kB / 17.35 MB, free: 6.344 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.001186/0.001186, allocations: 171.3 kB / 18.25 MB, free: 5.504 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.5/1.5, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2163/0.2163, allocations: 44.25 MB / 337.7 MB, free: 2.438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003804/0.0003804, allocations: 16.5 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1452, allocations: 61.92 MB / 472.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02462/0.1698, allocations: 25.06 MB / 497.3 MB, free: 4.16 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01697/0.1869, allocations: 6.279 MB / 0.4918 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005704/0.1926, allocations: 115.8 kB / 0.4919 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.1942, allocations: 442 kB / 0.4923 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004751/0.199, allocations: 1.483 MB / 0.4938 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001009/0.2, allocations: 227.5 kB / 0.494 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00693/0.207, allocations: 5.003 MB / 0.4989 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00581/0.2128, allocations: 3.184 MB / 0.502 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.2155, allocations: 0.9101 MB / 0.5029 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003084/0.2186, allocations: 1.565 MB / 0.5044 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009094/0.2195, allocations: 124 kB / 0.5045 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002213/0.2218, allocations: 0.6356 MB / 0.5051 GB, free: 88 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2979/0.5197, allocations: 1.495 MB / 0.5066 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003216/0.523, allocations: 1.81 MB / 0.5084 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01052/0.5335, allocations: 5.777 MB / 0.514 GB, free: 13.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.5336, allocations: 4.812 kB / 0.514 GB, free: 13.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.5336, allocations: 1.875 kB / 0.514 GB, free: 13.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003747/0.5339, allocations: 3.281 kB / 0.514 GB, free: 13.33 MB / 382.1 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.01116/0.5451, allocations: 3.309 MB / 0.5173 GB, free: 11.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.5452, allocations: 11.81 kB / 0.5173 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01181/0.557, allocations: 3.083 MB / 0.5203 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005621/0.5627, allocations: 1.819 MB / 0.522 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002821/0.563, allocations: 193.2 kB / 0.5222 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/0.5645, allocations: 248.2 kB / 0.5225 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/0.5886, allocations: 10.24 MB / 0.5325 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001198/0.5888, allocations: 34.34 kB / 0.5325 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005818/0.5894, allocations: 127.7 kB / 0.5326 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004114/0.5935, allocations: 2.374 MB / 0.5349 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01834/0.6119, allocations: 9.078 MB / 0.5438 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0572/0.6692, allocations: 38.17 MB / 0.5811 GB, free: 11.01 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005931/0.6751, allocations: 3.397 MB / 0.5844 GB, free: 7.359 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00188/0.6771, allocations: 1.226 MB / 0.5856 GB, free: 6.117 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009305/0.6864, allocations: 5.185 MB / 0.5907 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.6864, allocations: 47.12 kB / 0.5907 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 5.972e-06/0.6865, allocations: 4 kB / 0.5907 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of matching and sorting (n=150): time 0.00745/0.6939, allocations: 3.327 MB / 0.594 GB, free: 13.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.775e-05/0.694, allocations: 173.4 kB / 0.5941 GB, free: 13.25 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00635/0.7004, allocations: 3.861 MB / 0.5979 GB, free: 9.391 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.7006, allocations: 45.14 kB / 0.5979 GB, free: 9.344 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002433/0.7031, allocations: 3.225 MB / 0.6011 GB, free: 6.121 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009713/0.704, allocations: 0.61 MB / 0.6017 GB, free: 5.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008034/0.7048, allocations: 0.5475 MB / 0.6022 GB, free: 4.965 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.705, allocations: 301.1 kB / 0.6025 GB, free: 4.668 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003083/0.7081, allocations: 1.965 MB / 0.6044 GB, free: 2.699 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005876/0.714, allocations: 6.158 MB / 0.6104 GB, free: 10.52 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.7242, allocations: 8.853 MB / 0.6191 GB, free: 184 kB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001237/0.7244, allocations: 44 kB / 0.6191 GB, free: 140 kB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01519/0.7396, allocations: 7.761 MB / 0.6267 GB, free: 8.969 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.759e-05/0.7397, allocations: 68.94 kB / 0.6268 GB, free: 8.902 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001683/0.7399, allocations: 148 kB / 0.6269 GB, free: 8.758 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001724/0.7401, allocations: 196 kB / 0.6271 GB, free: 8.566 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004813/0.7449, allocations: 1.478 MB / 0.6285 GB, free: 7.086 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002404/0.7452, allocations: 290.9 kB / 0.6288 GB, free: 6.801 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005254/0.7504, allocations: 0.9083 MB / 0.6297 GB, free: 5.883 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009905/0.7514, allocations: 404 kB / 0.6301 GB, free: 5.488 MB / 478.1 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.006558/0.758, allocations: 2.229 MB / 0.6323 GB, free: 3.246 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007402/0.7587, allocations: 315.9 kB / 0.6326 GB, free: 2.934 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009706/0.7597, allocations: 407.4 kB / 0.633 GB, free: 2.535 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.266e-05/0.7598, allocations: 39.98 kB / 0.633 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.935e-05/0.7598, allocations: 0 / 0.633 GB, free: 2.496 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.7599, allocations: 7.984 kB / 0.633 GB, free: 2.488 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009621/0.7695, allocations: 5.538 MB / 0.6384 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.7695, allocations: 8 kB / 0.6384 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009409/0.7705, allocations: 203.7 kB / 0.6386 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.456e-05/0.7705, allocations: 12.66 kB / 0.6386 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.7706, allocations: 24 kB / 0.6386 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.359e-05/0.7706, allocations: 19.94 kB / 0.6387 GB, free: 12.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.415e-06/0.7706, allocations: 12.23 kB / 0.6387 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003248/0.7739, allocations: 2.535 MB / 0.6412 GB, free: 9.957 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008308/0.7747, allocations: 384.6 kB / 0.6415 GB, free: 9.559 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.775, allocations: 34.88 kB / 0.6416 GB, free: 9.527 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000993/0.776, allocations: 63.92 kB / 0.6416 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.7762, allocations: 80.34 kB / 0.6417 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.575e-05/0.7763, allocations: 44 kB / 0.6417 GB, free: 9.344 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003864/0.7802, allocations: 2.354 MB / 0.644 GB, free: 7.004 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.7802, allocations: 0 / 0.644 GB, free: 7.004 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005287/0.7855, allocations: 1.108 MB / 0.6451 GB, free: 5.895 MB / 494.1 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.0003936/0.7859, allocations: 154.9 kB / 0.6453 GB, free: 5.738 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007059/0.7929, allocations: 4.44 MB / 0.6496 GB, free: 1.336 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.286e-06/0.793, allocations: 0 / 0.6496 GB, free: 1.336 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.7942, allocations: 0.9502 MB / 0.6505 GB, free: 400 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00477/0.799, allocations: 355.2 kB / 0.6509 GB, free: 52 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01722/0.8162, allocations: 10.43 MB / 0.6611 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003779/0.82, allocations: 3.216 MB / 0.6642 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005788/0.8259, allocations: 2.24 MB / 0.6664 GB, free: 20 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006166/0.8265, allocations: 219.4 kB / 0.6666 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of SimCode: time 7.71e-07/0.8265, allocations: 4 kB / 0.6666 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.05121/0.8777, allocations: 24.09 MB / 0.6901 GB, free: 7.871 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches