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.001606/0.001606, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.00193/0.00193, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.386/1.386, allocations: 222.9 MB / 242.9 MB, free: 15.17 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.2198/0.2198, allocations: 44.19 MB / 337.3 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001453, allocations: 65.67 kB / 409.1 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1285, allocations: 60.83 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0111/0.1396, allocations: 9.027 MB / 478.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007643/0.1473, allocations: 3.559 MB / 482.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001733/0.1491, allocations: 51.81 kB / 482.6 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003668/0.1528, allocations: 1.674 MB / 484.2 MB, free: 20 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004609/0.1575, allocations: 1.584 MB / 485.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.1591, allocations: 0.5614 MB / 486.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005391/0.1645, allocations: 3.587 MB / 490 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003565/0.1681, allocations: 2.212 MB / 492.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002287/0.1704, allocations: 1.105 MB / 493.3 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002694/0.1731, allocations: 1.553 MB / 494.8 MB, free: 5.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009331/0.174, allocations: 224 kB / 495.1 MB, free: 5.125 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002745/0.1768, allocations: 1.127 MB / 496.2 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.1789, allocations: 1.445 MB / 497.6 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003086/0.182, allocations: 1.666 MB / 499.3 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007772/0.1898, allocations: 5.335 MB / 0.4928 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.341e-05/0.1899, allocations: 4 kB / 0.4928 GB, free: 11.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1899, allocations: 0 / 0.4928 GB, free: 11.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001451/0.1901, allocations: 0 / 0.4928 GB, free: 11.52 MB / 382.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.007693/0.1978, allocations: 3.739 MB / 0.4965 GB, free: 7.707 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.1978, allocations: 12.03 kB / 0.4965 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01591/0.2137, allocations: 2.352 MB / 0.4988 GB, free: 5.336 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005252/0.219, allocations: 2.198 MB / 0.5009 GB, free: 3.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.2192, allocations: 164.5 kB / 0.5011 GB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009029/0.2201, allocations: 220 kB / 0.5013 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2523/0.4725, allocations: 7.59 MB / 0.5087 GB, free: 43.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.4726, allocations: 35.62 kB / 0.5087 GB, free: 43.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003274/0.4729, allocations: 114.8 kB / 0.5088 GB, free: 43.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002943/0.4759, allocations: 1.596 MB / 0.5104 GB, free: 43.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.489, allocations: 6.472 MB / 0.5167 GB, free: 41.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03013/0.5192, allocations: 30.66 MB / 0.5467 GB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003854/0.5231, allocations: 2.237 MB / 0.5488 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.5242, allocations: 1.133 MB / 0.5499 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002835/0.5245, allocations: 332.3 kB / 0.5503 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.5246, allocations: 49.28 kB / 0.5503 GB, free: 11.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.146e-06/0.5246, allocations: 0 / 0.5503 GB, free: 11.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.03144/0.556, allocations: 11.87 MB / 0.5619 GB, free: 15.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.5562, allocations: 192.6 kB / 0.5621 GB, free: 15.63 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004702/0.5609, allocations: 3.656 MB / 0.5657 GB, free: 11.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/0.5611, allocations: 43.58 kB / 0.5657 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001854/0.563, allocations: 2.596 MB / 0.5682 GB, free: 9.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006876/0.5637, allocations: 0.5249 MB / 0.5687 GB, free: 8.777 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/0.5651, allocations: 1.087 MB / 0.5698 GB, free: 7.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.5652, allocations: 309.1 kB / 0.5701 GB, free: 7.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002563/0.5677, allocations: 1.744 MB / 0.5718 GB, free: 5.625 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005001/0.5728, allocations: 5.111 MB / 0.5768 GB, free: 14.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008773/0.5816, allocations: 7.396 MB / 0.584 GB, free: 5.758 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.882e-05/0.5817, allocations: 36 kB / 0.5841 GB, free: 5.723 MB / 414.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01419/0.5959, allocations: 7.08 MB / 0.591 GB, free: 14.63 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.5961, allocations: 57 kB / 0.591 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002113/0.5963, allocations: 120 kB / 0.5911 GB, free: 14.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.5981, allocations: 0.6447 MB / 0.5918 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004083/0.6022, allocations: 1.22 MB / 0.593 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005137/0.6073, allocations: 4.067 MB / 0.5969 GB, free: 8.383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003906/0.6113, allocations: 291.4 kB / 0.5972 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007961/0.6121, allocations: 328 kB / 0.5975 GB, free: 7.777 MB / 430.1 MB 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.003049/0.6152, allocations: 1.744 MB / 0.5992 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006784/0.6158, allocations: 300.1 kB / 0.5995 GB, free: 5.723 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004152/0.62, allocations: 2.092 MB / 0.6016 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-05/0.6201, allocations: 16 kB / 0.6016 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.6201, allocations: 0 / 0.6016 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.6201, allocations: 7.984 kB / 0.6016 GB, free: 3.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01101/0.6311, allocations: 5.728 MB / 0.6072 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.6311, allocations: 0 / 0.6072 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.6322, allocations: 199.7 kB / 0.6074 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/0.6336, allocations: 488.3 kB / 0.6078 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.6337, allocations: 23.98 kB / 0.6078 GB, free: 13.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00409/0.6378, allocations: 3.433 MB / 0.6112 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.6378, allocations: 4.812 kB / 0.6112 GB, free: 9.496 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006267/0.6441, allocations: 4.158 MB / 0.6153 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009974/0.6451, allocations: 365 kB / 0.6156 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006703/0.6458, allocations: 28.05 kB / 0.6156 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/0.6473, allocations: 71.89 kB / 0.6157 GB, free: 4.836 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.6475, allocations: 72.44 kB / 0.6158 GB, free: 4.766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.736e-05/0.6476, allocations: 39.98 kB / 0.6158 GB, free: 4.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004133/0.6517, allocations: 2.284 MB / 0.618 GB, free: 2.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6517, allocations: 0 / 0.618 GB, free: 2.453 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004146/0.6559, allocations: 0.806 MB / 0.6188 GB, free: 1.652 MB / 446.1 MB 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.0003866/0.6563, allocations: 171.4 kB / 0.619 GB, free: 1.477 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007261/0.6635, allocations: 4.505 MB / 0.6234 GB, free: 13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/0.6636, allocations: 4 kB / 0.6234 GB, free: 12.99 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.6652, allocations: 1.136 MB / 0.6245 GB, free: 11.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00225/0.6674, allocations: 359.2 kB / 0.6249 GB, free: 11.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01338/0.6808, allocations: 7.607 MB / 0.6323 GB, free: 3.844 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003589/0.6845, allocations: 2.674 MB / 0.6349 GB, free: 1.148 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009109/0.6854, allocations: 255.4 kB / 0.6351 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6854, allocations: 0 / 0.6351 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of Templates: time 0.09421/0.7796, allocations: 61.48 MB / 0.6952 GB, free: 3.449 MB / 0.5137 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/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