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.001205/0.001205, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001301/0.001301, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.02 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.2232/0.2232, allocations: 44.19 MB / 336.7 MB, free: 2.629 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 63.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4498/0.4511, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0104/0.4616, allocations: 9.044 MB / 0.5277 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009594/0.4712, allocations: 3.548 MB / 0.5312 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002583/0.4739, allocations: 48.75 kB / 0.5312 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003878/0.4778, allocations: 1.671 MB / 0.5329 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006173/0.4841, allocations: 1.594 MB / 0.5344 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.4857, allocations: 0.5601 MB / 0.535 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006155/0.4919, allocations: 3.585 MB / 0.5385 GB, free: 6.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003192/0.4951, allocations: 2.205 MB / 0.5406 GB, free: 4.762 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002405/0.4976, allocations: 1.118 MB / 0.5417 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002871/0.5004, allocations: 1.564 MB / 0.5432 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000693/0.5012, allocations: 224 kB / 0.5435 GB, free: 2.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.5037, allocations: 1.12 MB / 0.5445 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002165/0.5059, allocations: 1.453 MB / 0.546 GB, free: 228 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002906/0.5088, allocations: 1.666 MB / 0.5476 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00724/0.5161, allocations: 5.537 MB / 0.553 GB, free: 8.992 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.5161, allocations: 0 / 0.553 GB, free: 8.992 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5161, allocations: 0 / 0.553 GB, free: 8.992 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001588/0.5163, allocations: 4 kB / 0.553 GB, free: 8.988 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.008358/0.5247, allocations: 3.731 MB / 0.5566 GB, free: 5.188 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.5247, allocations: 15.97 kB / 0.5567 GB, free: 5.172 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01476/0.5395, allocations: 2.36 MB / 0.559 GB, free: 2.805 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007538/0.5471, allocations: 2.229 MB / 0.5611 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.5473, allocations: 164.5 kB / 0.5613 GB, free: 368 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008085/0.5481, allocations: 231.9 kB / 0.5615 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/0.5617, allocations: 7.587 MB / 0.5689 GB, free: 7.922 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.5619, allocations: 35.66 kB / 0.569 GB, free: 7.887 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003325/0.5622, allocations: 107.9 kB / 0.5691 GB, free: 7.781 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002513/0.5647, allocations: 1.601 MB / 0.5706 GB, free: 6.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/0.5768, allocations: 6.476 MB / 0.577 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03424/0.6111, allocations: 30.54 MB / 0.6068 GB, free: 220 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004409/0.6155, allocations: 2.232 MB / 0.609 GB, free: 13.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.617, allocations: 1.133 MB / 0.6101 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003772/0.6174, allocations: 319.5 kB / 0.6104 GB, free: 12.32 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/0.6174, allocations: 54.88 kB / 0.6104 GB, free: 12.26 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 2.935e-06/0.6174, allocations: 0 / 0.6104 GB, free: 12.26 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03475/0.6522, allocations: 11.88 MB / 0.622 GB, free: 232 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.6523, allocations: 196.6 kB / 0.6222 GB, free: 15.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004548/0.6569, allocations: 3.66 MB / 0.6258 GB, free: 12.33 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001992/0.6571, allocations: 49.69 kB / 0.6258 GB, free: 12.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001652/0.6588, allocations: 2.592 MB / 0.6284 GB, free: 9.648 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005006/0.6593, allocations: 0.5248 MB / 0.6289 GB, free: 9.117 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/0.6605, allocations: 1.087 MB / 0.6299 GB, free: 8.02 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.6606, allocations: 301.1 kB / 0.6302 GB, free: 7.723 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002355/0.6629, allocations: 1.74 MB / 0.6319 GB, free: 5.977 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004468/0.6674, allocations: 5.111 MB / 0.6369 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008579/0.676, allocations: 7.403 MB / 0.6441 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/0.6762, allocations: 36 kB / 0.6442 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01326/0.6895, allocations: 7.072 MB / 0.6511 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.096e-05/0.6896, allocations: 56 kB / 0.6511 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.6897, allocations: 120 kB / 0.6513 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001518/0.6912, allocations: 0.6447 MB / 0.6519 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003692/0.6949, allocations: 1.224 MB / 0.6531 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004953/0.6999, allocations: 4.059 MB / 0.657 GB, free: 8.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/0.7046, allocations: 299.5 kB / 0.6573 GB, free: 8.441 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008843/0.7055, allocations: 328 kB / 0.6576 GB, free: 8.121 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.003245/0.7087, allocations: 1.721 MB / 0.6593 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006768/0.7094, allocations: 300.1 kB / 0.6596 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/0.7134, allocations: 2.104 MB / 0.6617 GB, free: 3.973 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.7134, allocations: 15.94 kB / 0.6617 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.7134, allocations: 4 kB / 0.6617 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.543e-05/0.7134, allocations: 7.969 kB / 0.6617 GB, free: 3.945 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009892/0.7233, allocations: 5.671 MB / 0.6672 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.7234, allocations: 0 / 0.6672 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009645/0.7244, allocations: 199.7 kB / 0.6674 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.7257, allocations: 488.4 kB / 0.6679 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-05/0.7258, allocations: 31.92 kB / 0.6679 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004146/0.73, allocations: 3.433 MB / 0.6713 GB, free: 9.902 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.73, allocations: 8.094 kB / 0.6713 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007195/0.7372, allocations: 4.175 MB / 0.6754 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/0.7384, allocations: 361 kB / 0.6757 GB, free: 5.309 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003306/0.7388, allocations: 24 kB / 0.6757 GB, free: 5.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.7399, allocations: 67.91 kB / 0.6758 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.7402, allocations: 80.5 kB / 0.6759 GB, free: 5.141 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.293e-05/0.7403, allocations: 39.98 kB / 0.6759 GB, free: 5.102 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004045/0.7443, allocations: 2.281 MB / 0.6781 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7443, allocations: 0 / 0.6781 GB, free: 2.832 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004428/0.7487, allocations: 0.8164 MB / 0.6789 GB, free: 2.016 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.0004064/0.7492, allocations: 147 kB / 0.6791 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007287/0.7565, allocations: 4.152 MB / 0.6831 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.7565, allocations: 0 / 0.6831 GB, free: 13.73 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001688/0.7582, allocations: 1.138 MB / 0.6842 GB, free: 12.58 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/0.7604, allocations: 370.6 kB / 0.6846 GB, free: 12.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.774, allocations: 7.182 MB / 0.6916 GB, free: 4.992 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00299/0.777, allocations: 2.683 MB / 0.6942 GB, free: 2.285 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004156/0.7812, allocations: 1.702 MB / 0.6959 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006025/0.7818, allocations: 207.4 kB / 0.6961 GB, free: 384 kB / 0.545 GB Notification: Performance of SimCode: time 9.62e-07/0.7818, allocations: 0 / 0.6961 GB, free: 384 kB / 0.545 GB Notification: Performance of Templates: time 0.05692/0.8388, allocations: 25.92 MB / 0.7214 GB, free: 6.535 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