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.001508/0.001508, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001802/0.001802, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.398/1.398, allocations: 222.9 MB / 243 MB, free: 15.17 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.2051/0.2051, allocations: 44.17 MB / 337.4 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 64.53 kB / 409.9 MB, free: 26.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1284, allocations: 60.84 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01132/0.1398, allocations: 9.023 MB / 479.7 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.1499, allocations: 3.555 MB / 483.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001981/0.1519, allocations: 51.88 kB / 483.3 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003551/0.1555, allocations: 1.67 MB / 485 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004778/0.1603, allocations: 1.595 MB / 486.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.1618, allocations: 0.5497 MB / 487.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00674/0.1685, allocations: 3.587 MB / 490.7 MB, free: 9.562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003336/0.1719, allocations: 2.22 MB / 493 MB, free: 7.293 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.1746, allocations: 1.117 MB / 494.1 MB, free: 6.172 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.1772, allocations: 1.557 MB / 495.6 MB, free: 4.609 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005897/0.1778, allocations: 224 kB / 495.8 MB, free: 4.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002137/0.1799, allocations: 1.116 MB / 497 MB, free: 3.273 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00159/0.1815, allocations: 1.445 MB / 498.4 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001775/0.1833, allocations: 1.662 MB / 0.4883 GB, free: 156 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005757/0.1891, allocations: 5.543 MB / 0.4938 GB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1891, allocations: 8 kB / 0.4938 GB, free: 10.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1891, allocations: 0 / 0.4938 GB, free: 10.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001238/0.1893, allocations: 0 / 0.4938 GB, free: 10.58 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.007641/0.1969, allocations: 3.728 MB / 0.4974 GB, free: 6.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.699e-05/0.197, allocations: 12.03 kB / 0.4974 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01383/0.2108, allocations: 2.352 MB / 0.4997 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006247/0.2171, allocations: 2.237 MB / 0.5019 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.2173, allocations: 168.5 kB / 0.5021 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000649/0.218, allocations: 224 kB / 0.5023 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2422/0.4601, allocations: 7.584 MB / 0.5097 GB, free: 43.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002086/0.4604, allocations: 36.31 kB / 0.5097 GB, free: 43.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007981/0.4612, allocations: 110.3 kB / 0.5098 GB, free: 43.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003238/0.4645, allocations: 1.601 MB / 0.5114 GB, free: 43.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/0.4795, allocations: 6.466 MB / 0.5177 GB, free: 41.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03027/0.5098, allocations: 30.54 MB / 0.5475 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003778/0.5136, allocations: 2.233 MB / 0.5497 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001079/0.5147, allocations: 1.136 MB / 0.5508 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002923/0.515, allocations: 330 kB / 0.5511 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.515, allocations: 42.94 kB / 0.5512 GB, free: 11.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.685e-06/0.5151, allocations: 0 / 0.5512 GB, free: 11.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.03162/0.5467, allocations: 11.87 MB / 0.5628 GB, free: 15.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.5469, allocations: 200.5 kB / 0.563 GB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005312/0.5522, allocations: 3.664 MB / 0.5665 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002545/0.5525, allocations: 41.7 kB / 0.5666 GB, free: 11.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001916/0.5544, allocations: 2.586 MB / 0.5691 GB, free: 8.461 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006847/0.5551, allocations: 0.5286 MB / 0.5696 GB, free: 7.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/0.5565, allocations: 1.083 MB / 0.5707 GB, free: 6.832 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5567, allocations: 305.1 kB / 0.571 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.5592, allocations: 1.74 MB / 0.5727 GB, free: 4.785 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005843/0.5651, allocations: 5.111 MB / 0.5777 GB, free: 13.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.5756, allocations: 7.402 MB / 0.5849 GB, free: 4.91 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001238/0.5758, allocations: 32 kB / 0.5849 GB, free: 4.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01426/0.59, allocations: 7.086 MB / 0.5918 GB, free: 13.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.415e-05/0.5901, allocations: 56 kB / 0.5919 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/0.5903, allocations: 120 kB / 0.592 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/0.5919, allocations: 0.6369 MB / 0.5926 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004132/0.596, allocations: 1.228 MB / 0.5938 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004897/0.6009, allocations: 4.061 MB / 0.5978 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004244/0.6052, allocations: 299.5 kB / 0.5981 GB, free: 7.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008148/0.606, allocations: 331.9 kB / 0.5984 GB, free: 6.926 MB / 430.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.003184/0.6092, allocations: 1.732 MB / 0.6001 GB, free: 5.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007256/0.61, allocations: 300.1 kB / 0.6004 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/0.6137, allocations: 2.088 MB / 0.6024 GB, free: 2.777 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-05/0.6137, allocations: 16 kB / 0.6024 GB, free: 2.762 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.6137, allocations: 8 kB / 0.6024 GB, free: 2.754 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.6137, allocations: 11.97 kB / 0.6024 GB, free: 2.742 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.6242, allocations: 5.703 MB / 0.608 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.6243, allocations: 4 kB / 0.608 GB, free: 12.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009979/0.6253, allocations: 195.7 kB / 0.6082 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.6266, allocations: 484.2 kB / 0.6087 GB, free: 12.28 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000119/0.6267, allocations: 28 kB / 0.6087 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004073/0.6308, allocations: 3.429 MB / 0.612 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6308, allocations: 11.91 kB / 0.612 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006322/0.6371, allocations: 4.169 MB / 0.6161 GB, free: 4.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/0.6384, allocations: 365 kB / 0.6165 GB, free: 4.102 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.6387, allocations: 16 kB / 0.6165 GB, free: 4.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.6398, allocations: 71.91 kB / 0.6165 GB, free: 4.016 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.64, allocations: 68.5 kB / 0.6166 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.6401, allocations: 39.98 kB / 0.6167 GB, free: 3.906 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003728/0.6439, allocations: 2.292 MB / 0.6189 GB, free: 1.625 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.6439, allocations: 0 / 0.6189 GB, free: 1.625 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004811/0.6487, allocations: 0.8099 MB / 0.6197 GB, free: 0.8203 MB / 446.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.0004623/0.6492, allocations: 149.5 kB / 0.6198 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007258/0.6565, allocations: 4.141 MB / 0.6239 GB, free: 12.54 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/0.6565, allocations: 4 kB / 0.6239 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.6581, allocations: 1.139 MB / 0.625 GB, free: 11.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/0.6605, allocations: 363.3 kB / 0.6253 GB, free: 11.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.6724, allocations: 7.182 MB / 0.6323 GB, free: 3.812 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002802/0.6752, allocations: 2.681 MB / 0.635 GB, free: 1.102 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003712/0.679, allocations: 1.679 MB / 0.6366 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006027/0.6796, allocations: 211.3 kB / 0.6368 GB, free: 15.21 MB / 478.1 MB Notification: Performance of SimCode: time 1.533e-06/0.6796, allocations: 0 / 0.6368 GB, free: 15.21 MB / 478.1 MB Notification: Performance of Templates: time 0.05066/0.7303, allocations: 24.98 MB / 0.6612 GB, free: 6.32 MB / 494.1 MB 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/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