Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 182 kB / 17.41 MB, free: 4.281 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.347/1.347, allocations: 225.7 MB / 243.9 MB, free: 8.5 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.000808/0.000808, allocations: 97.19 kB / 295.1 MB, free: 9.527 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.4038/0.4038, allocations: 44.31 MB / 390.5 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004988/0.0004988, allocations: 12 kB / 463.1 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3768, allocations: 61.9 MB / 0.5127 GB, free: 37.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0246/0.4015, allocations: 30.43 MB / 0.5424 GB, free: 16.44 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01939/0.4209, allocations: 10.27 MB / 0.5525 GB, free: 8.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007125/0.4281, allocations: 142.8 kB / 0.5526 GB, free: 8.066 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.4294, allocations: 333.9 kB / 0.5529 GB, free: 7.941 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003486/0.4329, allocations: 1.49 MB / 0.5544 GB, free: 7.316 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.434, allocations: 0.5107 MB / 0.5549 GB, free: 7.125 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005949/0.44, allocations: 5.092 MB / 0.5599 GB, free: 5.629 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005016/0.4451, allocations: 3.477 MB / 0.5633 GB, free: 3.742 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002425/0.4475, allocations: 0.9723 MB / 0.5642 GB, free: 3.414 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.4502, allocations: 1.525 MB / 0.5657 GB, free: 2.949 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005095/0.4508, allocations: 109.8 kB / 0.5658 GB, free: 2.945 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002338/0.4531, allocations: 1.044 MB / 0.5668 GB, free: 2.695 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.4549, allocations: 1.334 MB / 0.5681 GB, free: 2.289 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001908/0.4568, allocations: 1.545 MB / 0.5696 GB, free: 1.203 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007476/0.4643, allocations: 5.175 MB / 0.5747 GB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4643, allocations: 0 / 0.5747 GB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.4644, allocations: 4 kB / 0.5747 GB, free: 13.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001386/0.4645, allocations: 0 / 0.5747 GB, free: 13.57 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.007281/0.4718, allocations: 3.082 MB / 0.5777 GB, free: 10.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.4718, allocations: 8.031 kB / 0.5777 GB, free: 10.41 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01456/0.4864, allocations: 2.426 MB / 0.5801 GB, free: 7.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00549/0.4919, allocations: 2.194 MB / 0.5822 GB, free: 5.734 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.4921, allocations: 160.5 kB / 0.5824 GB, free: 5.574 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005915/0.4927, allocations: 235.7 kB / 0.5826 GB, free: 5.344 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/0.5046, allocations: 7.579 MB / 0.59 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001021/0.5048, allocations: 35.66 kB / 0.59 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003113/0.5051, allocations: 111.9 kB / 0.5901 GB, free: 13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002533/0.5076, allocations: 1.605 MB / 0.5917 GB, free: 11.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01125/0.5189, allocations: 6.452 MB / 0.598 GB, free: 4.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03656/0.5555, allocations: 30.69 MB / 0.628 GB, free: 5.305 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004446/0.56, allocations: 2.245 MB / 0.6302 GB, free: 2.914 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/0.5614, allocations: 1.125 MB / 0.6313 GB, free: 1.777 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004088/0.5619, allocations: 331.5 kB / 0.6316 GB, free: 1.398 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.5619, allocations: 39 kB / 0.6316 GB, free: 1.348 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.925e-06/0.5619, allocations: 0 / 0.6316 GB, free: 1.348 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.03354/0.5955, allocations: 11.89 MB / 0.6432 GB, free: 5.305 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.99e-05/0.5956, allocations: 200.6 kB / 0.6434 GB, free: 5.066 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004797/0.6004, allocations: 3.633 MB / 0.647 GB, free: 1.434 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002065/0.6006, allocations: 41.7 kB / 0.647 GB, free: 1.387 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/0.6024, allocations: 2.585 MB / 0.6495 GB, free: 14.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000644/0.603, allocations: 0.5364 MB / 0.6501 GB, free: 14.22 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000212/0.6033, allocations: 104 kB / 0.6501 GB, free: 14.12 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000331/0.6036, allocations: 0.5293 MB / 0.6507 GB, free: 13.59 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002467/0.6061, allocations: 1.716 MB / 0.6523 GB, free: 11.86 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004619/0.6107, allocations: 5.091 MB / 0.6573 GB, free: 5.078 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008628/0.6194, allocations: 7.367 MB / 0.6645 GB, free: 12.04 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.509e-05/0.6195, allocations: 36 kB / 0.6645 GB, free: 12 MB / 490.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01385/0.6334, allocations: 7.037 MB / 0.6714 GB, free: 4.957 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.634e-05/0.6335, allocations: 60.84 kB / 0.6715 GB, free: 4.898 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/0.6336, allocations: 120 kB / 0.6716 GB, free: 4.781 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/0.6351, allocations: 0.6562 MB / 0.6722 GB, free: 4.125 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/0.6389, allocations: 1.232 MB / 0.6734 GB, free: 2.891 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004353/0.6433, allocations: 3.767 MB / 0.6771 GB, free: 14.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00467/0.648, allocations: 295.4 kB / 0.6774 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008968/0.6489, allocations: 328.1 kB / 0.6777 GB, free: 14.37 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (662): * Single equations (assignments): 658 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002961/0.6519, allocations: 1.738 MB / 0.6794 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004992/0.6524, allocations: 300.1 kB / 0.6797 GB, free: 12.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003568/0.656, allocations: 2.092 MB / 0.6817 GB, free: 10.22 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/0.656, allocations: 16 kB / 0.6817 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.656, allocations: 7.938 kB / 0.6818 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.656, allocations: 7.922 kB / 0.6818 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009543/0.6656, allocations: 5.718 MB / 0.6873 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/0.6657, allocations: 0 / 0.6873 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009623/0.6667, allocations: 195.7 kB / 0.6875 GB, free: 4.195 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.668, allocations: 488.2 kB / 0.688 GB, free: 3.715 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.6681, allocations: 27.98 kB / 0.688 GB, free: 3.688 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003661/0.6718, allocations: 3.21 MB / 0.6912 GB, free: 352 kB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.6718, allocations: 3.938 kB / 0.6912 GB, free: 348 kB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2697/0.9415, allocations: 4.158 MB / 0.6952 GB, free: 142.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/0.9429, allocations: 363.9 kB / 0.6956 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.9433, allocations: 29.5 kB / 0.6956 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.9445, allocations: 69.19 kB / 0.6957 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.9447, allocations: 66.06 kB / 0.6957 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.9448, allocations: 40.48 kB / 0.6958 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004273/0.9491, allocations: 2.259 MB / 0.698 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3e-07/0.9491, allocations: 0 / 0.698 GB, free: 141.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004557/0.9537, allocations: 0.8078 MB / 0.6988 GB, free: 141.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * 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.0003917/0.9541, allocations: 164.1 kB / 0.6989 GB, free: 141.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005876/0.96, allocations: 4.127 MB / 0.7029 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.96, allocations: 0 / 0.7029 GB, free: 139.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0013/0.9613, allocations: 1.124 MB / 0.704 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.9639, allocations: 340 kB / 0.7044 GB, free: 139.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01107/0.975, allocations: 8.831 MB / 0.713 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002401/0.9775, allocations: 2.678 MB / 0.7156 GB, free: 133.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004043/0.9815, allocations: 1.676 MB / 0.7172 GB, free: 133.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006115/0.9821, allocations: 206.1 kB / 0.7174 GB, free: 133.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/0.9822, allocations: 0 / 0.7174 GB, free: 133.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.06129/1.043, allocations: 28.16 MB / 0.7449 GB, free: 122 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches