Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009658/0.000966, allocations: 175 kB / 17.41 MB, free: 4.391 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.53/1.53, allocations: 225.7 MB / 243.9 MB, free: 8.465 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.0009901/0.0009901, allocations: 99.53 kB / 295 MB, free: 9.504 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.3561/0.3561, allocations: 44.33 MB / 390.5 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004114, allocations: 8 kB / 463.1 MB, free: 488 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3525, allocations: 61.9 MB / 0.5127 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02645/0.379, allocations: 37.02 MB / 0.5489 GB, free: 11.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01937/0.3984, allocations: 11.46 MB / 0.5601 GB, free: 2.578 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009292/0.4077, allocations: 170.8 kB / 0.5602 GB, free: 2.551 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.409, allocations: 352.9 kB / 0.5606 GB, free: 2.422 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004374/0.4133, allocations: 1.55 MB / 0.5621 GB, free: 1.758 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.4146, allocations: 0.5152 MB / 0.5626 GB, free: 1.566 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007135/0.4218, allocations: 5.358 MB / 0.5678 GB, free: 15.99 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005622/0.4274, allocations: 3.904 MB / 0.5716 GB, free: 13.88 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.4298, allocations: 1.023 MB / 0.5726 GB, free: 13.53 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002949/0.4328, allocations: 1.61 MB / 0.5742 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004732/0.4333, allocations: 113.2 kB / 0.5743 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002454/0.4357, allocations: 1.061 MB / 0.5754 GB, free: 12.78 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.4373, allocations: 1.435 MB / 0.5768 GB, free: 11.43 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001625/0.439, allocations: 1.647 MB / 0.5784 GB, free: 9.766 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005842/0.4448, allocations: 5.543 MB / 0.5838 GB, free: 4.203 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4449, allocations: 0 / 0.5838 GB, free: 4.203 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4449, allocations: 0 / 0.5838 GB, free: 4.203 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001098/0.445, allocations: 0 / 0.5838 GB, free: 4.203 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.005673/0.4507, allocations: 3.27 MB / 0.587 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.226e-05/0.4507, allocations: 8.031 kB / 0.587 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/0.465, allocations: 2.461 MB / 0.5894 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006353/0.4714, allocations: 2.287 MB / 0.5916 GB, free: 12.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.4716, allocations: 185 kB / 0.5918 GB, free: 11.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005037/0.4721, allocations: 239.8 kB / 0.592 GB, free: 11.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.4848, allocations: 8.153 MB / 0.6 GB, free: 2.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.57e-05/0.4849, allocations: 35.75 kB / 0.6 GB, free: 2.805 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003157/0.4852, allocations: 123.9 kB / 0.6001 GB, free: 2.684 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002728/0.4879, allocations: 1.696 MB / 0.6018 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01191/0.4999, allocations: 6.884 MB / 0.6085 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04484/0.5447, allocations: 32.52 MB / 0.6403 GB, free: 8.559 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007521/0.5523, allocations: 2.492 MB / 0.6427 GB, free: 5.926 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002603/0.555, allocations: 1.113 MB / 0.6438 GB, free: 4.801 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005677/0.5556, allocations: 331.2 kB / 0.6441 GB, free: 4.422 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/0.5557, allocations: 46.5 kB / 0.6442 GB, free: 4.367 MB / 458.7 MB Notification: Performance of pre-optimization done (n=104): time 6.232e-06/0.5557, allocations: 3.938 kB / 0.6442 GB, free: 4.363 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.04207/0.5978, allocations: 9.23 MB / 0.6532 GB, free: 11.01 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/0.598, allocations: 192.5 kB / 0.6534 GB, free: 10.78 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01024/0.6083, allocations: 3.781 MB / 0.657 GB, free: 7.008 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003454/0.6087, allocations: 45.7 kB / 0.6571 GB, free: 6.957 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00387/0.6126, allocations: 2.785 MB / 0.6598 GB, free: 4.137 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/0.6137, allocations: 0.4903 MB / 0.6603 GB, free: 3.641 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005325/0.6143, allocations: 108 kB / 0.6604 GB, free: 3.535 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006674/0.615, allocations: 0.5415 MB / 0.6609 GB, free: 2.988 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00521/0.6202, allocations: 1.678 MB / 0.6626 GB, free: 1.305 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009733/0.63, allocations: 5.307 MB / 0.6677 GB, free: 10.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01519/0.6453, allocations: 7.579 MB / 0.6751 GB, free: 0.7891 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001634/0.6455, allocations: 39.94 kB / 0.6752 GB, free: 0.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02545/0.671, allocations: 7.148 MB / 0.6822 GB, free: 9.594 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003513/0.6714, allocations: 68.16 kB / 0.6822 GB, free: 9.527 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000395/0.6718, allocations: 128 kB / 0.6823 GB, free: 9.402 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002752/0.6746, allocations: 0.6525 MB / 0.683 GB, free: 8.746 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006356/0.681, allocations: 1.271 MB / 0.6842 GB, free: 7.473 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008281/0.6893, allocations: 3.786 MB / 0.6879 GB, free: 3.555 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007154/0.6965, allocations: 303.3 kB / 0.6882 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001315/0.6979, allocations: 348 kB / 0.6885 GB, free: 2.918 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (691): * Single equations (assignments): 687 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005736/0.7037, allocations: 1.849 MB / 0.6904 GB, free: 1.055 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/0.7048, allocations: 308 kB / 0.6906 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2848/0.9896, allocations: 1.842 MB / 0.6924 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.113e-05/0.9897, allocations: 14.19 kB / 0.6925 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.9897, allocations: 3.719 kB / 0.6925 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.9897, allocations: 8.219 kB / 0.6925 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009494/0.9992, allocations: 5.346 MB / 0.6977 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/0.9993, allocations: 3.531 kB / 0.6977 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/1, allocations: 159.3 kB / 0.6978 GB, free: 140.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001195/1.001, allocations: 492.6 kB / 0.6983 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.459e-05/1.001, allocations: 19.66 kB / 0.6983 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/1.004, allocations: 3.207 MB / 0.7015 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.004, allocations: 10.72 kB / 0.7015 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00457/1.009, allocations: 3.72 MB / 0.7051 GB, free: 137.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007366/1.01, allocations: 365.5 kB / 0.7055 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003022/1.01, allocations: 28.86 kB / 0.7055 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009343/1.011, allocations: 57.53 kB / 0.7055 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/1.011, allocations: 61.39 kB / 0.7056 GB, free: 137 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-05/1.011, allocations: 35.97 kB / 0.7056 GB, free: 137 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003133/1.014, allocations: 2.334 MB / 0.7079 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/1.014, allocations: 0 / 0.7079 GB, free: 136.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003553/1.018, allocations: 0.8355 MB / 0.7087 GB, free: 136.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002818/1.018, allocations: 151.8 kB / 0.7089 GB, free: 136 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005262/1.023, allocations: 4.003 MB / 0.7128 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/1.023, allocations: 6.047 kB / 0.7128 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001138/1.025, allocations: 0.9956 MB / 0.7138 GB, free: 134.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002354/1.027, allocations: 367.6 kB / 0.7141 GB, free: 134 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/1.039, allocations: 9.075 MB / 0.723 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002777/1.041, allocations: 2.801 MB / 0.7257 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004518/1.046, allocations: 1.734 MB / 0.7274 GB, free: 128 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005422/1.047, allocations: 209 kB / 0.7276 GB, free: 128 MB / 0.4948 GB Notification: Performance of SimCode: time 6.82e-07/1.047, allocations: 0 / 0.7276 GB, free: 128 MB / 0.4948 GB Notification: Performance of Templates: time 0.04699/1.094, allocations: 27.97 MB / 0.7549 GB, free: 111.7 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches