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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, 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.309/1.309, allocations: 222.9 MB / 241.6 MB, free: 10.98 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.001015/0.001015, allocations: 122.8 kB / 291.9 MB, free: 10.94 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.4121/0.4121, allocations: 44.13 MB / 386.1 MB, free: 37.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 59.84 kB / 457.7 MB, free: 2.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3734, allocations: 60.8 MB / 0.5064 GB, free: 38.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02609/0.3995, allocations: 33.52 MB / 0.5391 GB, free: 14.39 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01839/0.418, allocations: 7.654 MB / 0.5466 GB, free: 9.328 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007835/0.4258, allocations: 140.9 kB / 0.5467 GB, free: 9.305 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003581/0.4294, allocations: 1.655 MB / 0.5483 GB, free: 8.547 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.4337, allocations: 1.489 MB / 0.5498 GB, free: 7.914 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.4352, allocations: 0.511 MB / 0.5503 GB, free: 7.719 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007466/0.4427, allocations: 5.103 MB / 0.5553 GB, free: 6.23 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004935/0.4477, allocations: 2.198 MB / 0.5574 GB, free: 5.391 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002879/0.4506, allocations: 0.991 MB / 0.5584 GB, free: 5.004 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003609/0.4543, allocations: 1.677 MB / 0.56 GB, free: 4.461 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001236/0.4555, allocations: 155 kB / 0.5602 GB, free: 4.461 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003216/0.4588, allocations: 1.12 MB / 0.5613 GB, free: 4.188 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002811/0.4616, allocations: 1.408 MB / 0.5626 GB, free: 3.746 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004225/0.4659, allocations: 1.607 MB / 0.5642 GB, free: 2.637 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008631/0.4745, allocations: 5.293 MB / 0.5694 GB, free: 15.42 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.4745, allocations: 0 / 0.5694 GB, free: 15.42 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4746, allocations: 3.938 kB / 0.5694 GB, free: 15.42 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001489/0.4747, allocations: 3.938 kB / 0.5694 GB, free: 15.41 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.008891/0.4836, allocations: 3.732 MB / 0.573 GB, free: 11.61 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.4837, allocations: 12.03 kB / 0.5731 GB, free: 11.6 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01582/0.4995, allocations: 2.352 MB / 0.5753 GB, free: 9.242 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006579/0.5061, allocations: 2.198 MB / 0.5775 GB, free: 6.992 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.5063, allocations: 172.5 kB / 0.5777 GB, free: 6.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006581/0.507, allocations: 227.9 kB / 0.5779 GB, free: 6.598 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.5193, allocations: 7.591 MB / 0.5853 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-05/0.5194, allocations: 35.59 kB / 0.5853 GB, free: 14.35 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002952/0.5198, allocations: 119.8 kB / 0.5854 GB, free: 14.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002691/0.5224, allocations: 1.594 MB / 0.587 GB, free: 12.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/0.5339, allocations: 6.468 MB / 0.5933 GB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03775/0.5717, allocations: 30.66 MB / 0.6233 GB, free: 6.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005762/0.5775, allocations: 2.241 MB / 0.6254 GB, free: 4.184 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.5792, allocations: 1.141 MB / 0.6266 GB, free: 3.031 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004376/0.5797, allocations: 315.7 kB / 0.6269 GB, free: 2.668 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.016e-05/0.5798, allocations: 50.94 kB / 0.6269 GB, free: 2.605 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 4.058e-06/0.5798, allocations: 0 / 0.6269 GB, free: 2.605 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.03896/0.6187, allocations: 11.87 MB / 0.6385 GB, free: 6.586 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.6189, allocations: 196.5 kB / 0.6387 GB, free: 6.352 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005816/0.6247, allocations: 3.649 MB / 0.6422 GB, free: 2.703 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000259/0.625, allocations: 53.62 kB / 0.6423 GB, free: 2.645 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001855/0.6269, allocations: 2.6 MB / 0.6448 GB, free: 8 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006735/0.6276, allocations: 0.5172 MB / 0.6453 GB, free: 15.48 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001491/0.6291, allocations: 1.095 MB / 0.6464 GB, free: 14.38 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.6292, allocations: 301.1 kB / 0.6467 GB, free: 14.08 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002699/0.6319, allocations: 1.748 MB / 0.6484 GB, free: 12.32 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004745/0.6366, allocations: 5.114 MB / 0.6534 GB, free: 5.516 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008107/0.6448, allocations: 7.396 MB / 0.6606 GB, free: 12.45 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.27e-05/0.6449, allocations: 36 kB / 0.6607 GB, free: 12.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.0124/0.6573, allocations: 7.074 MB / 0.6676 GB, free: 5.332 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.127e-05/0.6574, allocations: 57.91 kB / 0.6676 GB, free: 5.277 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.6575, allocations: 124 kB / 0.6677 GB, free: 5.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001634/0.6592, allocations: 0.6408 MB / 0.6684 GB, free: 4.512 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/0.6631, allocations: 1.224 MB / 0.6696 GB, free: 3.285 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004738/0.6678, allocations: 3.771 MB / 0.6732 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004509/0.6723, allocations: 303.4 kB / 0.6735 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00142/0.6738, allocations: 332 kB / 0.6738 GB, free: 14.75 MB / 0.4948 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.004882/0.6787, allocations: 1.721 MB / 0.6755 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008241/0.6795, allocations: 308 kB / 0.6758 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004711/0.6843, allocations: 2.088 MB / 0.6779 GB, free: 10.61 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.612e-05/0.6843, allocations: 19.98 kB / 0.6779 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.6843, allocations: 0 / 0.6779 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.6844, allocations: 15.92 kB / 0.6779 GB, free: 10.58 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/0.6983, allocations: 5.732 MB / 0.6835 GB, free: 4.762 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-05/0.6984, allocations: 0 / 0.6835 GB, free: 4.762 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.6994, allocations: 195.7 kB / 0.6837 GB, free: 4.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.7009, allocations: 488.3 kB / 0.6841 GB, free: 4.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.701, allocations: 20 kB / 0.6842 GB, free: 4.07 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003903/0.705, allocations: 3.225 MB / 0.6873 GB, free: 0.7109 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.705, allocations: 3.938 kB / 0.6873 GB, free: 0.707 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3344/1.039, allocations: 18.61 MB / 0.7055 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007744/1.04, allocations: 364.6 kB / 0.7058 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004745/1.041, allocations: 20.06 kB / 0.7059 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/1.042, allocations: 79.47 kB / 0.7059 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/1.043, allocations: 72.53 kB / 0.706 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.043, allocations: 43.05 kB / 0.706 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004768/1.048, allocations: 2.288 MB / 0.7083 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3e-07/1.048, allocations: 0 / 0.7083 GB, free: 136.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008404/1.056, allocations: 1.042 MB / 0.7093 GB, free: 136.6 MB / 0.4948 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.0006843/1.057, allocations: 150.2 kB / 0.7094 GB, free: 136.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008859/1.066, allocations: 4.143 MB / 0.7135 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.066, allocations: 0 / 0.7135 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002417/1.068, allocations: 1.133 MB / 0.7146 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004275/1.073, allocations: 339.6 kB / 0.7149 GB, free: 134.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.027/1.1, allocations: 9.739 MB / 0.7244 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008526/1.108, allocations: 2.723 MB / 0.7271 GB, free: 128.1 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008847/1.117, allocations: 1.69 MB / 0.7287 GB, free: 128 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.118, allocations: 212 kB / 0.7289 GB, free: 128 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/1.118, allocations: 0 / 0.7289 GB, free: 128 MB / 0.4948 GB Notification: Performance of Templates: time 0.06163/1.18, allocations: 32.22 MB / 0.7604 GB, free: 105.2 MB / 0.4948 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches