Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 102.7 kB / 16.41 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.594/1.594, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2286/0.2286, allocations: 43.53 MB / 314.1 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 65.47 kB / 441.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1473, allocations: 57.79 MB / 499.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0124/0.1598, allocations: 9.428 MB / 0.4971 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008431/0.1683, allocations: 3.598 MB / 0.5006 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002062/0.1704, allocations: 51.88 kB / 0.5006 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00356/0.1739, allocations: 1.689 MB / 0.5023 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004843/0.1789, allocations: 1.677 MB / 0.5039 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001416/0.1803, allocations: 0.5575 MB / 0.5045 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005462/0.1858, allocations: 3.517 MB / 0.5079 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003384/0.1892, allocations: 2.255 MB / 0.5101 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002576/0.1918, allocations: 1.16 MB / 0.5112 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002486/0.1943, allocations: 1.639 MB / 0.5128 GB, free: 2.074 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005527/0.1949, allocations: 244 kB / 0.5131 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.197, allocations: 1.116 MB / 0.5142 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001547/0.1985, allocations: 1.519 MB / 0.5157 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001872/0.2004, allocations: 1.728 MB / 0.5173 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007085/0.2075, allocations: 5.773 MB / 0.523 GB, free: 7.664 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2075, allocations: 4 kB / 0.523 GB, free: 7.66 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2076, allocations: 0 / 0.523 GB, free: 7.66 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001338/0.2077, allocations: 4 kB / 0.523 GB, free: 7.656 MB / 414.1 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.008136/0.2158, allocations: 3.849 MB / 0.5267 GB, free: 3.738 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.251e-05/0.2159, allocations: 11.89 kB / 0.5268 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/0.23, allocations: 2.379 MB / 0.5291 GB, free: 1.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3056/0.5357, allocations: 2.318 MB / 0.5313 GB, free: 36.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/0.5358, allocations: 172 kB / 0.5315 GB, free: 36.55 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004633/0.5363, allocations: 229.7 kB / 0.5317 GB, free: 36.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0124/0.5487, allocations: 7.882 MB / 0.5394 GB, free: 33.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/0.5489, allocations: 45.03 kB / 0.5395 GB, free: 33.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003315/0.5492, allocations: 115.5 kB / 0.5396 GB, free: 33.8 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00316/0.5524, allocations: 1.668 MB / 0.5412 GB, free: 33.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01278/0.5652, allocations: 6.751 MB / 0.5478 GB, free: 31.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02971/0.5949, allocations: 31.41 MB / 0.5785 GB, free: 5.543 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003912/0.5989, allocations: 2.356 MB / 0.5808 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.6001, allocations: 1.18 MB / 0.5819 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002853/0.6004, allocations: 315.9 kB / 0.5822 GB, free: 1.488 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.6004, allocations: 47.94 kB / 0.5823 GB, free: 1.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.248e-06/0.6004, allocations: 4 kB / 0.5823 GB, free: 1.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03913/0.6396, allocations: 12.3 MB / 0.5943 GB, free: 4.988 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.6397, allocations: 200.5 kB / 0.5945 GB, free: 4.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006843/0.6466, allocations: 3.73 MB / 0.5981 GB, free: 1.023 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/0.6468, allocations: 49.7 kB / 0.5982 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/0.649, allocations: 2.662 MB / 0.6008 GB, free: 14.27 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007726/0.6498, allocations: 0.571 MB / 0.6013 GB, free: 13.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001854/0.6517, allocations: 1.118 MB / 0.6024 GB, free: 12.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.908e-05/0.6518, allocations: 301.1 kB / 0.6027 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002746/0.6546, allocations: 1.803 MB / 0.6045 GB, free: 10.46 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005081/0.6597, allocations: 5.252 MB / 0.6096 GB, free: 3.473 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009091/0.6688, allocations: 7.616 MB / 0.617 GB, free: 10.14 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-05/0.6689, allocations: 39.94 kB / 0.6171 GB, free: 10.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01397/0.6829, allocations: 7.273 MB / 0.6242 GB, free: 2.82 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.6831, allocations: 64.03 kB / 0.6242 GB, free: 2.758 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002142/0.6833, allocations: 120 kB / 0.6243 GB, free: 2.641 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.685, allocations: 0.6564 MB / 0.625 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004351/0.6894, allocations: 1.263 MB / 0.6262 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005554/0.695, allocations: 4.071 MB / 0.6302 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005578/0.7006, allocations: 307.8 kB / 0.6305 GB, free: 12.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00116/0.7018, allocations: 340 kB / 0.6308 GB, free: 11.88 MB / 478.1 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.004632/0.7064, allocations: 1.786 MB / 0.6326 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/0.7075, allocations: 304.1 kB / 0.6328 GB, free: 9.785 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005153/0.7127, allocations: 2.23 MB / 0.635 GB, free: 7.539 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.242e-05/0.7127, allocations: 19.98 kB / 0.635 GB, free: 7.52 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/0.7127, allocations: 4 kB / 0.6351 GB, free: 7.516 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/0.7128, allocations: 3.984 kB / 0.6351 GB, free: 7.512 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.7267, allocations: 5.936 MB / 0.6409 GB, free: 1.488 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/0.7267, allocations: 3.938 kB / 0.6409 GB, free: 1.484 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.7279, allocations: 223.7 kB / 0.6411 GB, free: 1.266 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.7293, allocations: 480.2 kB / 0.6415 GB, free: 0.793 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001848/0.7295, allocations: 28.03 kB / 0.6416 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004182/0.7337, allocations: 3.417 MB / 0.6449 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.7338, allocations: 4.312 kB / 0.6449 GB, free: 13.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006858/0.7406, allocations: 4.351 MB / 0.6491 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/0.7423, allocations: 0.5478 MB / 0.6497 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007881/0.7431, allocations: 39.72 kB / 0.6497 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.7447, allocations: 75.89 kB / 0.6498 GB, free: 8.133 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.7449, allocations: 68.62 kB / 0.6499 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.745, allocations: 51.97 kB / 0.6499 GB, free: 8.016 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004079/0.7491, allocations: 2.337 MB / 0.6522 GB, free: 5.691 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7491, allocations: 0 / 0.6522 GB, free: 5.691 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005134/0.7543, allocations: 0.8308 MB / 0.653 GB, free: 4.863 MB / 494.1 MB 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.0004963/0.7548, allocations: 157.4 kB / 0.6531 GB, free: 4.703 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008052/0.7628, allocations: 4.305 MB / 0.6574 GB, free: 428 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.7629, allocations: 0 / 0.6574 GB, free: 428 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/0.7649, allocations: 1.19 MB / 0.6585 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.7675, allocations: 362.3 kB / 0.6589 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.7814, allocations: 7.468 MB / 0.6662 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003135/0.7845, allocations: 2.757 MB / 0.6688 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0039/0.7885, allocations: 1.754 MB / 0.6706 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005966/0.7891, allocations: 211.4 kB / 0.6708 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of SimCode: time 2.064e-06/0.7891, allocations: 0 / 0.6708 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of Templates: time 0.05659/0.8457, allocations: 26.98 MB / 0.6971 GB, free: 7.645 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches