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.001445/0.001445, allocations: 198.6 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007846/0.0007847, allocations: 97.03 kB / 295.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3185/0.3185, allocations: 44.82 MB / 392.3 MB, free: 35.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002795, allocations: 11.98 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3159, allocations: 62.95 MB / 0.5159 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01615/0.3321, allocations: 23.37 MB / 0.5387 GB, free: 20.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.3436, allocations: 5.996 MB / 0.5445 GB, free: 16.38 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004062/0.3477, allocations: 113 kB / 0.5447 GB, free: 16.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002743/0.3505, allocations: 1.114 MB / 0.5457 GB, free: 15.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00839/0.3589, allocations: 3.347 MB / 0.549 GB, free: 14.62 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001562/0.3605, allocations: 234.5 kB / 0.5492 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006377/0.3669, allocations: 3.99 MB / 0.5531 GB, free: 13.2 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005323/0.3723, allocations: 3.094 MB / 0.5562 GB, free: 11.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.3746, allocations: 1.002 MB / 0.5571 GB, free: 11.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002794/0.3774, allocations: 1.541 MB / 0.5586 GB, free: 11.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006211/0.3781, allocations: 123.2 kB / 0.5588 GB, free: 11.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001634/0.3797, allocations: 0.6263 MB / 0.5594 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001532/0.3813, allocations: 1.442 MB / 0.5608 GB, free: 10.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001673/0.383, allocations: 1.694 MB / 0.5624 GB, free: 8.734 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004529/0.3875, allocations: 4.805 MB / 0.5671 GB, free: 4.766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3875, allocations: 0 / 0.5671 GB, free: 4.766 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3875, allocations: 0 / 0.5671 GB, free: 4.766 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001711/0.3877, allocations: 0 / 0.5671 GB, free: 4.766 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.005275/0.393, allocations: 3.31 MB / 0.5704 GB, free: 1.387 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3931, allocations: 12.03 kB / 0.5704 GB, free: 1.375 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008854/0.4019, allocations: 3.08 MB / 0.5734 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.4056, allocations: 1.815 MB / 0.5751 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.4058, allocations: 196.9 kB / 0.5753 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005839/0.4064, allocations: 247.8 kB / 0.5756 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.4209, allocations: 10.22 MB / 0.5855 GB, free: 1.117 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.867e-05/0.4211, allocations: 31.69 kB / 0.5856 GB, free: 1.086 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00037/0.4214, allocations: 123.8 kB / 0.5857 GB, free: 0.9648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003308/0.4248, allocations: 2.376 MB / 0.588 GB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01508/0.4399, allocations: 9.038 MB / 0.5968 GB, free: 5.543 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0462/0.4861, allocations: 38.18 MB / 0.6341 GB, free: 14.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005429/0.4916, allocations: 3.373 MB / 0.6374 GB, free: 10.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001777/0.4934, allocations: 1.223 MB / 0.6386 GB, free: 9.324 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008584/0.502, allocations: 5.191 MB / 0.6437 GB, free: 3.977 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.528e-05/0.5021, allocations: 55.06 kB / 0.6437 GB, free: 3.914 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 5.52e-06/0.5021, allocations: 0 / 0.6437 GB, free: 3.914 MB / 458.7 MB Notification: Performance of matching and sorting (n=150): time 0.006803/0.5089, allocations: 3.315 MB / 0.647 GB, free: 0.5938 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.5091, allocations: 166.8 kB / 0.6471 GB, free: 404 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006734/0.5158, allocations: 3.842 MB / 0.6509 GB, free: 12.55 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002152/0.5161, allocations: 45.61 kB / 0.6509 GB, free: 12.51 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002236/0.5183, allocations: 3.223 MB / 0.6541 GB, free: 9.234 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008404/0.5192, allocations: 0.6099 MB / 0.6547 GB, free: 8.617 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/0.5194, allocations: 123.9 kB / 0.6548 GB, free: 8.496 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003726/0.5198, allocations: 0.5946 MB / 0.6554 GB, free: 7.895 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.5226, allocations: 1.941 MB / 0.6573 GB, free: 5.949 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00525/0.5279, allocations: 6.129 MB / 0.6632 GB, free: 13.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009466/0.5374, allocations: 8.814 MB / 0.6719 GB, free: 2.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/0.5375, allocations: 44 kB / 0.6719 GB, free: 2.777 MB / 490.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01418/0.5517, allocations: 7.694 MB / 0.6794 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001135/0.5519, allocations: 69.72 kB / 0.6795 GB, free: 11.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001739/0.5521, allocations: 148.5 kB / 0.6796 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/0.5522, allocations: 199.9 kB / 0.6798 GB, free: 10.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00445/0.5567, allocations: 1.466 MB / 0.6812 GB, free: 9.207 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002451/0.557, allocations: 299.1 kB / 0.6815 GB, free: 8.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004574/0.5616, allocations: 0.9122 MB / 0.6824 GB, free: 7.992 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008855/0.5625, allocations: 415.9 kB / 0.6828 GB, free: 7.586 MB / 0.4948 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005395/0.5679, allocations: 2.23 MB / 0.685 GB, free: 5.34 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000741/0.5686, allocations: 311.9 kB / 0.6853 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.5698, allocations: 411.4 kB / 0.6857 GB, free: 4.625 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.856e-05/0.5699, allocations: 39.98 kB / 0.6857 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.5699, allocations: 0 / 0.6857 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.5699, allocations: 3.984 kB / 0.6857 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2932/0.8631, allocations: 5.525 MB / 0.6911 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.008e-05/0.8631, allocations: 7.266 kB / 0.6911 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009728/0.8641, allocations: 204 kB / 0.6913 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.901e-05/0.8641, allocations: 9.75 kB / 0.6913 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.8642, allocations: 29.75 kB / 0.6914 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.72e-05/0.8643, allocations: 15.23 kB / 0.6914 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.738e-06/0.8643, allocations: 7.422 kB / 0.6914 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.8669, allocations: 2.539 MB / 0.6939 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006598/0.8676, allocations: 385.9 kB / 0.6942 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002509/0.8679, allocations: 30.52 kB / 0.6943 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008555/0.8687, allocations: 73.89 kB / 0.6943 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/0.8689, allocations: 81.73 kB / 0.6944 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.517e-05/0.869, allocations: 48.36 kB / 0.6945 GB, free: 138.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003134/0.8721, allocations: 2.341 MB / 0.6967 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8721, allocations: 0 / 0.6967 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004554/0.8767, allocations: 1.102 MB / 0.6978 GB, free: 137.2 MB / 0.4948 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 (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.0003795/0.8771, allocations: 150.4 kB / 0.698 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00602/0.8831, allocations: 4.401 MB / 0.7023 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.8832, allocations: 2.875 kB / 0.7023 GB, free: 135.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009954/0.8842, allocations: 0.9468 MB / 0.7032 GB, free: 135.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/0.8882, allocations: 343.4 kB / 0.7035 GB, free: 135.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.9034, allocations: 10.53 MB / 0.7138 GB, free: 129.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004076/0.9075, allocations: 3.216 MB / 0.7169 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/0.9086, allocations: 278.9 kB / 0.7172 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of SimCode: time 9.62e-07/0.9086, allocations: 0 / 0.7172 GB, free: 128.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.06907/0.9777, allocations: 52.19 MB / 0.7682 GB, free: 91.24 MB / 0.4948 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