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.001413/0.001413, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001487/0.001487, allocations: 193.3 kB / 18.9 MB, free: 4.48 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.319/1.319, allocations: 222.9 MB / 242.6 MB, free: 15.3 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.2012/0.2012, allocations: 44.16 MB / 336.9 MB, free: 2.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 59 kB / 408.5 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 60.83 MB / 469.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03088/0.1401, allocations: 33.51 MB / 0.4911 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01603/0.1562, allocations: 7.58 MB / 0.4985 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006288/0.1625, allocations: 139.6 kB / 0.4986 GB, free: 5.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003656/0.1662, allocations: 1.601 MB / 0.5002 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004078/0.1703, allocations: 1.48 MB / 0.5016 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.1717, allocations: 0.5304 MB / 0.5022 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2364/0.4082, allocations: 3.789 MB / 0.5059 GB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003823/0.4121, allocations: 2.336 MB / 0.5081 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.4146, allocations: 1.131 MB / 0.5092 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.4178, allocations: 1.752 MB / 0.511 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008377/0.4186, allocations: 227.7 kB / 0.5112 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.4214, allocations: 1.132 MB / 0.5123 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002493/0.424, allocations: 1.481 MB / 0.5137 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003154/0.4271, allocations: 1.682 MB / 0.5154 GB, free: 9.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007518/0.4347, allocations: 4.341 MB / 0.5196 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.4347, allocations: 2.812 kB / 0.5196 GB, free: 9.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4347, allocations: 0 / 0.5196 GB, free: 9.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001833/0.4349, allocations: 0 / 0.5196 GB, free: 9.543 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.009739/0.4447, allocations: 3.739 MB / 0.5233 GB, free: 7.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.4447, allocations: 9.906 kB / 0.5233 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01513/0.4599, allocations: 2.355 MB / 0.5256 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006008/0.4659, allocations: 2.195 MB / 0.5277 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.4661, allocations: 170.1 kB / 0.5279 GB, free: 6.352 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001119/0.4672, allocations: 224 kB / 0.5281 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/0.4806, allocations: 7.587 MB / 0.5355 GB, free: 1.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001138/0.4808, allocations: 42.48 kB / 0.5355 GB, free: 1.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/0.4812, allocations: 108.8 kB / 0.5356 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002377/0.4835, allocations: 1.6 MB / 0.5372 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0118/0.4953, allocations: 6.47 MB / 0.5435 GB, free: 11.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0387/0.5341, allocations: 30.67 MB / 0.5735 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/0.5389, allocations: 2.234 MB / 0.5757 GB, free: 10.15 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001685/0.5407, allocations: 1.133 MB / 0.5768 GB, free: 9.008 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004132/0.5411, allocations: 320.3 kB / 0.5771 GB, free: 8.645 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.823e-05/0.5412, allocations: 48.16 kB / 0.5771 GB, free: 8.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 5.22e-06/0.5412, allocations: 0 / 0.5771 GB, free: 8.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03996/0.5812, allocations: 11.88 MB / 0.5887 GB, free: 12.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.5813, allocations: 192.6 kB / 0.5889 GB, free: 12.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007279/0.5886, allocations: 3.664 MB / 0.5925 GB, free: 8.719 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003439/0.589, allocations: 45.7 kB / 0.5925 GB, free: 8.668 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002449/0.5915, allocations: 2.58 MB / 0.595 GB, free: 6.094 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009541/0.5924, allocations: 0.5416 MB / 0.5956 GB, free: 5.559 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002665/0.5951, allocations: 1.085 MB / 0.5966 GB, free: 4.465 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.5952, allocations: 301.1 kB / 0.5969 GB, free: 4.168 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00302/0.5983, allocations: 1.744 MB / 0.5986 GB, free: 2.418 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005236/0.6035, allocations: 5.105 MB / 0.6036 GB, free: 11.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008171/0.6117, allocations: 7.396 MB / 0.6108 GB, free: 3.113 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/0.6119, allocations: 40 kB / 0.6109 GB, free: 3.074 MB / 462.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01363/0.6255, allocations: 7.083 MB / 0.6178 GB, free: 12.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.6257, allocations: 58.19 kB / 0.6178 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000177/0.6258, allocations: 124.9 kB / 0.618 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/0.6276, allocations: 0.6497 MB / 0.6186 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003987/0.6316, allocations: 1.216 MB / 0.6198 GB, free: 10.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005065/0.6366, allocations: 4.07 MB / 0.6237 GB, free: 6.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/0.641, allocations: 295.3 kB / 0.624 GB, free: 6.211 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009267/0.6419, allocations: 334.8 kB / 0.6244 GB, free: 5.887 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.003835/0.6458, allocations: 1.725 MB / 0.626 GB, free: 4.152 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007123/0.6465, allocations: 300.1 kB / 0.6263 GB, free: 3.855 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004334/0.6508, allocations: 2.088 MB / 0.6284 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/0.6509, allocations: 19.94 kB / 0.6284 GB, free: 1.734 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.6509, allocations: 7.781 kB / 0.6284 GB, free: 1.73 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.6509, allocations: 7.984 kB / 0.6284 GB, free: 1.723 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01208/0.663, allocations: 5.723 MB / 0.634 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/0.663, allocations: 0 / 0.634 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009975/0.6641, allocations: 195.7 kB / 0.6342 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001416/0.6655, allocations: 492.2 kB / 0.6346 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001691/0.6657, allocations: 27.98 kB / 0.6347 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003878/0.6696, allocations: 3.439 MB / 0.638 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.6696, allocations: 0 / 0.638 GB, free: 7.652 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006172/0.6758, allocations: 4.17 MB / 0.6421 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009921/0.6768, allocations: 361 kB / 0.6424 GB, free: 3.078 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000487/0.6773, allocations: 23.98 kB / 0.6425 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6786, allocations: 71.97 kB / 0.6425 GB, free: 2.984 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.6788, allocations: 66.75 kB / 0.6426 GB, free: 2.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.6789, allocations: 43.92 kB / 0.6426 GB, free: 2.879 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00395/0.6828, allocations: 2.284 MB / 0.6449 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.405e-06/0.6829, allocations: 3.938 kB / 0.6449 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004924/0.6878, allocations: 0.8086 MB / 0.6457 GB, free: 15.79 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.0004664/0.6883, allocations: 158.1 kB / 0.6458 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00762/0.6959, allocations: 4.515 MB / 0.6502 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.696, allocations: 0 / 0.6502 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001636/0.6976, allocations: 1.131 MB / 0.6513 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.7001, allocations: 355.3 kB / 0.6517 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.7147, allocations: 9.068 MB / 0.6605 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002783/0.7175, allocations: 2.668 MB / 0.6631 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000971/0.7185, allocations: 251.3 kB / 0.6634 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of SimCode: time 1.203e-06/0.7185, allocations: 0 / 0.6634 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of Templates: time 0.3048/1.023, allocations: 61.47 MB / 0.7234 GB, free: 202.7 MB / 0.545 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/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