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.001453/0.001453, allocations: 113.4 kB / 17.78 MB, free: 5.27 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.001398/0.001398, allocations: 180.1 kB / 18.71 MB, free: 4.348 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2163/0.2163, allocations: 44.17 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 67.89 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4249/0.4263, allocations: 60.82 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01095/0.4373, allocations: 9.032 MB / 0.5277 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007878/0.4452, allocations: 3.55 MB / 0.5312 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002087/0.4474, allocations: 48.31 kB / 0.5312 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003359/0.4507, allocations: 1.672 MB / 0.5329 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004473/0.4553, allocations: 1.598 MB / 0.5344 GB, free: 8.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.4567, allocations: 0.5522 MB / 0.535 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005621/0.4624, allocations: 3.588 MB / 0.5385 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003389/0.4658, allocations: 2.217 MB / 0.5406 GB, free: 4.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002143/0.4679, allocations: 1.119 MB / 0.5417 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002364/0.4703, allocations: 1.561 MB / 0.5432 GB, free: 3.062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006529/0.471, allocations: 224 kB / 0.5435 GB, free: 2.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002222/0.4732, allocations: 1.12 MB / 0.5446 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.4747, allocations: 1.457 MB / 0.546 GB, free: 268 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002076/0.4768, allocations: 1.662 MB / 0.5476 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005916/0.4828, allocations: 5.541 MB / 0.553 GB, free: 9.031 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4828, allocations: 0 / 0.553 GB, free: 9.031 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4828, allocations: 0 / 0.553 GB, free: 9.031 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.094e-05/0.4829, allocations: 0 / 0.553 GB, free: 9.031 MB / 414.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.006614/0.4895, allocations: 3.732 MB / 0.5567 GB, free: 5.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.4896, allocations: 8.031 kB / 0.5567 GB, free: 5.223 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/0.5054, allocations: 2.364 MB / 0.559 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00623/0.5116, allocations: 2.229 MB / 0.5611 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.5118, allocations: 156.5 kB / 0.5613 GB, free: 424 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006674/0.5125, allocations: 227.9 kB / 0.5615 GB, free: 196 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.5243, allocations: 7.591 MB / 0.5689 GB, free: 7.977 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.766e-05/0.5244, allocations: 35.66 kB / 0.569 GB, free: 7.941 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000284/0.5247, allocations: 111.9 kB / 0.5691 GB, free: 7.832 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002623/0.5273, allocations: 1.601 MB / 0.5706 GB, free: 6.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.5392, allocations: 6.472 MB / 0.5769 GB, free: 15.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03969/0.5789, allocations: 30.54 MB / 0.6068 GB, free: 276 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00447/0.5835, allocations: 2.233 MB / 0.609 GB, free: 13.89 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001497/0.585, allocations: 1.133 MB / 0.6101 GB, free: 12.74 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004398/0.5855, allocations: 323.5 kB / 0.6104 GB, free: 12.37 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.5855, allocations: 50.88 kB / 0.6104 GB, free: 12.31 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 2.976e-06/0.5855, allocations: 0 / 0.6104 GB, free: 12.31 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03715/0.6227, allocations: 11.89 MB / 0.622 GB, free: 276 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.6228, allocations: 196.5 kB / 0.6222 GB, free: 36 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006388/0.6292, allocations: 3.656 MB / 0.6258 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002343/0.6295, allocations: 45.7 kB / 0.6258 GB, free: 12.33 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001998/0.6315, allocations: 2.592 MB / 0.6284 GB, free: 9.699 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000682/0.6322, allocations: 0.5209 MB / 0.6289 GB, free: 9.172 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001984/0.6342, allocations: 1.087 MB / 0.6299 GB, free: 8.074 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.6343, allocations: 309.1 kB / 0.6302 GB, free: 7.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002859/0.6372, allocations: 1.74 MB / 0.6319 GB, free: 6.023 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005192/0.6424, allocations: 5.103 MB / 0.6369 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008476/0.6509, allocations: 7.404 MB / 0.6441 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/0.651, allocations: 32 kB / 0.6442 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01333/0.6644, allocations: 7.078 MB / 0.6511 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.6645, allocations: 59.98 kB / 0.6511 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001796/0.6647, allocations: 116 kB / 0.6513 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001716/0.6664, allocations: 0.6452 MB / 0.6519 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003843/0.6703, allocations: 1.224 MB / 0.6531 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004863/0.6752, allocations: 4.059 MB / 0.657 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003855/0.679, allocations: 299.8 kB / 0.6573 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007369/0.6798, allocations: 332 kB / 0.6576 GB, free: 8.168 MB / 0.5137 GB 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.003098/0.6829, allocations: 1.729 MB / 0.6593 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007424/0.6837, allocations: 304 kB / 0.6596 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/0.688, allocations: 2.096 MB / 0.6617 GB, free: 4.016 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.452e-05/0.6881, allocations: 19.94 kB / 0.6617 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.6881, allocations: 4 kB / 0.6617 GB, free: 3.992 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.6881, allocations: 3.984 kB / 0.6617 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/0.702, allocations: 5.675 MB / 0.6672 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/0.7021, allocations: 4 kB / 0.6672 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001026/0.7031, allocations: 199.8 kB / 0.6674 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001463/0.7046, allocations: 480.2 kB / 0.6679 GB, free: 13.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/0.7048, allocations: 24 kB / 0.6679 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005045/0.7098, allocations: 3.437 MB / 0.6713 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7099, allocations: 4.281 kB / 0.6713 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007277/0.7171, allocations: 4.183 MB / 0.6754 GB, free: 5.727 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.7184, allocations: 357 kB / 0.6757 GB, free: 5.355 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008288/0.7193, allocations: 27.94 kB / 0.6757 GB, free: 5.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.7209, allocations: 71.89 kB / 0.6758 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.7211, allocations: 68.5 kB / 0.6759 GB, free: 5.191 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.7212, allocations: 36 kB / 0.6759 GB, free: 5.156 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005043/0.7263, allocations: 2.292 MB / 0.6781 GB, free: 2.875 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/0.7263, allocations: 0 / 0.6781 GB, free: 2.875 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006414/0.7327, allocations: 0.8125 MB / 0.6789 GB, free: 2.062 MB / 0.5294 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.0006022/0.7333, allocations: 151 kB / 0.6791 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008067/0.7414, allocations: 4.145 MB / 0.6831 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.7414, allocations: 0 / 0.6831 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.7431, allocations: 1.139 MB / 0.6842 GB, free: 12.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/0.7459, allocations: 369.1 kB / 0.6846 GB, free: 12.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/0.7591, allocations: 7.186 MB / 0.6916 GB, free: 5.039 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003494/0.7626, allocations: 2.687 MB / 0.6942 GB, free: 2.328 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003831/0.7665, allocations: 1.698 MB / 0.6959 GB, free: 0.625 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007083/0.7672, allocations: 211.4 kB / 0.6961 GB, free: 428 kB / 0.545 GB Notification: Performance of SimCode: time 8.21e-07/0.7672, allocations: 0 / 0.6961 GB, free: 428 kB / 0.545 GB Notification: Performance of Templates: time 0.0521/0.8193, allocations: 25.93 MB / 0.7214 GB, free: 6.57 MB / 0.5762 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","/var/lib/jenkins/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