Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_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.001429/0.001429, allocations: 104 kB / 16.27 MB, free: 6.043 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.001287/0.001287, allocations: 190.8 kB / 17.19 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.629/1.629, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2166/0.2166, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 72.38 kB / 382.7 MB, free: 56.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1464, allocations: 57.79 MB / 440.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01027/0.1567, allocations: 9.425 MB / 449.9 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008799/0.1656, allocations: 3.598 MB / 453.5 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.1675, allocations: 51.88 kB / 453.6 MB, free: 9.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003579/0.1712, allocations: 1.689 MB / 455.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004822/0.176, allocations: 1.638 MB / 456.9 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001811/0.1778, allocations: 0.5575 MB / 457.5 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006095/0.184, allocations: 3.51 MB / 461 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003717/0.1877, allocations: 2.286 MB / 463.3 MB, free: 32 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002543/0.1903, allocations: 1.152 MB / 464.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003124/0.1934, allocations: 1.631 MB / 466 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001039/0.1945, allocations: 236 kB / 466.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.1973, allocations: 1.123 MB / 467.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002219/0.1995, allocations: 1.516 MB / 468.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003419/0.2029, allocations: 1.732 MB / 470.7 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007961/0.2109, allocations: 5.553 MB / 476.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2109, allocations: 0 / 476.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.211, allocations: 0 / 476.2 MB, free: 3.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002444/0.2112, allocations: 0 / 476.2 MB, free: 3.051 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01188/0.2231, allocations: 3.857 MB / 480.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.2232, allocations: 15.89 kB / 480.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0171/0.2403, allocations: 2.367 MB / 482.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006656/0.247, allocations: 2.295 MB / 484.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/0.2472, allocations: 168.7 kB / 484.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.2486, allocations: 235.9 kB / 485.1 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01701/0.2656, allocations: 7.891 MB / 493 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001061/0.2657, allocations: 39.59 kB / 493.1 MB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003395/0.2661, allocations: 115.9 kB / 493.2 MB, free: 1.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/0.2689, allocations: 1.664 MB / 494.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01279/0.2817, allocations: 6.754 MB / 0.4898 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04004/0.3218, allocations: 31.53 MB / 0.5206 GB, free: 8.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005355/0.3272, allocations: 2.338 MB / 0.5229 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/0.329, allocations: 1.184 MB / 0.5241 GB, free: 4.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004424/0.3294, allocations: 323.7 kB / 0.5244 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.75e-05/0.3295, allocations: 47.12 kB / 0.5244 GB, free: 4.289 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.469e-06/0.3295, allocations: 4 kB / 0.5244 GB, free: 4.285 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.3241/0.6536, allocations: 12.29 MB / 0.5364 GB, free: 85.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.6538, allocations: 198.3 kB / 0.5366 GB, free: 85.15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006448/0.6602, allocations: 3.731 MB / 0.5403 GB, free: 84.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002867/0.6605, allocations: 46.17 kB / 0.5403 GB, free: 84.35 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001631/0.6622, allocations: 2.67 MB / 0.5429 GB, free: 82.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006244/0.6628, allocations: 0.5626 MB / 0.5435 GB, free: 81.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/0.6644, allocations: 1.118 MB / 0.5446 GB, free: 81.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.286e-05/0.6645, allocations: 301.1 kB / 0.5448 GB, free: 81.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003064/0.6676, allocations: 1.809 MB / 0.5466 GB, free: 80.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004365/0.6719, allocations: 5.252 MB / 0.5517 GB, free: 75.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007621/0.6796, allocations: 7.62 MB / 0.5592 GB, free: 68.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000139/0.6798, allocations: 38.62 kB / 0.5592 GB, free: 68.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01324/0.693, allocations: 7.287 MB / 0.5663 GB, free: 63.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.324e-05/0.6931, allocations: 56 kB / 0.5664 GB, free: 63.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/0.6933, allocations: 124 kB / 0.5665 GB, free: 63.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.6947, allocations: 0.6561 MB / 0.5671 GB, free: 62.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003408/0.6981, allocations: 1.263 MB / 0.5684 GB, free: 61.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003775/0.7019, allocations: 4.066 MB / 0.5723 GB, free: 57.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004578/0.7065, allocations: 303 kB / 0.5726 GB, free: 57.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005175/0.707, allocations: 344 kB / 0.573 GB, free: 56.87 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.002539/0.7096, allocations: 1.779 MB / 0.5747 GB, free: 55.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000574/0.7101, allocations: 316 kB / 0.575 GB, free: 54.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003388/0.7135, allocations: 2.219 MB / 0.5772 GB, free: 52.54 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.028e-05/0.7136, allocations: 19.94 kB / 0.5772 GB, free: 52.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.7136, allocations: 4 kB / 0.5772 GB, free: 52.51 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.263e-05/0.7136, allocations: 6.516 kB / 0.5772 GB, free: 52.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008387/0.722, allocations: 5.988 MB / 0.583 GB, free: 46.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.722, allocations: 4 kB / 0.5831 GB, free: 46.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009773/0.723, allocations: 207.7 kB / 0.5833 GB, free: 46.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.7242, allocations: 492.2 kB / 0.5837 GB, free: 45.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.726e-05/0.7243, allocations: 30.06 kB / 0.5837 GB, free: 45.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002947/0.7272, allocations: 3.43 MB / 0.5871 GB, free: 42.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.7273, allocations: 3.984 kB / 0.5871 GB, free: 42.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005164/0.7324, allocations: 4.347 MB / 0.5913 GB, free: 37.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/0.7335, allocations: 0.5478 MB / 0.5919 GB, free: 37.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003307/0.7339, allocations: 24 kB / 0.5919 GB, free: 37.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.735, allocations: 75.89 kB / 0.592 GB, free: 37.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.7352, allocations: 84.42 kB / 0.5921 GB, free: 37.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.025e-05/0.7353, allocations: 40.94 kB / 0.5921 GB, free: 37.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.7381, allocations: 2.337 MB / 0.5944 GB, free: 34.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7381, allocations: 0 / 0.5944 GB, free: 34.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004184/0.7423, allocations: 0.8369 MB / 0.5952 GB, free: 33.86 MB / 414.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 (112): * Single equations (assignments): 108 * 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.0003485/0.7427, allocations: 145.4 kB / 0.5953 GB, free: 33.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006165/0.7488, allocations: 4.745 MB / 0.6 GB, free: 29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/0.7489, allocations: 0 / 0.6 GB, free: 29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001296/0.7502, allocations: 1.193 MB / 0.6011 GB, free: 27.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.7521, allocations: 362 kB / 0.6015 GB, free: 27.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.7624, allocations: 7.547 MB / 0.6088 GB, free: 19.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002148/0.7646, allocations: 2.758 MB / 0.6115 GB, free: 17.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003653/0.7682, allocations: 1.725 MB / 0.6132 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005045/0.7687, allocations: 219.3 kB / 0.6134 GB, free: 15.18 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.7687, allocations: 0 / 0.6134 GB, free: 15.18 MB / 414.1 MB Notification: Performance of Templates: time 0.05735/0.8261, allocations: 30.48 MB / 0.6432 GB, free: 0.8125 MB / 430.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches