Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 73.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 159.2 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 177.2 MB / 204.9 MB, free: 8.988 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.209/0.209, allocations: 34.27 MB / 295.5 MB, free: 14.55 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 75.88 kB / 443.2 MB, free: 6.652 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3614, allocations: 66 MB / 0.4972 GB, free: 29.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.007797/0.3692, allocations: 7.924 MB / 0.505 GB, free: 24.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006204/0.3754, allocations: 3.366 MB / 0.5083 GB, free: 22.61 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001149/0.3766, allocations: 53.81 kB / 0.5083 GB, free: 22.59 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002695/0.3793, allocations: 1.634 MB / 0.5099 GB, free: 21.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003525/0.3828, allocations: 1.578 MB / 0.5114 GB, free: 21.21 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.3842, allocations: 0.5647 MB / 0.512 GB, free: 20.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005413/0.3896, allocations: 3.571 MB / 0.5155 GB, free: 19.64 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002585/0.3922, allocations: 1.82 MB / 0.5173 GB, free: 18.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001798/0.394, allocations: 1.117 MB / 0.5183 GB, free: 18.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002408/0.3964, allocations: 1.593 MB / 0.5199 GB, free: 17.77 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005358/0.3969, allocations: 218.9 kB / 0.5201 GB, free: 17.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00228/0.3992, allocations: 1 MB / 0.5211 GB, free: 17.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001728/0.4009, allocations: 1.437 MB / 0.5225 GB, free: 17.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001638/0.4026, allocations: 1.179 MB / 0.5236 GB, free: 16.33 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008155/0.4107, allocations: 5.427 MB / 0.5289 GB, free: 14.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4107, allocations: 4 kB / 0.5289 GB, free: 14.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4107, allocations: 1.312 kB / 0.5289 GB, free: 14.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001731/0.4109, allocations: 0 / 0.5289 GB, free: 14.32 MB / 446.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.009116/0.42, allocations: 3.679 MB / 0.5325 GB, free: 11.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.4201, allocations: 9.625 kB / 0.5326 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01724/0.4373, allocations: 2.404 MB / 0.5349 GB, free: 10.74 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006372/0.4437, allocations: 2.123 MB / 0.537 GB, free: 9.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/0.4438, allocations: 168.8 kB / 0.5371 GB, free: 9.344 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008948/0.4447, allocations: 225.2 kB / 0.5373 GB, free: 9.258 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/0.4576, allocations: 7.452 MB / 0.5446 GB, free: 4.359 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.4577, allocations: 35.7 kB / 0.5447 GB, free: 4.324 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003385/0.458, allocations: 107.9 kB / 0.5448 GB, free: 4.219 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002336/0.4604, allocations: 1.546 MB / 0.5463 GB, free: 2.668 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/0.4727, allocations: 6.299 MB / 0.5524 GB, free: 12.36 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04044/0.5131, allocations: 28.48 MB / 0.5802 GB, free: 14.97 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004541/0.5177, allocations: 1.751 MB / 0.5819 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/0.5192, allocations: 1.043 MB / 0.583 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002882/0.5195, allocations: 88.3 kB / 0.5831 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.5195, allocations: 47.06 kB / 0.5831 GB, free: 11.99 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.276e-06/0.5195, allocations: 4 kB / 0.5831 GB, free: 11.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03937/0.5589, allocations: 12.07 MB / 0.5949 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/0.5591, allocations: 196.5 kB / 0.5951 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005402/0.5645, allocations: 3.367 MB / 0.5984 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.5647, allocations: 41.7 kB / 0.5984 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002399/0.5671, allocations: 2.68 MB / 0.601 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007798/0.5679, allocations: 0.5467 MB / 0.6016 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001723/0.5697, allocations: 1.095 MB / 0.6026 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.5698, allocations: 305.1 kB / 0.6029 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003056/0.5729, allocations: 1.74 MB / 0.6046 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006476/0.5793, allocations: 5.138 MB / 0.6096 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01109/0.5904, allocations: 7.355 MB / 0.6168 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/0.5906, allocations: 32 kB / 0.6168 GB, free: 5.891 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01642/0.607, allocations: 7.03 MB / 0.6237 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.065e-05/0.6071, allocations: 56 kB / 0.6238 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000158/0.6073, allocations: 128 kB / 0.6239 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.6091, allocations: 0.6408 MB / 0.6245 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004513/0.6136, allocations: 1.213 MB / 0.6257 GB, free: 12.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005988/0.6196, allocations: 3.906 MB / 0.6295 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00455/0.6242, allocations: 299.6 kB / 0.6298 GB, free: 8.508 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000835/0.625, allocations: 327.9 kB / 0.6301 GB, free: 8.191 MB / 0.5294 GB 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.003532/0.6285, allocations: 1.706 MB / 0.6318 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006706/0.6292, allocations: 282.1 kB / 0.632 GB, free: 6.195 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004661/0.6339, allocations: 2.049 MB / 0.634 GB, free: 4.129 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/0.6339, allocations: 20 kB / 0.6341 GB, free: 4.109 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.6339, allocations: 0 / 0.6341 GB, free: 4.109 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.6339, allocations: 7.984 kB / 0.6341 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.6459, allocations: 4.812 MB / 0.6388 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.6459, allocations: 0 / 0.6388 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.6471, allocations: 199.7 kB / 0.639 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.6486, allocations: 484.2 kB / 0.6394 GB, free: 14.56 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.6487, allocations: 24 kB / 0.6394 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004812/0.6535, allocations: 3.295 MB / 0.6427 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6535, allocations: 0 / 0.6427 GB, free: 11.14 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007574/0.6611, allocations: 4.152 MB / 0.6467 GB, free: 6.953 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009725/0.6621, allocations: 250 kB / 0.647 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003246/0.6624, allocations: 20 kB / 0.647 GB, free: 6.688 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.6636, allocations: 80.02 kB / 0.6471 GB, free: 6.609 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002133/0.6638, allocations: 76.41 kB / 0.6471 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.6639, allocations: 35.98 kB / 0.6472 GB, free: 6.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003634/0.6675, allocations: 1.933 MB / 0.649 GB, free: 4.566 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6675, allocations: 0 / 0.649 GB, free: 4.566 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005159/0.6727, allocations: 0.7773 MB / 0.6498 GB, free: 3.789 MB / 0.545 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.0004344/0.6731, allocations: 147 kB / 0.6499 GB, free: 3.633 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007716/0.6809, allocations: 3.98 MB / 0.6538 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6809, allocations: 0 / 0.6538 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001797/0.6827, allocations: 1.052 MB / 0.6549 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.6848, allocations: 313.9 kB / 0.6552 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.7002, allocations: 7.191 MB / 0.6622 GB, free: 7.055 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003235/0.7034, allocations: 2.084 MB / 0.6642 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004443/0.7079, allocations: 1.653 MB / 0.6658 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006344/0.7085, allocations: 192.5 kB / 0.666 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of SimCode: time 1.322e-06/0.7085, allocations: 0 / 0.666 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of Templates: time 0.05723/0.7657, allocations: 22.55 MB / 0.688 GB, free: 12.88 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.719249500078149]