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.001505/0.001505, allocations: 108.2 kB / 18.39 MB, free: 4.762 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.001675/0.001676, allocations: 182.9 kB / 19.32 MB, free: 3.832 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.393/1.393, allocations: 222.9 MB / 243 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 65.22 kB / 409.9 MB, free: 26.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.111, allocations: 60.82 MB / 470.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009724/0.1208, allocations: 9.237 MB / 479.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006423/0.1272, allocations: 3.594 MB / 483.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.1283, allocations: 51.88 kB / 483.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00331/0.1316, allocations: 1.935 MB / 485.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.1351, allocations: 1.642 MB / 487.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.1363, allocations: 0.5692 MB / 487.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004603/0.1409, allocations: 3.708 MB / 491.4 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002714/0.1437, allocations: 2.468 MB / 493.9 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.1453, allocations: 1.199 MB / 495.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002049/0.1473, allocations: 1.674 MB / 496.8 MB, free: 3.398 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005058/0.1479, allocations: 248 kB / 497 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001922/0.1498, allocations: 1.135 MB / 498.1 MB, free: 2.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001455/0.1513, allocations: 1.582 MB / 499.7 MB, free: 444 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00189/0.1532, allocations: 1.794 MB / 0.4898 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005826/0.159, allocations: 5.948 MB / 0.4956 GB, free: 8.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.159, allocations: 4 kB / 0.4956 GB, free: 8.656 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1591, allocations: 0 / 0.4956 GB, free: 8.656 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001248/0.1592, allocations: 0 / 0.4956 GB, free: 8.656 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.007813/0.167, allocations: 3.959 MB / 0.4994 GB, free: 4.629 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.1671, allocations: 8.031 kB / 0.4995 GB, free: 4.621 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01446/0.1816, allocations: 2.406 MB / 0.5018 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2037/0.3853, allocations: 2.318 MB / 0.5041 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002279/0.3856, allocations: 177.7 kB / 0.5042 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001073/0.3866, allocations: 250.4 kB / 0.5045 GB, free: 45.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01198/0.3986, allocations: 8.154 MB / 0.5124 GB, free: 42.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.367e-05/0.3987, allocations: 36.88 kB / 0.5125 GB, free: 42.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002948/0.3991, allocations: 117.3 kB / 0.5126 GB, free: 42.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003014/0.4021, allocations: 1.705 MB / 0.5143 GB, free: 41.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/0.4147, allocations: 6.9 MB / 0.521 GB, free: 39.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02935/0.4441, allocations: 32.36 MB / 0.5526 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003824/0.448, allocations: 2.486 MB / 0.555 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.4491, allocations: 1.122 MB / 0.5561 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000282/0.4494, allocations: 319.2 kB / 0.5564 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.4494, allocations: 54.5 kB / 0.5565 GB, free: 4.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 3.977e-06/0.4494, allocations: 0 / 0.5565 GB, free: 4.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=118): time 0.02074/0.4702, allocations: 9.241 MB / 0.5655 GB, free: 11.54 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.4703, allocations: 200.4 kB / 0.5657 GB, free: 11.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005141/0.4755, allocations: 3.812 MB / 0.5694 GB, free: 7.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002818/0.4758, allocations: 45.69 kB / 0.5694 GB, free: 7.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001989/0.4778, allocations: 2.774 MB / 0.5722 GB, free: 4.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005386/0.4783, allocations: 0.4942 MB / 0.5726 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/0.4797, allocations: 1.138 MB / 0.5738 GB, free: 2.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.4798, allocations: 305.1 kB / 0.574 GB, free: 2.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002385/0.4822, allocations: 1.713 MB / 0.5757 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005106/0.4873, allocations: 5.322 MB / 0.5809 GB, free: 9.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008889/0.4962, allocations: 7.596 MB / 0.5883 GB, free: 432 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/0.4964, allocations: 44 kB / 0.5884 GB, free: 388 kB / 414.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01354/0.5099, allocations: 7.204 MB / 0.5954 GB, free: 9.168 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.375e-05/0.5101, allocations: 60 kB / 0.5955 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001541/0.5102, allocations: 128 kB / 0.5956 GB, free: 8.984 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001681/0.5119, allocations: 0.6599 MB / 0.5962 GB, free: 8.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003889/0.5158, allocations: 1.263 MB / 0.5975 GB, free: 7.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004996/0.5208, allocations: 4.083 MB / 0.6015 GB, free: 2.832 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004034/0.5249, allocations: 295.5 kB / 0.6017 GB, free: 2.543 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007443/0.5257, allocations: 351.3 kB / 0.6021 GB, free: 2.203 MB / 430.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.003131/0.5288, allocations: 1.838 MB / 0.6039 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006322/0.5294, allocations: 312.3 kB / 0.6042 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/0.5329, allocations: 1.841 MB / 0.606 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.231e-05/0.5329, allocations: 20 kB / 0.606 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.5329, allocations: 0 / 0.606 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.533, allocations: 15.86 kB / 0.606 GB, free: 14.15 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.5431, allocations: 5.33 MB / 0.6112 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.5431, allocations: 112 / 0.6112 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000799/0.5439, allocations: 163.7 kB / 0.6114 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.5452, allocations: 492.2 kB / 0.6118 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-05/0.5453, allocations: 20 kB / 0.6118 GB, free: 8.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003872/0.5492, allocations: 3.43 MB / 0.6152 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5492, allocations: 0 / 0.6152 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005949/0.5552, allocations: 3.73 MB / 0.6188 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001125/0.5563, allocations: 368.9 kB / 0.6192 GB, free: 396 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003585/0.5567, allocations: 24.88 kB / 0.6192 GB, free: 372 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001054/0.5578, allocations: 63.91 kB / 0.6193 GB, free: 308 kB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.558, allocations: 60.55 kB / 0.6193 GB, free: 248 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.729e-05/0.5581, allocations: 39.94 kB / 0.6194 GB, free: 208 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003953/0.5621, allocations: 2.363 MB / 0.6217 GB, free: 13.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5621, allocations: 3.938 kB / 0.6217 GB, free: 13.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004265/0.5664, allocations: 0.8269 MB / 0.6225 GB, free: 13.02 MB / 462.1 MB 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.0003859/0.5668, allocations: 148.5 kB / 0.6226 GB, free: 12.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006417/0.5732, allocations: 4.051 MB / 0.6266 GB, free: 8.844 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5732, allocations: 0 / 0.6266 GB, free: 8.844 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.5746, allocations: 1.001 MB / 0.6276 GB, free: 7.828 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.5768, allocations: 378.2 kB / 0.6279 GB, free: 7.461 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/0.5884, allocations: 7.355 MB / 0.6351 GB, free: 76 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003076/0.5916, allocations: 2.809 MB / 0.6378 GB, free: 13.24 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003742/0.5953, allocations: 1.707 MB / 0.6395 GB, free: 11.53 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006216/0.596, allocations: 215.4 kB / 0.6397 GB, free: 11.32 MB / 478.1 MB Notification: Performance of SimCode: time 8.21e-07/0.596, allocations: 0 / 0.6397 GB, free: 11.32 MB / 478.1 MB Notification: Performance of Templates: time 0.05172/0.6477, allocations: 24.58 MB / 0.6637 GB, free: 2.844 MB / 494.1 MB 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/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