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.001074/0.001074, allocations: 113.2 kB / 17.78 MB, free: 5.129 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.001143/0.001143, allocations: 181 kB / 18.71 MB, free: 4.207 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.388/1.388, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2117/0.2117, allocations: 44.19 MB / 336.8 MB, free: 2.625 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 59.91 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4342/0.4354, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01356/0.449, allocations: 12.06 MB / 0.5307 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01026/0.4593, allocations: 4.03 MB / 0.5346 GB, free: 7.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004261/0.4636, allocations: 76.66 kB / 0.5347 GB, free: 7.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004165/0.4678, allocations: 1.667 MB / 0.5363 GB, free: 6.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006576/0.4745, allocations: 1.559 MB / 0.5378 GB, free: 5.656 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.4776, allocations: 1.182 MB / 0.539 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00681/0.4844, allocations: 3.523 MB / 0.5424 GB, free: 3 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004992/0.4894, allocations: 2.472 MB / 0.5448 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.4924, allocations: 1.183 MB / 0.546 GB, free: 176 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003166/0.4956, allocations: 1.588 MB / 0.5475 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001152/0.4968, allocations: 240 kB / 0.5478 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002342/0.4991, allocations: 0.7137 MB / 0.5485 GB, free: 13.63 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002272/0.5014, allocations: 1.585 MB / 0.55 GB, free: 12.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003709/0.5052, allocations: 1.917 MB / 0.5519 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009154/0.5143, allocations: 6.313 MB / 0.5581 GB, free: 3.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.5144, allocations: 4 kB / 0.5581 GB, free: 3.766 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5144, allocations: 3.938 kB / 0.5581 GB, free: 3.762 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002641/0.5147, allocations: 0 / 0.5581 GB, free: 3.762 MB / 414.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.01115/0.5258, allocations: 4.187 MB / 0.5622 GB, free: 15.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.5259, allocations: 15.97 kB / 0.5622 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009589/0.5355, allocations: 3.02 MB / 0.5651 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004238/0.5398, allocations: 1.843 MB / 0.5669 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.5399, allocations: 193.2 kB / 0.5671 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005558/0.5405, allocations: 251.8 kB / 0.5673 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0166/0.5571, allocations: 10.23 MB / 0.5773 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.612e-05/0.5573, allocations: 31.69 kB / 0.5774 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003962/0.5577, allocations: 127.8 kB / 0.5775 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003749/0.5614, allocations: 2.368 MB / 0.5798 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01723/0.5787, allocations: 9.082 MB / 0.5887 GB, free: 3.613 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05027/0.629, allocations: 38.05 MB / 0.6258 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005408/0.6344, allocations: 3.379 MB / 0.6291 GB, free: 8.773 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.6361, allocations: 1.24 MB / 0.6303 GB, free: 7.512 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009313/0.6455, allocations: 5.192 MB / 0.6354 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.05e-05/0.6456, allocations: 47.06 kB / 0.6355 GB, free: 2.113 MB / 494.1 MB Notification: Performance of pre-optimization done (n=150): time 6.162e-06/0.6456, allocations: 4 kB / 0.6355 GB, free: 2.109 MB / 494.1 MB Notification: Performance of matching and sorting (n=150): time 0.007054/0.6527, allocations: 3.344 MB / 0.6387 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/0.6528, allocations: 170.8 kB / 0.6389 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006075/0.6589, allocations: 3.874 MB / 0.6427 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002641/0.6592, allocations: 41.7 kB / 0.6427 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002482/0.6617, allocations: 3.372 MB / 0.646 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000884/0.6626, allocations: 0.636 MB / 0.6466 GB, free: 6.602 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001747/0.6643, allocations: 1.322 MB / 0.6479 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.6645, allocations: 309 kB / 0.6482 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002656/0.6671, allocations: 1.965 MB / 0.6501 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005521/0.6727, allocations: 6.156 MB / 0.6561 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/0.6833, allocations: 8.857 MB / 0.6648 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001735/0.6835, allocations: 47.94 kB / 0.6648 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01529/0.6988, allocations: 7.758 MB / 0.6724 GB, free: 7.98 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.699, allocations: 71.98 kB / 0.6725 GB, free: 7.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/0.6992, allocations: 148 kB / 0.6726 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001977/0.6994, allocations: 200 kB / 0.6728 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004689/0.7041, allocations: 1.466 MB / 0.6742 GB, free: 6.102 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002293/0.7043, allocations: 290.8 kB / 0.6745 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005253/0.7096, allocations: 0.946 MB / 0.6754 GB, free: 4.867 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008894/0.7105, allocations: 404 kB / 0.6758 GB, free: 4.473 MB / 0.5294 GB 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.003927/0.7144, allocations: 2.234 MB / 0.678 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006417/0.7151, allocations: 325.8 kB / 0.6783 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007485/0.7158, allocations: 411.4 kB / 0.6787 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.555e-05/0.7159, allocations: 43.97 kB / 0.6788 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/0.7159, allocations: 0 / 0.6788 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.7159, allocations: 3.984 kB / 0.6788 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008036/0.724, allocations: 5.535 MB / 0.6842 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.724, allocations: 7.984 kB / 0.6842 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008728/0.7249, allocations: 207.7 kB / 0.6844 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.63e-05/0.7249, allocations: 8.656 kB / 0.6844 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.778e-05/0.725, allocations: 28 kB / 0.6844 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.407e-05/0.725, allocations: 19.92 kB / 0.6844 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/0.725, allocations: 8.188 kB / 0.6844 GB, free: 11.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002861/0.7279, allocations: 2.55 MB / 0.6869 GB, free: 8.887 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006841/0.7286, allocations: 398.4 kB / 0.6873 GB, free: 8.477 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/0.7289, allocations: 31.98 kB / 0.6873 GB, free: 8.445 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000942/0.7298, allocations: 63.98 kB / 0.6874 GB, free: 8.383 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.73, allocations: 84.28 kB / 0.6875 GB, free: 8.301 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.482e-05/0.7301, allocations: 44 kB / 0.6875 GB, free: 8.258 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003497/0.7336, allocations: 2.358 MB / 0.6898 GB, free: 5.914 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7336, allocations: 0 / 0.6898 GB, free: 5.914 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005094/0.7387, allocations: 1.118 MB / 0.6909 GB, free: 4.793 MB / 0.545 GB 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.0003866/0.7391, allocations: 150.9 kB / 0.6911 GB, free: 4.637 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006906/0.746, allocations: 4.463 MB / 0.6954 GB, free: 208 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.537e-06/0.7461, allocations: 320 / 0.6954 GB, free: 208 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.7473, allocations: 0.9517 MB / 0.6963 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.7495, allocations: 365 kB / 0.6967 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.7654, allocations: 8.504 MB / 0.705 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003418/0.7688, allocations: 3.215 MB / 0.7081 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00481/0.7737, allocations: 2.239 MB / 0.7103 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000608/0.7743, allocations: 219.4 kB / 0.7105 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of SimCode: time 1.353e-06/0.7743, allocations: 4 kB / 0.7105 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of Templates: time 0.3724/1.147, allocations: 22.11 MB / 0.7321 GB, free: 180.6 MB / 0.5762 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