Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_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.0008292/0.0008292, allocations: 96.02 kB / 17.35 MB, free: 6.367 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.00113/0.001131, allocations: 176.1 kB / 18.25 MB, free: 5.523 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.391/1.391, allocations: 223.3 MB / 242.3 MB, free: 14.47 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.2155/0.2155, allocations: 44.24 MB / 337.7 MB, free: 2.414 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004087/0.0004087, allocations: 8.5 kB / 410.3 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1515, allocations: 61.92 MB / 472.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03168/0.1832, allocations: 32.54 MB / 0.493 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01829/0.2015, allocations: 7.607 MB / 0.5004 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007195/0.2087, allocations: 143.6 kB / 0.5005 GB, free: 4.875 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.2101, allocations: 334.4 kB / 0.5008 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004662/0.2147, allocations: 1.497 MB / 0.5023 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.216, allocations: 0.5148 MB / 0.5028 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.278/0.494, allocations: 5.076 MB / 0.5078 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005863/0.5, allocations: 2.957 MB / 0.5107 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.5021, allocations: 0.867 MB / 0.5115 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002576/0.5047, allocations: 1.532 MB / 0.513 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004057/0.5051, allocations: 105.6 kB / 0.5131 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002184/0.5073, allocations: 1.074 MB / 0.5141 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001709/0.509, allocations: 1.342 MB / 0.5155 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.5105, allocations: 1.548 MB / 0.517 GB, free: 9.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006053/0.5165, allocations: 5.169 MB / 0.522 GB, free: 8.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.5166, allocations: 0 / 0.522 GB, free: 8.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.278e-06/0.5166, allocations: 1 kB / 0.522 GB, free: 8.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001817/0.5168, allocations: 0 / 0.522 GB, free: 8.66 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.008818/0.5256, allocations: 3.082 MB / 0.525 GB, free: 6.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.5256, allocations: 9.188 kB / 0.525 GB, free: 6.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01644/0.5421, allocations: 2.424 MB / 0.5274 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005847/0.548, allocations: 2.195 MB / 0.5295 GB, free: 4.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.5482, allocations: 164.6 kB / 0.5297 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007038/0.5489, allocations: 222.8 kB / 0.5299 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01134/0.5602, allocations: 7.607 MB / 0.5373 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.5604, allocations: 37.47 kB / 0.5374 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003035/0.5607, allocations: 120.2 kB / 0.5375 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002481/0.5632, allocations: 1.598 MB / 0.5391 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.5751, allocations: 6.489 MB / 0.5454 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/0.6142, allocations: 30.68 MB / 0.5754 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004654/0.619, allocations: 2.242 MB / 0.5775 GB, free: 9.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.6205, allocations: 1.129 MB / 0.5786 GB, free: 8.715 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003955/0.6209, allocations: 319.8 kB / 0.579 GB, free: 8.355 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.6209, allocations: 55.05 kB / 0.579 GB, free: 8.293 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 3.617e-06/0.6209, allocations: 3.938 kB / 0.579 GB, free: 8.289 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03913/0.6601, allocations: 11.9 MB / 0.5906 GB, free: 12.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001787/0.6603, allocations: 196.5 kB / 0.5908 GB, free: 12.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006951/0.6673, allocations: 3.656 MB / 0.5944 GB, free: 8.387 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004509/0.6678, allocations: 45.7 kB / 0.5944 GB, free: 8.336 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002231/0.67, allocations: 2.588 MB / 0.597 GB, free: 5.754 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008143/0.6708, allocations: 0.5234 MB / 0.5975 GB, free: 5.234 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006368/0.6715, allocations: 475.6 kB / 0.5979 GB, free: 4.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.6716, allocations: 309.1 kB / 0.5982 GB, free: 4.465 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002923/0.6746, allocations: 1.74 MB / 0.5999 GB, free: 2.719 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005786/0.6804, allocations: 5.107 MB / 0.6049 GB, free: 11.98 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/0.6905, allocations: 7.396 MB / 0.6121 GB, free: 3.398 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001103/0.6907, allocations: 32 kB / 0.6122 GB, free: 3.367 MB / 462.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01762/0.7083, allocations: 7.087 MB / 0.6191 GB, free: 12.91 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.7085, allocations: 56.28 kB / 0.6191 GB, free: 12.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002157/0.7087, allocations: 120 kB / 0.6193 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001846/0.7106, allocations: 0.6413 MB / 0.6199 GB, free: 12.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004763/0.7153, allocations: 1.232 MB / 0.6211 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005116/0.7205, allocations: 3.767 MB / 0.6248 GB, free: 6.961 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005352/0.7259, allocations: 302.5 kB / 0.625 GB, free: 6.668 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001214/0.7271, allocations: 328 kB / 0.6254 GB, free: 6.348 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (662): * Single equations (assignments): 658 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00409/0.7312, allocations: 1.732 MB / 0.6271 GB, free: 4.605 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007865/0.732, allocations: 304 kB / 0.6273 GB, free: 4.305 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004196/0.7362, allocations: 2.088 MB / 0.6294 GB, free: 2.199 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.027e-05/0.7363, allocations: 20 kB / 0.6294 GB, free: 2.18 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.7363, allocations: 4 kB / 0.6294 GB, free: 2.176 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/0.7363, allocations: 7.969 kB / 0.6294 GB, free: 2.168 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.7479, allocations: 5.744 MB / 0.635 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.748, allocations: 0 / 0.635 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009905/0.749, allocations: 191.7 kB / 0.6352 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001396/0.7504, allocations: 484.2 kB / 0.6357 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001277/0.7505, allocations: 27.92 kB / 0.6357 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003956/0.7545, allocations: 3.217 MB / 0.6388 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.7545, allocations: 0 / 0.6388 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006401/0.7609, allocations: 4.169 MB / 0.6429 GB, free: 4.125 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.7621, allocations: 377 kB / 0.6433 GB, free: 3.734 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/0.7625, allocations: 19.94 kB / 0.6433 GB, free: 3.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.7637, allocations: 79.95 kB / 0.6434 GB, free: 3.637 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.7639, allocations: 64.56 kB / 0.6434 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7641, allocations: 36 kB / 0.6435 GB, free: 3.539 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004161/0.7682, allocations: 2.288 MB / 0.6457 GB, free: 1.262 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7682, allocations: 0 / 0.6457 GB, free: 1.262 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005449/0.7737, allocations: 0.8074 MB / 0.6465 GB, free: 468 kB / 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 (102): * Single equations (assignments): 98 * 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.0004502/0.7742, allocations: 158.8 kB / 0.6466 GB, free: 300 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007141/0.7813, allocations: 4.13 MB / 0.6507 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.7814, allocations: 4 kB / 0.6507 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.783, allocations: 1.132 MB / 0.6518 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/0.7861, allocations: 340.6 kB / 0.6521 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01634/0.8024, allocations: 8.832 MB / 0.6607 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003282/0.8058, allocations: 2.678 MB / 0.6633 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004939/0.8107, allocations: 1.676 MB / 0.665 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007455/0.8115, allocations: 215.3 kB / 0.6652 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of SimCode: time 1.243e-06/0.8115, allocations: 0 / 0.6652 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of Templates: time 0.05911/0.8706, allocations: 28.12 MB / 0.6926 GB, free: 1.27 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches