Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 112.7 kB / 18.45 MB, free: 4.645 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.001785/0.001786, allocations: 181.2 kB / 19.38 MB, free: 3.727 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.31/1.31, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2315/0.2315, allocations: 44.18 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 59.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.326, allocations: 60.82 MB / 0.5196 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009558/0.3356, allocations: 9.247 MB / 0.5286 GB, free: 13.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007562/0.3432, allocations: 3.591 MB / 0.5321 GB, free: 10.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001735/0.3449, allocations: 51.44 kB / 0.5321 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003917/0.3489, allocations: 1.919 MB / 0.534 GB, free: 9.207 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00469/0.3536, allocations: 1.648 MB / 0.5356 GB, free: 8.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001575/0.3552, allocations: 0.5736 MB / 0.5362 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00539/0.3606, allocations: 3.712 MB / 0.5398 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00368/0.3643, allocations: 2.459 MB / 0.5422 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002615/0.367, allocations: 1.205 MB / 0.5434 GB, free: 3.484 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002727/0.3697, allocations: 1.673 MB / 0.545 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006562/0.3704, allocations: 248 kB / 0.5453 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002225/0.3726, allocations: 1.147 MB / 0.5464 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00151/0.3741, allocations: 1.59 MB / 0.5479 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002152/0.3763, allocations: 1.786 MB / 0.5497 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005727/0.382, allocations: 5.952 MB / 0.5555 GB, free: 7.141 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3821, allocations: 0 / 0.5555 GB, free: 7.141 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3821, allocations: 0 / 0.5555 GB, free: 7.141 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001119/0.3822, allocations: 4 kB / 0.5555 GB, free: 7.137 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007053/0.3893, allocations: 3.967 MB / 0.5594 GB, free: 3.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3893, allocations: 12.03 kB / 0.5594 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01567/0.405, allocations: 2.398 MB / 0.5617 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005054/0.4101, allocations: 2.319 MB / 0.564 GB, free: 14.31 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.4102, allocations: 185 kB / 0.5642 GB, free: 14.13 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007171/0.411, allocations: 239.9 kB / 0.5644 GB, free: 13.89 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.4228, allocations: 8.157 MB / 0.5724 GB, free: 5.098 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001143/0.423, allocations: 39.64 kB / 0.5724 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003685/0.4234, allocations: 123.8 kB / 0.5725 GB, free: 4.938 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002807/0.4262, allocations: 1.703 MB / 0.5742 GB, free: 3.234 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01192/0.4381, allocations: 6.896 MB / 0.5809 GB, free: 12.33 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03677/0.4749, allocations: 32.35 MB / 0.6125 GB, free: 10.97 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004636/0.4796, allocations: 2.469 MB / 0.6149 GB, free: 8.355 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.4811, allocations: 1.124 MB / 0.616 GB, free: 7.219 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003691/0.4815, allocations: 327.3 kB / 0.6163 GB, free: 6.844 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.4815, allocations: 46.56 kB / 0.6164 GB, free: 6.789 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 5.37e-06/0.4815, allocations: 7.938 kB / 0.6164 GB, free: 6.781 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02443/0.506, allocations: 9.25 MB / 0.6254 GB, free: 13.41 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/0.5061, allocations: 200.4 kB / 0.6256 GB, free: 13.17 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005895/0.512, allocations: 3.804 MB / 0.6293 GB, free: 9.375 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002194/0.5123, allocations: 41.7 kB / 0.6293 GB, free: 9.328 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002101/0.5144, allocations: 2.789 MB / 0.6321 GB, free: 6.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000679/0.5151, allocations: 498 kB / 0.6325 GB, free: 6.008 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001858/0.517, allocations: 1.146 MB / 0.6337 GB, free: 4.852 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.5171, allocations: 301.1 kB / 0.634 GB, free: 4.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002631/0.5197, allocations: 1.705 MB / 0.6356 GB, free: 2.844 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005242/0.525, allocations: 5.33 MB / 0.6408 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008025/0.533, allocations: 7.593 MB / 0.6482 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/0.5332, allocations: 36 kB / 0.6483 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01311/0.5463, allocations: 7.198 MB / 0.6553 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.5465, allocations: 60 kB / 0.6554 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001898/0.5467, allocations: 132 kB / 0.6555 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001761/0.5484, allocations: 0.6603 MB / 0.6561 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003879/0.5523, allocations: 1.275 MB / 0.6574 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005016/0.5574, allocations: 4.074 MB / 0.6614 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003913/0.5613, allocations: 295.4 kB / 0.6616 GB, free: 4.414 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008583/0.5622, allocations: 355.9 kB / 0.662 GB, free: 4.07 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (691): * Single equations (assignments): 687 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003392/0.5656, allocations: 1.834 MB / 0.6638 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006965/0.5663, allocations: 308 kB / 0.6641 GB, free: 1.918 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003808/0.5702, allocations: 1.845 MB / 0.6659 GB, free: 60 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-05/0.5702, allocations: 12 kB / 0.6659 GB, free: 48 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.5702, allocations: 8 kB / 0.6659 GB, free: 40 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.471e-05/0.5703, allocations: 4.359 kB / 0.6659 GB, free: 36 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.5819, allocations: 5.336 MB / 0.6711 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.582, allocations: 4 kB / 0.6711 GB, free: 10.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008358/0.5828, allocations: 155.8 kB / 0.6712 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.5842, allocations: 488.2 kB / 0.6717 GB, free: 9.996 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5843, allocations: 27.92 kB / 0.6717 GB, free: 9.969 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004002/0.5884, allocations: 3.43 MB / 0.6751 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.5884, allocations: 0 / 0.6751 GB, free: 6.395 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005729/0.5941, allocations: 3.755 MB / 0.6788 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009516/0.5951, allocations: 361 kB / 0.6791 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006943/0.5958, allocations: 20 kB / 0.6791 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.5972, allocations: 63.86 kB / 0.6792 GB, free: 2.164 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.5975, allocations: 64.42 kB / 0.6792 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.5976, allocations: 36.05 kB / 0.6793 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004237/0.6018, allocations: 2.367 MB / 0.6816 GB, free: 15.71 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.41e-07/0.6019, allocations: 0 / 0.6816 GB, free: 15.71 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004772/0.6067, allocations: 0.8203 MB / 0.6824 GB, free: 14.89 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.0005004/0.6072, allocations: 154.8 kB / 0.6825 GB, free: 14.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006813/0.614, allocations: 4.063 MB / 0.6865 GB, free: 10.69 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.614, allocations: 1.188 kB / 0.6865 GB, free: 10.69 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001531/0.6156, allocations: 0.9975 MB / 0.6875 GB, free: 9.672 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002809/0.6184, allocations: 380.3 kB / 0.6878 GB, free: 9.297 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.633, allocations: 7.722 MB / 0.6954 GB, free: 1.535 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004903/0.638, allocations: 2.794 MB / 0.6981 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.6391, allocations: 255.4 kB / 0.6984 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/0.6391, allocations: 0 / 0.6984 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of Templates: time 0.3395/0.9786, allocations: 64.02 MB / 0.7609 GB, free: 163.3 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches