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.00101/0.00101, allocations: 97.03 kB / 16.98 MB, free: 5.938 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.001206/0.001206, allocations: 185.5 kB / 17.88 MB, free: 5.594 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.425/1.425, allocations: 223.2 MB / 241.8 MB, free: 14.63 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.2139/0.2139, allocations: 44.22 MB / 337.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.000376, allocations: 12.59 kB / 409.5 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1344, allocations: 61.92 MB / 471.5 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02937/0.1639, allocations: 28.67 MB / 0.4884 GB, free: 0.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01774/0.1816, allocations: 7.486 MB / 0.4957 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00672/0.1884, allocations: 139.7 kB / 0.4958 GB, free: 9.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005646/0.1941, allocations: 1.392 MB / 0.4972 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01565/0.2097, allocations: 4.266 MB / 0.5014 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002436/0.2122, allocations: 479.2 kB / 0.5018 GB, free: 3.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3438/0.556, allocations: 24.59 MB / 0.5258 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004326/0.5604, allocations: 2.604 MB / 0.5284 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00117/0.5616, allocations: 0.7901 MB / 0.5292 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.5629, allocations: 1.082 MB / 0.5302 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002958/0.5632, allocations: 106 kB / 0.5303 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001438/0.5646, allocations: 0.8913 MB / 0.5312 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009547/0.5656, allocations: 1.217 MB / 0.5324 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000555/0.5662, allocations: 0.6496 MB / 0.533 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003028/0.5692, allocations: 4.343 MB / 0.5372 GB, free: 7.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.5692, allocations: 0 / 0.5372 GB, free: 7.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5692, allocations: 4 kB / 0.5373 GB, free: 7.453 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.239e-05/0.5693, allocations: 0 / 0.5373 GB, free: 7.453 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.006685/0.576, allocations: 3.279 MB / 0.5405 GB, free: 4.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.5761, allocations: 16.02 kB / 0.5405 GB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08326/0.6593, allocations: 8.212 MB / 0.5485 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00567/0.665, allocations: 2.25 MB / 0.5507 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.6652, allocations: 166.4 kB / 0.5508 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004753/0.6657, allocations: 224.8 kB / 0.5511 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01107/0.6768, allocations: 7.547 MB / 0.5584 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001019/0.6769, allocations: 35.94 kB / 0.5585 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003153/0.6772, allocations: 115.3 kB / 0.5586 GB, free: 4.535 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002547/0.6798, allocations: 1.602 MB / 0.5601 GB, free: 3.203 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.6923, allocations: 6.375 MB / 0.5664 GB, free: 14.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03888/0.7312, allocations: 30.41 MB / 0.5961 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004338/0.7356, allocations: 2.187 MB / 0.5982 GB, free: 15.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003887/0.736, allocations: 320.4 kB / 0.5985 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.7361, allocations: 42.38 kB / 0.5985 GB, free: 15.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.867e-06/0.7361, allocations: 0 / 0.5985 GB, free: 15.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03225/0.7684, allocations: 11.22 MB / 0.6095 GB, free: 3.863 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.7685, allocations: 202.9 kB / 0.6097 GB, free: 3.625 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005545/0.7741, allocations: 3.775 MB / 0.6134 GB, free: 15.86 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002549/0.7743, allocations: 41.7 kB / 0.6134 GB, free: 15.81 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00221/0.7766, allocations: 2.608 MB / 0.616 GB, free: 13.21 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007759/0.7774, allocations: 0.5204 MB / 0.6165 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.7776, allocations: 100 kB / 0.6166 GB, free: 12.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003276/0.7779, allocations: 0.5211 MB / 0.6171 GB, free: 12.07 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002384/0.7803, allocations: 1.615 MB / 0.6187 GB, free: 10.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004416/0.7847, allocations: 4.95 MB / 0.6235 GB, free: 3.867 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003832/0.7886, allocations: 2.794 MB / 0.6262 GB, free: 1.188 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.674e-05/0.7886, allocations: 32 kB / 0.6263 GB, free: 1.156 MB / 462.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01042/0.7991, allocations: 6.552 MB / 0.6327 GB, free: 10.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.747e-05/0.7992, allocations: 56 kB / 0.6327 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/0.7993, allocations: 120 kB / 0.6328 GB, free: 10.65 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.8004, allocations: 414.4 kB / 0.6332 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003638/0.804, allocations: 1.201 MB / 0.6344 GB, free: 9.039 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003596/0.8076, allocations: 3.116 MB / 0.6374 GB, free: 5.797 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/0.8113, allocations: 294.1 kB / 0.6377 GB, free: 5.512 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004908/0.8118, allocations: 325.8 kB / 0.638 GB, free: 5.195 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 (643): * Single equations (assignments): 639 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002579/0.8144, allocations: 1.725 MB / 0.6397 GB, free: 3.457 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005112/0.8149, allocations: 308 kB / 0.64 GB, free: 3.152 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/0.8177, allocations: 1.714 MB / 0.6417 GB, free: 1.426 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/0.8177, allocations: 23.98 kB / 0.6417 GB, free: 1.402 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.8177, allocations: 4 kB / 0.6417 GB, free: 1.398 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.8177, allocations: 3.984 kB / 0.6417 GB, free: 1.395 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00914/0.8269, allocations: 5.372 MB / 0.647 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.8269, allocations: 4.062 kB / 0.647 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009647/0.8279, allocations: 191.7 kB / 0.6471 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006643/0.8286, allocations: 233.2 kB / 0.6474 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.622e-05/0.8287, allocations: 23.98 kB / 0.6474 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002775/0.8315, allocations: 2.572 MB / 0.6499 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.8315, allocations: 4.031 kB / 0.6499 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005254/0.8367, allocations: 3.817 MB / 0.6536 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.8378, allocations: 380.9 kB / 0.654 GB, free: 4.543 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003015/0.8381, allocations: 16 kB / 0.654 GB, free: 4.527 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.8392, allocations: 63.92 kB / 0.6541 GB, free: 4.465 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.8394, allocations: 71.17 kB / 0.6541 GB, free: 4.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.8395, allocations: 44.05 kB / 0.6542 GB, free: 4.352 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003851/0.8434, allocations: 2.375 MB / 0.6565 GB, free: 1.988 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8434, allocations: 0 / 0.6565 GB, free: 1.988 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004782/0.8482, allocations: 0.8046 MB / 0.6573 GB, free: 1.184 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 (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004614/0.8486, allocations: 164.7 kB / 0.6574 GB, free: 1.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0072/0.8558, allocations: 3.92 MB / 0.6613 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.8559, allocations: 4 kB / 0.6613 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.8575, allocations: 1.057 MB / 0.6623 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.8598, allocations: 360.2 kB / 0.6626 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/0.8731, allocations: 8.289 MB / 0.6707 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002698/0.8759, allocations: 2.742 MB / 0.6734 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004056/0.88, allocations: 1.691 MB / 0.6751 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006161/0.8806, allocations: 211.4 kB / 0.6753 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.893e-06/0.8806, allocations: 0 / 0.6753 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.05558/0.9362, allocations: 27.33 MB / 0.702 GB, free: 3.57 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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches