Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 174.2 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.649/1.649, allocations: 225.7 MB / 243.9 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001164, allocations: 99.78 kB / 295.1 MB, free: 9.488 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4495/0.4495, allocations: 44.32 MB / 390.5 MB, free: 38.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003478, allocations: 8 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3634, allocations: 61.9 MB / 0.5127 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.02082/0.3843, allocations: 23.44 MB / 0.5356 GB, free: 21.34 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01429/0.3986, allocations: 8.555 MB / 0.544 GB, free: 14.31 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004884/0.4035, allocations: 113.4 kB / 0.5441 GB, free: 14.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.4048, allocations: 442.3 kB / 0.5445 GB, free: 14.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003167/0.408, allocations: 1.487 MB / 0.546 GB, free: 13.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006011/0.4086, allocations: 233.6 kB / 0.5462 GB, free: 13.44 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005165/0.4137, allocations: 4.996 MB / 0.5511 GB, free: 12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004718/0.4185, allocations: 3.628 MB / 0.5546 GB, free: 10.11 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001983/0.4205, allocations: 1.019 MB / 0.5556 GB, free: 9.77 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00279/0.4233, allocations: 1.552 MB / 0.5571 GB, free: 9.285 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006082/0.4239, allocations: 123.2 kB / 0.5572 GB, free: 9.285 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001806/0.4257, allocations: 0.6241 MB / 0.5578 GB, free: 9.129 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001866/0.4276, allocations: 1.474 MB / 0.5593 GB, free: 8.66 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002156/0.4298, allocations: 1.809 MB / 0.561 GB, free: 7.328 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008419/0.4382, allocations: 5.791 MB / 0.5667 GB, free: 4.543 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4383, allocations: 1.344 kB / 0.5667 GB, free: 4.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4383, allocations: 0 / 0.5667 GB, free: 4.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002655/0.4386, allocations: 0 / 0.5667 GB, free: 4.543 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.008697/0.4473, allocations: 3.309 MB / 0.5699 GB, free: 2.094 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.4473, allocations: 8.5 kB / 0.5699 GB, free: 2.094 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009663/0.457, allocations: 3.081 MB / 0.5729 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004668/0.4617, allocations: 1.811 MB / 0.5747 GB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.4619, allocations: 200.9 kB / 0.5749 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007267/0.4626, allocations: 255.8 kB / 0.5752 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01706/0.4797, allocations: 10.21 MB / 0.5851 GB, free: 2.199 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.027e-05/0.4798, allocations: 35.69 kB / 0.5852 GB, free: 2.164 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003778/0.4802, allocations: 127.8 kB / 0.5853 GB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003377/0.4836, allocations: 2.364 MB / 0.5876 GB, free: 15.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.4993, allocations: 9.039 MB / 0.5964 GB, free: 6.625 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04865/0.548, allocations: 38.19 MB / 0.6337 GB, free: 15.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005184/0.5533, allocations: 3.374 MB / 0.637 GB, free: 11.62 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.5549, allocations: 1.226 MB / 0.6382 GB, free: 10.38 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007999/0.5629, allocations: 5.2 MB / 0.6433 GB, free: 5.031 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.5629, allocations: 43.12 kB / 0.6433 GB, free: 4.977 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 3.607e-06/0.5629, allocations: 4 kB / 0.6433 GB, free: 4.973 MB / 458.7 MB Notification: Performance of matching and sorting (n=150): time 0.006317/0.5693, allocations: 3.304 MB / 0.6466 GB, free: 1.664 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.5694, allocations: 170.8 kB / 0.6467 GB, free: 1.457 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005769/0.5751, allocations: 3.838 MB / 0.6505 GB, free: 13.62 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001816/0.5753, allocations: 45.69 kB / 0.6505 GB, free: 13.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002262/0.5776, allocations: 3.227 MB / 0.6537 GB, free: 10.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006569/0.5783, allocations: 0.6059 MB / 0.6543 GB, free: 9.684 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002178/0.5785, allocations: 124 kB / 0.6544 GB, free: 9.562 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003551/0.5789, allocations: 0.5867 MB / 0.6549 GB, free: 8.969 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002664/0.5815, allocations: 1.941 MB / 0.6568 GB, free: 7.023 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005343/0.5869, allocations: 6.133 MB / 0.6628 GB, free: 14.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009783/0.5967, allocations: 8.82 MB / 0.6714 GB, free: 3.887 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/0.5968, allocations: 44 kB / 0.6715 GB, free: 3.844 MB / 490.7 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01198/0.6088, allocations: 7.697 MB / 0.679 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.293e-05/0.6089, allocations: 68 kB / 0.6791 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001337/0.6091, allocations: 148 kB / 0.6792 GB, free: 11.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.6092, allocations: 200 kB / 0.6794 GB, free: 11.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003906/0.6131, allocations: 1.466 MB / 0.6808 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002293/0.6134, allocations: 290.9 kB / 0.6811 GB, free: 9.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004536/0.6179, allocations: 0.9166 MB / 0.682 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004571/0.6184, allocations: 408 kB / 0.6824 GB, free: 8.66 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003419/0.6218, allocations: 2.238 MB / 0.6846 GB, free: 6.406 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000459/0.6223, allocations: 307.9 kB / 0.6849 GB, free: 6.102 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006311/0.6229, allocations: 407.4 kB / 0.6853 GB, free: 5.699 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.368e-05/0.623, allocations: 43.92 kB / 0.6853 GB, free: 5.656 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.623, allocations: 4 kB / 0.6853 GB, free: 5.652 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.623, allocations: 7.984 kB / 0.6853 GB, free: 5.645 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2806/0.9037, allocations: 5.518 MB / 0.6907 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.825e-05/0.9038, allocations: 8.406 kB / 0.6907 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/0.905, allocations: 204.7 kB / 0.6909 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.63e-05/0.905, allocations: 11.28 kB / 0.6909 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.9052, allocations: 26.33 kB / 0.6909 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-05/0.9052, allocations: 15.8 kB / 0.691 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.053e-05/0.9052, allocations: 11.38 kB / 0.691 GB, free: 143 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/0.9085, allocations: 2.528 MB / 0.6934 GB, free: 142.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009357/0.9094, allocations: 390.3 kB / 0.6938 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.9097, allocations: 26.12 kB / 0.6938 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009335/0.9107, allocations: 66.64 kB / 0.6939 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.9108, allocations: 84.02 kB / 0.694 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.762e-05/0.9109, allocations: 48.62 kB / 0.694 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003852/0.9148, allocations: 2.329 MB / 0.6963 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9148, allocations: 0 / 0.6963 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004687/0.9195, allocations: 1.102 MB / 0.6974 GB, free: 141.3 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 (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.0003673/0.9199, allocations: 158 kB / 0.6975 GB, free: 141.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006533/0.9264, allocations: 4.412 MB / 0.7018 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.9265, allocations: 2.875 kB / 0.7018 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.9275, allocations: 0.9492 MB / 0.7028 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004135/0.9317, allocations: 348 kB / 0.7031 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01423/0.9459, allocations: 10.44 MB / 0.7133 GB, free: 133.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003226/0.9492, allocations: 3.206 MB / 0.7164 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005233/0.9544, allocations: 2.246 MB / 0.7186 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005529/0.955, allocations: 216.2 kB / 0.7188 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of SimCode: time 5.71e-07/0.955, allocations: 0 / 0.7188 GB, free: 132.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.05497/1.01, allocations: 24.08 MB / 0.7423 GB, free: 123.2 MB / 0.4948 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches