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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.6 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 105.6 kB / 291.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3809/0.3809, allocations: 44.13 MB / 386.1 MB, free: 37.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 51.92 kB / 457.7 MB, free: 2.328 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.34, allocations: 60.8 MB / 0.5064 GB, free: 38.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02803/0.3681, allocations: 40.74 MB / 0.5462 GB, free: 9.039 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01815/0.3863, allocations: 8.852 MB / 0.5548 GB, free: 3.168 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008812/0.3952, allocations: 168.7 kB / 0.555 GB, free: 3.145 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003797/0.399, allocations: 1.919 MB / 0.5568 GB, free: 2.262 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004107/0.4032, allocations: 1.529 MB / 0.5583 GB, free: 1.613 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.4045, allocations: 0.5254 MB / 0.5589 GB, free: 1.406 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008375/0.4128, allocations: 5.369 MB / 0.5641 GB, free: 15.84 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004903/0.4178, allocations: 2.454 MB / 0.5665 GB, free: 14.92 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002977/0.4208, allocations: 1.067 MB / 0.5675 GB, free: 14.5 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003999/0.4248, allocations: 1.806 MB / 0.5693 GB, free: 13.9 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001114/0.4259, allocations: 175.4 kB / 0.5695 GB, free: 13.9 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003611/0.4296, allocations: 1.13 MB / 0.5706 GB, free: 13.64 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002641/0.4322, allocations: 1.543 MB / 0.5721 GB, free: 12.7 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002221/0.4345, allocations: 1.739 MB / 0.5738 GB, free: 10.95 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006464/0.4409, allocations: 5.689 MB / 0.5793 GB, free: 5.246 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.441, allocations: 0 / 0.5793 GB, free: 5.246 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.441, allocations: 3.984 kB / 0.5793 GB, free: 5.242 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001181/0.4411, allocations: 0 / 0.5793 GB, free: 5.242 MB / 394.7 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.008503/0.4496, allocations: 3.963 MB / 0.5832 GB, free: 1.211 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4497, allocations: 11.97 kB / 0.5832 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01618/0.4659, allocations: 2.406 MB / 0.5856 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006135/0.4721, allocations: 2.284 MB / 0.5878 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/0.4722, allocations: 177 kB / 0.588 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007326/0.473, allocations: 251.8 kB / 0.5882 GB, free: 12.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.4853, allocations: 8.149 MB / 0.5962 GB, free: 3.238 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.4854, allocations: 47.58 kB / 0.5962 GB, free: 3.191 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003225/0.4858, allocations: 119.9 kB / 0.5963 GB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002721/0.4885, allocations: 1.699 MB / 0.598 GB, free: 1.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/0.5, allocations: 6.896 MB / 0.6047 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03726/0.5373, allocations: 32.49 MB / 0.6364 GB, free: 8.969 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004527/0.5419, allocations: 2.476 MB / 0.6389 GB, free: 6.348 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001401/0.5434, allocations: 1.12 MB / 0.64 GB, free: 5.215 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003394/0.5437, allocations: 323.2 kB / 0.6403 GB, free: 4.844 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.311e-05/0.5438, allocations: 46.5 kB / 0.6403 GB, free: 4.789 MB / 458.7 MB Notification: Performance of pre-optimization done (n=104): time 4.067e-06/0.5438, allocations: 0 / 0.6403 GB, free: 4.789 MB / 458.7 MB Notification: Performance of matching and sorting (n=118): time 0.02283/0.5666, allocations: 9.261 MB / 0.6494 GB, free: 11.42 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.63e-05/0.5667, allocations: 192.5 kB / 0.6495 GB, free: 11.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004898/0.5716, allocations: 3.816 MB / 0.6533 GB, free: 7.379 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001884/0.5719, allocations: 37.7 kB / 0.6533 GB, free: 7.336 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001905/0.5738, allocations: 2.781 MB / 0.656 GB, free: 4.516 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005701/0.5743, allocations: 0.498 MB / 0.6565 GB, free: 4.012 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001347/0.5757, allocations: 1.138 MB / 0.6576 GB, free: 2.863 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.536e-05/0.5758, allocations: 305.1 kB / 0.6579 GB, free: 2.562 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002336/0.5782, allocations: 1.705 MB / 0.6596 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00484/0.583, allocations: 5.33 MB / 0.6648 GB, free: 9.695 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009339/0.5924, allocations: 7.599 MB / 0.6722 GB, free: 300 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/0.5926, allocations: 36 kB / 0.6722 GB, free: 264 kB / 490.7 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.013/0.6056, allocations: 7.191 MB / 0.6793 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.683e-05/0.6057, allocations: 62.09 kB / 0.6793 GB, free: 8.992 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001079/0.6058, allocations: 132 kB / 0.6794 GB, free: 8.863 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/0.6074, allocations: 0.6526 MB / 0.6801 GB, free: 8.207 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003421/0.6108, allocations: 1.267 MB / 0.6813 GB, free: 6.938 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004671/0.6155, allocations: 3.805 MB / 0.685 GB, free: 3.004 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/0.6189, allocations: 303.5 kB / 0.6853 GB, free: 2.707 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004624/0.6194, allocations: 348 kB / 0.6857 GB, free: 2.367 MB / 0.4948 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.00245/0.6219, allocations: 1.834 MB / 0.6874 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004461/0.6223, allocations: 316 kB / 0.6877 GB, free: 212 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.229/0.8514, allocations: 1.84 MB / 0.6895 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.623e-05/0.8514, allocations: 13.81 kB / 0.6896 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.8514, allocations: 10.66 kB / 0.6896 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.8515, allocations: 4.594 kB / 0.6896 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008815/0.8603, allocations: 5.349 MB / 0.6948 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.8603, allocations: 0 / 0.6948 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.8611, allocations: 165.3 kB / 0.695 GB, free: 140.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/0.8624, allocations: 484.2 kB / 0.6954 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.376e-05/0.8625, allocations: 19.66 kB / 0.6954 GB, free: 140.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002983/0.8654, allocations: 3.224 MB / 0.6986 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.8655, allocations: 3.938 kB / 0.6986 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02578/0.8912, allocations: 18.03 MB / 0.7162 GB, free: 130.6 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006896/0.892, allocations: 360.7 kB / 0.7165 GB, free: 130.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003526/0.8924, allocations: 18.25 kB / 0.7166 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.8934, allocations: 56.92 kB / 0.7166 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/0.8937, allocations: 59.45 kB / 0.7167 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.8938, allocations: 36.08 kB / 0.7167 GB, free: 130.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004678/0.8985, allocations: 2.366 MB / 0.719 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8985, allocations: 1.219 kB / 0.719 GB, free: 129.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005366/0.9038, allocations: 1.075 MB / 0.7201 GB, free: 129.4 MB / 0.4948 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.0004158/0.9043, allocations: 148.5 kB / 0.7202 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007258/0.9116, allocations: 4.048 MB / 0.7242 GB, free: 127.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.9116, allocations: 4.328 kB / 0.7242 GB, free: 127.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001468/0.9131, allocations: 0.9944 MB / 0.7251 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.9154, allocations: 358.5 kB / 0.7255 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/0.9287, allocations: 9.967 MB / 0.7352 GB, free: 122 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003103/0.9318, allocations: 2.836 MB / 0.738 GB, free: 120.8 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003816/0.9357, allocations: 1.732 MB / 0.7397 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004907/0.9362, allocations: 216.4 kB / 0.7399 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of SimCode: time 6.21e-07/0.9362, allocations: 0 / 0.7399 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.04593/0.9821, allocations: 32.01 MB / 0.7711 GB, free: 93.09 MB / 0.4948 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches