Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001192, allocations: 93.42 kB / 17.35 MB, free: 6.375 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.001351/0.001351, allocations: 179.3 kB / 18.26 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.483/1.483, allocations: 223.2 MB / 242.3 MB, free: 236 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2268/0.2268, allocations: 44.25 MB / 337.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003973/0.0003973, allocations: 13.12 kB / 410.3 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1276, allocations: 61.93 MB / 472.3 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03869/0.1664, allocations: 39.62 MB / 0.4999 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3102/0.4767, allocations: 8.789 MB / 0.5085 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01039/0.4871, allocations: 169.8 kB / 0.5086 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.4896, allocations: 356.3 kB / 0.509 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00607/0.4957, allocations: 1.543 MB / 0.5105 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.4974, allocations: 0.5234 MB / 0.511 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009759/0.5072, allocations: 5.345 MB / 0.5162 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006538/0.5138, allocations: 3.308 MB / 0.5194 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00275/0.5166, allocations: 0.9127 MB / 0.5203 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002908/0.5195, allocations: 1.624 MB / 0.5219 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005255/0.5201, allocations: 113.4 kB / 0.522 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.5225, allocations: 1.071 MB / 0.5231 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001736/0.5242, allocations: 1.459 MB / 0.5245 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001793/0.526, allocations: 1.65 MB / 0.5261 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006236/0.5323, allocations: 5.545 MB / 0.5315 GB, free: 4.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.5323, allocations: 3.938 kB / 0.5315 GB, free: 4.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.5323, allocations: 0 / 0.5315 GB, free: 4.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001375/0.5325, allocations: 0 / 0.5315 GB, free: 4.723 MB / 382.1 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.00728/0.5397, allocations: 3.272 MB / 0.5347 GB, free: 2.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.5398, allocations: 11.84 kB / 0.5347 GB, free: 2.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01697/0.5568, allocations: 2.46 MB / 0.5371 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005791/0.5626, allocations: 2.283 MB / 0.5394 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.5628, allocations: 185.1 kB / 0.5395 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000632/0.5634, allocations: 242.6 kB / 0.5398 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.5771, allocations: 8.169 MB / 0.5477 GB, free: 8.039 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001153/0.5773, allocations: 39.59 kB / 0.5478 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003308/0.5776, allocations: 120.7 kB / 0.5479 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002815/0.5805, allocations: 1.717 MB / 0.5496 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.5954, allocations: 6.903 MB / 0.5563 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04384/0.6393, allocations: 32.53 MB / 0.5881 GB, free: 14.35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005012/0.6444, allocations: 2.472 MB / 0.5905 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.646, allocations: 1.12 MB / 0.5916 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003456/0.6463, allocations: 317.5 kB / 0.5919 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.889e-05/0.6464, allocations: 48.75 kB / 0.5919 GB, free: 10.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 5.14e-06/0.6464, allocations: 4 kB / 0.5919 GB, free: 10.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02433/0.6707, allocations: 9.24 MB / 0.601 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.6709, allocations: 200.5 kB / 0.6012 GB, free: 0.6211 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006324/0.6772, allocations: 3.804 MB / 0.6049 GB, free: 12.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000345/0.6776, allocations: 41.7 kB / 0.6049 GB, free: 12.78 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002321/0.68, allocations: 2.789 MB / 0.6076 GB, free: 10 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009075/0.6809, allocations: 495.7 kB / 0.6081 GB, free: 9.52 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007678/0.6817, allocations: 494.2 kB / 0.6086 GB, free: 9.031 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.6818, allocations: 313.1 kB / 0.6089 GB, free: 8.723 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002942/0.6847, allocations: 1.705 MB / 0.6105 GB, free: 7.012 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005908/0.6907, allocations: 5.332 MB / 0.6158 GB, free: 15.88 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/0.7028, allocations: 7.594 MB / 0.6232 GB, free: 6.484 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001446/0.703, allocations: 36 kB / 0.6232 GB, free: 6.449 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01706/0.7201, allocations: 7.192 MB / 0.6302 GB, free: 15.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.7202, allocations: 60 kB / 0.6303 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001941/0.7204, allocations: 128.8 kB / 0.6304 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001771/0.7222, allocations: 0.6565 MB / 0.6311 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004318/0.7265, allocations: 1.267 MB / 0.6323 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005142/0.7317, allocations: 3.811 MB / 0.636 GB, free: 9.203 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/0.7363, allocations: 299.4 kB / 0.6363 GB, free: 8.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009815/0.7373, allocations: 348 kB / 0.6366 GB, free: 8.57 MB / 494.1 MB 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003746/0.7411, allocations: 1.844 MB / 0.6384 GB, free: 6.715 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007182/0.7418, allocations: 300.1 kB / 0.6387 GB, free: 6.418 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/0.7456, allocations: 1.849 MB / 0.6405 GB, free: 4.551 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.128e-05/0.7457, allocations: 16 kB / 0.6405 GB, free: 4.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.7457, allocations: 4 kB / 0.6405 GB, free: 4.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.7457, allocations: 3.984 kB / 0.6405 GB, free: 4.527 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.7563, allocations: 5.365 MB / 0.6458 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.7564, allocations: 0 / 0.6458 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007979/0.7572, allocations: 159.8 kB / 0.6459 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001373/0.7586, allocations: 488.3 kB / 0.6464 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.961e-05/0.7587, allocations: 20 kB / 0.6464 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003996/0.7627, allocations: 3.218 MB / 0.6496 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7627, allocations: 0 / 0.6496 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005957/0.7687, allocations: 3.74 MB / 0.6532 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.7701, allocations: 377 kB / 0.6536 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003725/0.7705, allocations: 19.94 kB / 0.6536 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.7715, allocations: 59.92 kB / 0.6536 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002051/0.7718, allocations: 60.48 kB / 0.6537 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.748e-05/0.7719, allocations: 28 kB / 0.6537 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004302/0.7762, allocations: 2.37 MB / 0.656 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7762, allocations: 64 / 0.656 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005468/0.7817, allocations: 0.8311 MB / 0.6569 GB, free: 3.613 MB / 0.4981 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.0004755/0.7822, allocations: 139 kB / 0.657 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00758/0.7897, allocations: 4.055 MB / 0.661 GB, free: 15.43 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.7898, allocations: 0 / 0.661 GB, free: 15.43 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.001647/0.7915, allocations: 0.9984 MB / 0.6619 GB, free: 14.42 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003143/0.7946, allocations: 354.9 kB / 0.6623 GB, free: 14.07 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/0.8111, allocations: 9.101 MB / 0.6712 GB, free: 4.938 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003688/0.8149, allocations: 2.806 MB / 0.6739 GB, free: 2.109 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004611/0.8195, allocations: 1.731 MB / 0.6756 GB, free: 384 kB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006364/0.8201, allocations: 211.4 kB / 0.6758 GB, free: 172 kB / 0.5138 GB Notification: Performance of SimCode: time 1.102e-06/0.8202, allocations: 0 / 0.6758 GB, free: 172 kB / 0.5138 GB Notification: Performance of Templates: time 0.06015/0.8803, allocations: 27.97 MB / 0.7031 GB, free: 4.344 MB / 0.545 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches