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.00133/0.00133, allocations: 108.3 kB / 18.41 MB, free: 4.566 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.001412/0.001412, allocations: 187 kB / 19.34 MB, free: 3.641 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.36/1.36, allocations: 222.9 MB / 243 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.2093/0.2093, allocations: 44.19 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001259, allocations: 64.41 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1272, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01087/0.1381, allocations: 9.023 MB / 479.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00741/0.1456, allocations: 3.559 MB / 483.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.1471, allocations: 47.88 kB / 483.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003219/0.1503, allocations: 1.67 MB / 485 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004621/0.155, allocations: 1.603 MB / 486.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.1564, allocations: 0.5575 MB / 487.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005281/0.1617, allocations: 3.576 MB / 490.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00262/0.1644, allocations: 2.22 MB / 493 MB, free: 7.266 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001681/0.1661, allocations: 1.113 MB / 494.1 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002112/0.1682, allocations: 1.553 MB / 495.6 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005234/0.1687, allocations: 224 kB / 495.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002041/0.1708, allocations: 1.123 MB / 497 MB, free: 3.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001341/0.1721, allocations: 1.457 MB / 498.4 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001504/0.1736, allocations: 1.658 MB / 0.4884 GB, free: 120 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006081/0.1797, allocations: 5.536 MB / 0.4938 GB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.1798, allocations: 3.984 kB / 0.4938 GB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1798, allocations: 0 / 0.4938 GB, free: 10.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.1799, allocations: 0 / 0.4938 GB, free: 10.56 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.007292/0.1872, allocations: 3.728 MB / 0.4974 GB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1873, allocations: 12.03 kB / 0.4974 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01385/0.2011, allocations: 2.36 MB / 0.4997 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006186/0.2073, allocations: 2.229 MB / 0.5019 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.2075, allocations: 164.5 kB / 0.5021 GB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005603/0.2081, allocations: 224 kB / 0.5023 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2537/0.4618, allocations: 7.586 MB / 0.5097 GB, free: 43.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001017/0.4619, allocations: 39.25 kB / 0.5097 GB, free: 43.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003105/0.4622, allocations: 111.5 kB / 0.5098 GB, free: 43.35 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002835/0.4651, allocations: 1.603 MB / 0.5114 GB, free: 43.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.4776, allocations: 6.464 MB / 0.5177 GB, free: 41.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.027/0.5047, allocations: 30.54 MB / 0.5475 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003546/0.5082, allocations: 2.229 MB / 0.5497 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.5093, allocations: 1.137 MB / 0.5508 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002909/0.5096, allocations: 322.8 kB / 0.5511 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.5096, allocations: 47 kB / 0.5512 GB, free: 10.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.526e-06/0.5096, allocations: 0 / 0.5512 GB, free: 10.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.03031/0.54, allocations: 11.87 MB / 0.5628 GB, free: 14.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.5401, allocations: 192.6 kB / 0.563 GB, free: 14.67 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004649/0.5448, allocations: 3.66 MB / 0.5665 GB, free: 11.01 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001757/0.545, allocations: 49.7 kB / 0.5666 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.5467, allocations: 2.586 MB / 0.5691 GB, free: 8.363 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005282/0.5472, allocations: 0.5286 MB / 0.5696 GB, free: 7.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/0.5485, allocations: 1.087 MB / 0.5707 GB, free: 6.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.5487, allocations: 305.1 kB / 0.571 GB, free: 6.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.5511, allocations: 1.74 MB / 0.5727 GB, free: 4.684 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004733/0.5559, allocations: 5.107 MB / 0.5777 GB, free: 13.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00822/0.5641, allocations: 7.401 MB / 0.5849 GB, free: 4.812 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.427e-05/0.5642, allocations: 36 kB / 0.5849 GB, free: 4.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01363/0.5779, allocations: 7.08 MB / 0.5918 GB, free: 13.69 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.106e-05/0.578, allocations: 59.98 kB / 0.5919 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001253/0.5781, allocations: 120.9 kB / 0.592 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001559/0.5797, allocations: 0.6446 MB / 0.5926 GB, free: 12.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/0.5835, allocations: 1.22 MB / 0.5938 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00474/0.5883, allocations: 4.06 MB / 0.5978 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003895/0.5922, allocations: 299.5 kB / 0.5981 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006283/0.5928, allocations: 332 kB / 0.5984 GB, free: 6.832 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.002626/0.5955, allocations: 1.728 MB / 0.6001 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005747/0.5961, allocations: 308 kB / 0.6004 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003816/0.5999, allocations: 2.095 MB / 0.6024 GB, free: 2.676 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/0.5999, allocations: 16.38 kB / 0.6024 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.5999, allocations: 4 kB / 0.6024 GB, free: 2.656 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.6, allocations: 7.984 kB / 0.6024 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.6113, allocations: 5.689 MB / 0.608 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.6113, allocations: 12 kB / 0.608 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.6123, allocations: 195.7 kB / 0.6082 GB, free: 12.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001316/0.6137, allocations: 484.2 kB / 0.6087 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.6138, allocations: 23.98 kB / 0.6087 GB, free: 12.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003943/0.6178, allocations: 3.437 MB / 0.612 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.6178, allocations: 4 kB / 0.612 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006263/0.6241, allocations: 4.17 MB / 0.6161 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001139/0.6252, allocations: 365 kB / 0.6165 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000434/0.6257, allocations: 16 kB / 0.6165 GB, free: 3.996 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001241/0.6269, allocations: 81.2 kB / 0.6166 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.6272, allocations: 72.72 kB / 0.6166 GB, free: 3.844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.6273, allocations: 32 kB / 0.6167 GB, free: 3.812 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003892/0.6312, allocations: 2.296 MB / 0.6189 GB, free: 1.527 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6312, allocations: 3.938 kB / 0.6189 GB, free: 1.523 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004456/0.6357, allocations: 0.8099 MB / 0.6197 GB, free: 0.7188 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.0004285/0.6361, allocations: 141.6 kB / 0.6198 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007227/0.6433, allocations: 4.145 MB / 0.6239 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.6434, allocations: 64 / 0.6239 GB, free: 12.44 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001691/0.6451, allocations: 1.145 MB / 0.625 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002746/0.6479, allocations: 353.9 kB / 0.6253 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.6605, allocations: 7.178 MB / 0.6323 GB, free: 3.727 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002867/0.6634, allocations: 2.683 MB / 0.635 GB, free: 1.012 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003728/0.6672, allocations: 1.682 MB / 0.6366 GB, free: 15.32 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007097/0.6679, allocations: 207.4 kB / 0.6368 GB, free: 15.13 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6679, allocations: 0 / 0.6368 GB, free: 15.13 MB / 478.1 MB Notification: Performance of Templates: time 0.05103/0.719, allocations: 24.99 MB / 0.6612 GB, free: 6.23 MB / 494.1 MB 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 -s gbode -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