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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 173.5 kB / 24.92 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9794/0.9794, allocations: 177.1 MB / 205.3 MB, free: 5.109 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2583/0.2583, allocations: 32.8 MB / 294.6 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") translateModel(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|freeMotion.r.[0-9,]+.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.612e-05/2.757e-05, allocations: 4.844 kB / 323.3 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01191/0.01194, allocations: 11.24 MB / 334.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007504/0.01945, allocations: 4.162 MB / 338.7 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.02096, allocations: 87.69 kB / 338.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002062/0.02302, allocations: 1.744 MB / 340.5 MB, free: 8.387 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002349/0.02537, allocations: 1.606 MB / 342.1 MB, free: 6.773 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.02665, allocations: 1.258 MB / 343.3 MB, free: 5.512 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002713/0.02936, allocations: 3.417 MB / 346.8 MB, free: 2.086 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001516/0.03088, allocations: 2.133 MB / 348.9 MB, free: 15.88 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001174/0.03205, allocations: 1.715 MB / 350.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.03338, allocations: 1.566 MB / 352.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002259/0.03361, allocations: 236 kB / 352.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007324/0.03434, allocations: 0.6982 MB / 353.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000836/0.03518, allocations: 1.648 MB / 354.8 MB, free: 10.01 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006146/0.03579, allocations: 0.9495 MB / 355.7 MB, free: 9.059 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002651/0.03844, allocations: 3.813 MB / 359.5 MB, free: 5.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.03845, allocations: 0 / 359.5 MB, free: 5.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.03845, allocations: 0 / 359.5 MB, free: 5.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.915e-05/0.0385, allocations: 0 / 359.5 MB, free: 5.23 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.002933/0.04143, allocations: 3.744 MB / 363.3 MB, free: 1.434 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.04146, allocations: 8.031 kB / 363.3 MB, free: 1.426 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003136/0.0446, allocations: 1.312 MB / 364.6 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.04625, allocations: 1.403 MB / 366 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.818e-05/0.04634, allocations: 193.1 kB / 366.2 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002859/0.04663, allocations: 248.2 kB / 366.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003983/0.05061, allocations: 4.665 MB / 371.1 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.182e-05/0.05066, allocations: 31.69 kB / 371.1 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/0.0509, allocations: 135.8 kB / 371.2 MB, free: 8.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001984/0.05288, allocations: 2.017 MB / 373.3 MB, free: 6.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003449/0.05633, allocations: 2.495 MB / 375.8 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01886/0.07519, allocations: 29.32 MB / 405.1 MB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.07716, allocations: 1.248 MB / 406.3 MB, free: 4.473 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003584/0.07752, allocations: 284.9 kB / 406.6 MB, free: 4.172 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003592/0.08111, allocations: 3.473 MB / 410.1 MB, free: 0.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.08114, allocations: 47.16 kB / 410.1 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 2.855e-06/0.08114, allocations: 0 / 410.1 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.002418/0.08356, allocations: 1.411 MB / 411.5 MB, free: 15.2 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.08361, allocations: 170.8 kB / 411.7 MB, free: 15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.08527, allocations: 2.71 MB / 414.4 MB, free: 12.28 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.518e-05/0.08533, allocations: 45.69 kB / 414.5 MB, free: 12.23 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001392/0.08672, allocations: 3.22 MB / 417.7 MB, free: 8.973 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000303/0.08702, allocations: 0.6125 MB / 418.3 MB, free: 8.355 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009131/0.08794, allocations: 1.223 MB / 419.5 MB, free: 7.121 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.097e-05/0.08803, allocations: 357.8 kB / 419.9 MB, free: 6.766 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007292/0.08876, allocations: 0.6776 MB / 420.5 MB, free: 6.082 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002653/0.09141, allocations: 4.643 MB / 425.2 MB, free: 15.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003997/0.09541, allocations: 6.105 MB / 431.3 MB, free: 7.184 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.304e-05/0.09545, allocations: 40 kB / 431.3 MB, free: 7.145 MB / 410.7 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.004314/0.09976, allocations: 4.282 MB / 435.6 MB, free: 2.855 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.902e-05/0.09982, allocations: 69.41 kB / 435.7 MB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-05/0.09991, allocations: 152.1 kB / 435.8 MB, free: 2.641 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001112/0.1, allocations: 192 kB / 436 MB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002309/0.1023, allocations: 1.47 MB / 437.5 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001449/0.1025, allocations: 290.8 kB / 437.8 MB, free: 0.6953 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.1044, allocations: 0.8454 MB / 438.6 MB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.1047, allocations: 352 kB / 439 MB, free: 15.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.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 (791): * Single equations (assignments): 783 * 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.001014/0.1057, allocations: 0.6441 MB / 439.6 MB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.106, allocations: 175.8 kB / 439.8 MB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.1062, allocations: 316.4 kB / 440.1 MB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.072e-05/0.1063, allocations: 35.98 kB / 440.1 MB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.1063, allocations: 4 kB / 440.1 MB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.1063, allocations: 11.86 kB / 440.1 MB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003221/0.1095, allocations: 2.84 MB / 443 MB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.1095, allocations: 4 kB / 443 MB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004506/0.11, allocations: 171.8 kB / 443.1 MB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.11, allocations: 8 kB / 443.1 MB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.551e-05/0.11, allocations: 28.31 kB / 443.2 MB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.334e-05/0.11, allocations: 20.52 kB / 443.2 MB, free: 11.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.11, allocations: 8 kB / 443.2 MB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008667/0.1109, allocations: 1.222 MB / 444.4 MB, free: 9.812 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.1111, allocations: 269.7 kB / 444.7 MB, free: 9.547 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.1112, allocations: 31.97 kB / 444.7 MB, free: 9.516 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003874/0.1116, allocations: 24 kB / 444.7 MB, free: 9.492 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.1117, allocations: 80.19 kB / 444.8 MB, free: 9.414 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.1118, allocations: 39.98 kB / 444.9 MB, free: 9.375 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007777/0.1126, allocations: 1.03 MB / 445.9 MB, free: 8.348 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1126, allocations: 4 kB / 445.9 MB, free: 8.344 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002431/0.115, allocations: 1.099 MB / 447 MB, free: 7.242 MB / 426.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.0002388/0.1152, allocations: 140 kB / 447.1 MB, free: 7.094 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002361/0.1176, allocations: 2.461 MB / 449.6 MB, free: 4.656 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001515/0.1178, allocations: 100.2 kB / 449.7 MB, free: 4.547 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003235/0.1181, allocations: 308.9 kB / 450 MB, free: 4.242 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009447/0.119, allocations: 310.1 kB / 450.3 MB, free: 3.945 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1426/0.2616, allocations: 6.893 MB / 457.2 MB, free: 126.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008473/0.2625, allocations: 1.153 MB / 458.3 MB, free: 126.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001261/0.2637, allocations: 0.5026 MB / 458.8 MB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005753/0.2643, allocations: 458.6 kB / 459.3 MB, free: 126.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.964e-06/0.2643, allocations: 0 / 459.3 MB, free: 126.2 MB / 426.7 MB Notification: Performance of Templates: time 0.02999/0.2943, allocations: 19.37 MB / 478.7 MB, free: 112.4 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.725246057845652]