Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001714/0.001714, allocations: 173 kB / 16.08 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.559/1.559, allocations: 205.6 MB / 222.4 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007777/0.0007778, allocations: 91.06 kB / 270.8 MB, free: 8.117 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3738/0.3738, allocations: 43.68 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.0003339, allocations: 8 kB / 432.3 MB, free: 4.789 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1287, allocations: 58.85 MB / 491.2 MB, free: 9.805 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2763/0.4051, allocations: 30.78 MB / 0.5097 GB, free: 28.4 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01684/0.422, allocations: 10.33 MB / 0.5198 GB, free: 20.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007177/0.4292, allocations: 137.3 kB / 0.5199 GB, free: 20.01 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.4306, allocations: 340.7 kB / 0.5202 GB, free: 19.89 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003713/0.4343, allocations: 1.53 MB / 0.5217 GB, free: 19.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.4354, allocations: 0.5156 MB / 0.5222 GB, free: 19.04 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004948/0.4404, allocations: 4.997 MB / 0.5271 GB, free: 17.58 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00371/0.4441, allocations: 3.518 MB / 0.5306 GB, free: 15.71 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001591/0.4457, allocations: 1.01 MB / 0.5315 GB, free: 15.37 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.4475, allocations: 1.599 MB / 0.5331 GB, free: 14.88 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003166/0.4478, allocations: 113.5 kB / 0.5332 GB, free: 14.88 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001671/0.4495, allocations: 1.047 MB / 0.5342 GB, free: 14.62 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.4505, allocations: 1.384 MB / 0.5356 GB, free: 14.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001347/0.4519, allocations: 1.61 MB / 0.5372 GB, free: 13.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005922/0.4578, allocations: 5.371 MB / 0.5424 GB, free: 11.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4578, allocations: 0 / 0.5424 GB, free: 11.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4578, allocations: 0 / 0.5424 GB, free: 11.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001818/0.458, allocations: 1.188 kB / 0.5424 GB, free: 11.57 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.006834/0.4649, allocations: 3.187 MB / 0.5455 GB, free: 9.703 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.4649, allocations: 9.281 kB / 0.5455 GB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01409/0.479, allocations: 2.438 MB / 0.5479 GB, free: 8.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005474/0.4845, allocations: 2.287 MB / 0.5501 GB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000145/0.4847, allocations: 169.5 kB / 0.5503 GB, free: 7.273 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005639/0.4853, allocations: 240.9 kB / 0.5505 GB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01094/0.4962, allocations: 7.879 MB / 0.5582 GB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.335e-05/0.4963, allocations: 40.62 kB / 0.5583 GB, free: 2.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002883/0.4966, allocations: 110.4 kB / 0.5584 GB, free: 2.105 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002419/0.4991, allocations: 1.672 MB / 0.56 GB, free: 1.441 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01212/0.5112, allocations: 6.734 MB / 0.5666 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03604/0.5473, allocations: 31.57 MB / 0.5974 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004543/0.5518, allocations: 2.35 MB / 0.5997 GB, free: 7.801 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.5535, allocations: 1.184 MB / 0.6009 GB, free: 6.605 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003516/0.5538, allocations: 319.8 kB / 0.6012 GB, free: 6.238 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.5539, allocations: 47.06 kB / 0.6012 GB, free: 6.184 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 2.785e-06/0.5539, allocations: 4 kB / 0.6012 GB, free: 6.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.03561/0.5895, allocations: 12.31 MB / 0.6132 GB, free: 9.715 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.985e-05/0.5896, allocations: 196.5 kB / 0.6134 GB, free: 9.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005423/0.5951, allocations: 3.711 MB / 0.617 GB, free: 5.773 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002096/0.5953, allocations: 45.7 kB / 0.6171 GB, free: 5.723 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002149/0.5974, allocations: 2.666 MB / 0.6197 GB, free: 3.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007739/0.5982, allocations: 0.5594 MB / 0.6202 GB, free: 2.453 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.5985, allocations: 112 kB / 0.6203 GB, free: 2.344 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004011/0.5989, allocations: 0.5414 MB / 0.6209 GB, free: 1.797 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003318/0.6023, allocations: 1.779 MB / 0.6226 GB, free: 12 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005316/0.6076, allocations: 5.233 MB / 0.6277 GB, free: 9.047 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008225/0.6158, allocations: 7.587 MB / 0.6351 GB, free: 15.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.786e-05/0.6159, allocations: 39.94 kB / 0.6352 GB, free: 15.71 MB / 474.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01265/0.6286, allocations: 7.241 MB / 0.6422 GB, free: 8.465 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.944e-05/0.6287, allocations: 59.91 kB / 0.6423 GB, free: 8.406 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/0.6288, allocations: 122.6 kB / 0.6424 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.6303, allocations: 0.6537 MB / 0.6431 GB, free: 7.633 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003643/0.634, allocations: 1.263 MB / 0.6443 GB, free: 6.367 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004414/0.6384, allocations: 3.782 MB / 0.648 GB, free: 2.457 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003773/0.6422, allocations: 311.3 kB / 0.6483 GB, free: 2.152 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006279/0.6429, allocations: 344 kB / 0.6486 GB, free: 1.816 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.003005/0.6459, allocations: 1.77 MB / 0.6503 GB, free: 32 kB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000618/0.6465, allocations: 304.1 kB / 0.6506 GB, free: 15.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004018/0.6505, allocations: 2.227 MB / 0.6528 GB, free: 13.48 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-05/0.6506, allocations: 16 kB / 0.6528 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.6506, allocations: 4 kB / 0.6528 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/0.6506, allocations: 7.969 kB / 0.6528 GB, free: 13.46 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.6614, allocations: 5.98 MB / 0.6587 GB, free: 7.383 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.6615, allocations: 0 / 0.6587 GB, free: 7.383 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.6625, allocations: 215.7 kB / 0.6589 GB, free: 7.172 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/0.6638, allocations: 496.2 kB / 0.6593 GB, free: 6.684 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.664, allocations: 23.98 kB / 0.6594 GB, free: 6.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003773/0.6677, allocations: 3.202 MB / 0.6625 GB, free: 3.324 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.6677, allocations: 0 / 0.6625 GB, free: 3.324 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006566/0.6743, allocations: 4.331 MB / 0.6667 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001474/0.6758, allocations: 0.5633 MB / 0.6673 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003874/0.6762, allocations: 27.84 kB / 0.6673 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.6774, allocations: 83.95 kB / 0.6674 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.6776, allocations: 68.56 kB / 0.6674 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.6778, allocations: 43.98 kB / 0.6675 GB, free: 14.16 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003662/0.6814, allocations: 2.302 MB / 0.6697 GB, free: 11.87 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.01e-07/0.6814, allocations: 3.938 kB / 0.6697 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004619/0.6861, allocations: 0.8437 MB / 0.6706 GB, free: 11.02 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 (112): * Single equations (assignments): 108 * 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.0005686/0.6867, allocations: 156.4 kB / 0.6707 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008457/0.6951, allocations: 4.267 MB / 0.6749 GB, free: 6.613 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.6952, allocations: 1.125 kB / 0.6749 GB, free: 6.613 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002131/0.6973, allocations: 1.193 MB / 0.676 GB, free: 5.402 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/0.7002, allocations: 354.1 kB / 0.6764 GB, free: 5.055 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2199/0.9201, allocations: 9.14 MB / 0.6853 GB, free: 152.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003811/0.9239, allocations: 2.755 MB / 0.688 GB, free: 152.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004696/0.9287, allocations: 1.73 MB / 0.6897 GB, free: 152.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006327/0.9293, allocations: 220.2 kB / 0.6899 GB, free: 152.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/0.9293, allocations: 0 / 0.6899 GB, free: 152.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.06258/0.9919, allocations: 28.96 MB / 0.7182 GB, free: 146 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches