Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 92.97 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001557, allocations: 202.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.8 MB / 246.9 MB, free: 11.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2393/0.2393, allocations: 46.2 MB / 345.3 MB, free: 11.39 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.0002892/0.0002892, allocations: 8 kB / 419.6 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1417, allocations: 63.56 MB / 483.2 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03339/0.1752, allocations: 28.84 MB / 0.5 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01963/0.1948, allocations: 6.925 MB / 0.5068 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006028/0.2009, allocations: 127.7 kB / 0.5069 GB, free: 128 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2968/0.4978, allocations: 324.8 kB / 0.5072 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006147/0.504, allocations: 1.448 MB / 0.5086 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.5056, allocations: 0.5123 MB / 0.5091 GB, free: 10.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01143/0.5171, allocations: 5.037 MB / 0.514 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006649/0.5238, allocations: 2.938 MB / 0.5169 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002757/0.5266, allocations: 0.8451 MB / 0.5177 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003404/0.53, allocations: 1.508 MB / 0.5192 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005869/0.5306, allocations: 108.8 kB / 0.5193 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002716/0.5333, allocations: 1.044 MB / 0.5203 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002022/0.5354, allocations: 1.307 MB / 0.5216 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002007/0.5374, allocations: 1.502 MB / 0.5231 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006409/0.5438, allocations: 5.028 MB / 0.528 GB, free: 6.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.5438, allocations: 1.438 kB / 0.528 GB, free: 6.512 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5439, allocations: 0 / 0.528 GB, free: 6.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001753/0.544, allocations: 0 / 0.528 GB, free: 6.512 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.008967/0.553, allocations: 3.024 MB / 0.5309 GB, free: 4.562 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.5531, allocations: 9.469 kB / 0.5309 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01741/0.5705, allocations: 2.393 MB / 0.5333 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006207/0.5768, allocations: 2.146 MB / 0.5354 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002001/0.577, allocations: 159 kB / 0.5355 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.5781, allocations: 221.6 kB / 0.5357 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.5917, allocations: 7.42 MB / 0.543 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/0.5919, allocations: 38.28 kB / 0.543 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003476/0.5922, allocations: 107.3 kB / 0.5431 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003063/0.5953, allocations: 1.542 MB / 0.5446 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01476/0.61, allocations: 6.327 MB / 0.5508 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05042/0.6605, allocations: 30.33 MB / 0.5804 GB, free: 6.578 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005493/0.6661, allocations: 2.233 MB / 0.5826 GB, free: 4.199 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001897/0.668, allocations: 1.133 MB / 0.5837 GB, free: 3.059 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005094/0.6685, allocations: 316.3 kB / 0.584 GB, free: 2.699 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.514e-05/0.6686, allocations: 46.09 kB / 0.584 GB, free: 2.648 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 4.639e-06/0.6686, allocations: 8 kB / 0.584 GB, free: 2.641 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.04556/0.7142, allocations: 11.85 MB / 0.5956 GB, free: 6.695 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00018/0.7144, allocations: 199.1 kB / 0.5958 GB, free: 6.461 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008573/0.723, allocations: 3.599 MB / 0.5993 GB, free: 2.859 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003311/0.7234, allocations: 45.7 kB / 0.5994 GB, free: 2.809 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002897/0.7263, allocations: 2.542 MB / 0.6019 GB, free: 280 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/0.7273, allocations: 0.5331 MB / 0.6024 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001165/0.7285, allocations: 457.6 kB / 0.6028 GB, free: 15.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.7287, allocations: 313 kB / 0.6031 GB, free: 14.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00381/0.7325, allocations: 1.732 MB / 0.6048 GB, free: 13.24 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006869/0.7394, allocations: 5.088 MB / 0.6098 GB, free: 6.527 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01094/0.7503, allocations: 7.366 MB / 0.617 GB, free: 13.73 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/0.7505, allocations: 32 kB / 0.617 GB, free: 13.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01656/0.7671, allocations: 7.049 MB / 0.6239 GB, free: 6.645 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.7673, allocations: 63.88 kB / 0.6239 GB, free: 6.582 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002346/0.7675, allocations: 120 kB / 0.6241 GB, free: 6.465 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/0.7695, allocations: 0.6425 MB / 0.6247 GB, free: 5.82 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004497/0.774, allocations: 1.216 MB / 0.6259 GB, free: 4.602 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005661/0.7797, allocations: 3.776 MB / 0.6296 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004479/0.7842, allocations: 299.3 kB / 0.6298 GB, free: 408 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/0.7853, allocations: 328 kB / 0.6302 GB, free: 80 kB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (659): * Single equations (assignments): 655 * 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.004531/0.7898, allocations: 1.708 MB / 0.6318 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008342/0.7907, allocations: 292.2 kB / 0.6321 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004881/0.7956, allocations: 2.092 MB / 0.6341 GB, free: 11.97 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/0.7956, allocations: 16 kB / 0.6342 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.7956, allocations: 0 / 0.6342 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.7957, allocations: 11.97 kB / 0.6342 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/0.8087, allocations: 5.673 MB / 0.6397 GB, free: 6.211 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/0.8088, allocations: 4.375 kB / 0.6397 GB, free: 6.207 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.8098, allocations: 195.7 kB / 0.6399 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001502/0.8113, allocations: 492 kB / 0.6404 GB, free: 5.531 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.8115, allocations: 32.05 kB / 0.6404 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00437/0.8159, allocations: 3.205 MB / 0.6435 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.8159, allocations: 3.938 kB / 0.6435 GB, free: 2.152 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007408/0.8233, allocations: 4.156 MB / 0.6476 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00126/0.8246, allocations: 365.1 kB / 0.6479 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007807/0.8254, allocations: 24.06 kB / 0.648 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/0.8271, allocations: 74.48 kB / 0.648 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.8274, allocations: 72.5 kB / 0.6481 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.8275, allocations: 39.98 kB / 0.6481 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005733/0.8333, allocations: 2.248 MB / 0.6503 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3e-07/0.8333, allocations: 0 / 0.6503 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005746/0.8391, allocations: 0.7852 MB / 0.6511 GB, free: 10.36 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 (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.0005514/0.8396, allocations: 149.1 kB / 0.6512 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008438/0.8481, allocations: 4.136 MB / 0.6553 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/0.8481, allocations: 3.938 kB / 0.6553 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.8502, allocations: 1.128 MB / 0.6564 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003872/0.8541, allocations: 327.2 kB / 0.6567 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/0.8705, allocations: 8.678 MB / 0.6652 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00414/0.8747, allocations: 2.635 MB / 0.6677 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004764/0.8795, allocations: 1.671 MB / 0.6694 GB, free: 7.551 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008711/0.8804, allocations: 207.4 kB / 0.6696 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/0.8804, allocations: 0 / 0.6696 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of Templates: time 0.06031/0.9407, allocations: 27.69 MB / 0.6966 GB, free: 11.79 MB / 0.545 GB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches