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.001182/0.001182, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 204.9 kB / 16.79 MB, free: 6.84 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.525/1.525, allocations: 205.1 MB / 222.6 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3701/0.3701, allocations: 43.49 MB / 313.5 MB, free: 8.254 MB / 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.001361/0.001361, allocations: 63.91 kB / 382 MB, free: 8.496 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1426, allocations: 57.79 MB / 439.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2901/0.4328, allocations: 33.88 MB / 473.7 MB, free: 30.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01923/0.4521, allocations: 7.717 MB / 481.4 MB, free: 26.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008129/0.4602, allocations: 143.2 kB / 481.6 MB, free: 26.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003731/0.464, allocations: 1.673 MB / 483.2 MB, free: 25.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004568/0.4687, allocations: 1.521 MB / 484.8 MB, free: 24.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.4701, allocations: 0.5168 MB / 485.3 MB, free: 24.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005349/0.4754, allocations: 4.988 MB / 490.3 MB, free: 22.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002747/0.4782, allocations: 2.228 MB / 492.5 MB, free: 22.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.4802, allocations: 1.016 MB / 493.5 MB, free: 21.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002528/0.4828, allocations: 1.755 MB / 495.3 MB, free: 21.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005814/0.4834, allocations: 165.8 kB / 495.4 MB, free: 21.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.4857, allocations: 1.106 MB / 496.5 MB, free: 20.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001853/0.4875, allocations: 1.461 MB / 498 MB, free: 20.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.4893, allocations: 1.676 MB / 499.7 MB, free: 19.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008784/0.4981, allocations: 5.501 MB / 0.4933 GB, free: 17.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.4982, allocations: 0 / 0.4933 GB, free: 17.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4982, allocations: 1.406 kB / 0.4933 GB, free: 17.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002393/0.4984, allocations: 0 / 0.4933 GB, free: 17.43 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01442/0.5128, allocations: 3.868 MB / 0.4971 GB, free: 15.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.88e-05/0.5129, allocations: 9.469 kB / 0.4971 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01682/0.5298, allocations: 2.377 MB / 0.4994 GB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006732/0.5365, allocations: 2.288 MB / 0.5017 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001783/0.5367, allocations: 174 kB / 0.5018 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009863/0.5377, allocations: 228.7 kB / 0.5021 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/0.5512, allocations: 7.891 MB / 0.5098 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/0.5514, allocations: 39.84 kB / 0.5098 GB, free: 7.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003493/0.5517, allocations: 111.2 kB / 0.5099 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002585/0.5543, allocations: 1.667 MB / 0.5115 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/0.5716, allocations: 6.754 MB / 0.5181 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05811/0.6298, allocations: 31.55 MB / 0.5489 GB, free: 15.91 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007957/0.6378, allocations: 2.351 MB / 0.5512 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/0.6408, allocations: 1.178 MB / 0.5524 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006326/0.6414, allocations: 323.7 kB / 0.5527 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.6415, allocations: 51.06 kB / 0.5527 GB, free: 11.8 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.389e-06/0.6415, allocations: 4 kB / 0.5527 GB, free: 11.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.05029/0.6918, allocations: 12.28 MB / 0.5647 GB, free: 15.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.692, allocations: 208.4 kB / 0.5649 GB, free: 15.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/0.6975, allocations: 3.738 MB / 0.5686 GB, free: 11.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002588/0.6977, allocations: 41.7 kB / 0.5686 GB, free: 11.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00189/0.6996, allocations: 2.67 MB / 0.5712 GB, free: 8.629 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006937/0.7003, allocations: 0.5556 MB / 0.5718 GB, free: 8.066 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001422/0.7018, allocations: 1.115 MB / 0.5729 GB, free: 6.941 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.7019, allocations: 301.1 kB / 0.5732 GB, free: 6.645 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/0.7045, allocations: 1.81 MB / 0.5749 GB, free: 4.828 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004981/0.7095, allocations: 5.249 MB / 0.5801 GB, free: 13.85 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009904/0.7194, allocations: 7.619 MB / 0.5875 GB, free: 4.516 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.633e-05/0.7195, allocations: 35.94 kB / 0.5875 GB, free: 4.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01372/0.7333, allocations: 7.289 MB / 0.5946 GB, free: 13.18 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.32e-05/0.7334, allocations: 63.94 kB / 0.5947 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.7335, allocations: 120 kB / 0.5948 GB, free: 13 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/0.7351, allocations: 0.6528 MB / 0.5955 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004206/0.7393, allocations: 1.267 MB / 0.5967 GB, free: 11.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004733/0.7441, allocations: 3.788 MB / 0.6004 GB, free: 7.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/0.749, allocations: 299.4 kB / 0.6007 GB, free: 6.867 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009365/0.7499, allocations: 340 kB / 0.601 GB, free: 6.535 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.004335/0.7543, allocations: 1.782 MB / 0.6027 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008263/0.7551, allocations: 308 kB / 0.603 GB, free: 4.438 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004338/0.7595, allocations: 2.231 MB / 0.6052 GB, free: 2.188 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.884e-05/0.7595, allocations: 16 kB / 0.6052 GB, free: 2.172 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.7595, allocations: 4 kB / 0.6052 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.7595, allocations: 3.984 kB / 0.6052 GB, free: 2.164 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/0.771, allocations: 5.987 MB / 0.6111 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.771, allocations: 4 kB / 0.6111 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.7721, allocations: 207.7 kB / 0.6113 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001356/0.7735, allocations: 492.3 kB / 0.6118 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.7736, allocations: 28 kB / 0.6118 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004104/0.7777, allocations: 3.217 MB / 0.6149 GB, free: 8.012 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.7778, allocations: 7.969 kB / 0.6149 GB, free: 8.004 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006732/0.7845, allocations: 4.343 MB / 0.6192 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/0.7861, allocations: 0.5476 MB / 0.6197 GB, free: 3.059 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003936/0.7865, allocations: 20 kB / 0.6197 GB, free: 3.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.7878, allocations: 87.89 kB / 0.6198 GB, free: 2.953 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.788, allocations: 76.48 kB / 0.6199 GB, free: 2.879 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.7881, allocations: 36 kB / 0.6199 GB, free: 2.844 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004292/0.7924, allocations: 2.337 MB / 0.6222 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7924, allocations: 0 / 0.6222 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004992/0.7974, allocations: 0.836 MB / 0.623 GB, free: 15.68 MB / 0.4981 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.0004588/0.7979, allocations: 158.7 kB / 0.6232 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007613/0.8055, allocations: 4.291 MB / 0.6274 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.8056, allocations: 256 / 0.6274 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.8074, allocations: 1.193 MB / 0.6285 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00272/0.8101, allocations: 357.1 kB / 0.6289 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.826, allocations: 9.09 MB / 0.6377 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2754/1.101, allocations: 2.746 MB / 0.6404 GB, free: 156.6 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005014/1.106, allocations: 1.731 MB / 0.6421 GB, free: 156.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008409/1.107, allocations: 218.3 kB / 0.6423 GB, free: 156.5 MB / 0.4981 GB Notification: Performance of SimCode: time 2.414e-06/1.107, allocations: 0 / 0.6423 GB, free: 156.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.07629/1.184, allocations: 29.34 MB / 0.671 GB, free: 151.4 MB / 0.4981 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