Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 104.3 kB / 16.27 MB, free: 6.012 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.001294/0.001295, allocations: 187.6 kB / 17.19 MB, free: 5.645 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.672/1.672, allocations: 205.1 MB / 223.1 MB, free: 12.15 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.2436/0.2436, allocations: 43.53 MB / 313.9 MB, free: 0.4961 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.001762/0.001762, allocations: 70.03 kB / 382.7 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1362, allocations: 57.79 MB / 440.5 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01125/0.1475, allocations: 10.01 MB / 450.5 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.1586, allocations: 3.696 MB / 454.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003062/0.1617, allocations: 51.88 kB / 454.3 MB, free: 9.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0057/0.1674, allocations: 1.958 MB / 456.2 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007665/0.1752, allocations: 1.739 MB / 458 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.1777, allocations: 0.5692 MB / 458.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007594/0.1853, allocations: 3.739 MB / 462.3 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004692/0.1901, allocations: 2.55 MB / 464.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003029/0.1931, allocations: 1.273 MB / 466.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003548/0.1967, allocations: 1.834 MB / 467.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001369/0.1981, allocations: 276 kB / 468.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003379/0.2015, allocations: 1.143 MB / 469.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002807/0.2043, allocations: 1.691 MB / 471 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004701/0.2091, allocations: 1.934 MB / 473 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01117/0.2203, allocations: 6.172 MB / 479.1 MB, free: 76 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.515e-05/0.2203, allocations: 4 kB / 479.2 MB, free: 72 kB / 350.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.2204, allocations: 0 / 479.2 MB, free: 72 kB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003716/0.2208, allocations: 0 / 479.2 MB, free: 72 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01723/0.238, allocations: 4.195 MB / 483.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.471e-05/0.2381, allocations: 15.89 kB / 483.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01774/0.2558, allocations: 2.441 MB / 485.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007227/0.2631, allocations: 2.412 MB / 488.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002451/0.2634, allocations: 197.3 kB / 488.4 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001446/0.2649, allocations: 267.9 kB / 488.7 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01858/0.2835, allocations: 8.76 MB / 497.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001797/0.2837, allocations: 35.69 kB / 497.5 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001121/0.2849, allocations: 127.8 kB / 497.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003265/0.2881, allocations: 1.837 MB / 499.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01507/0.3032, allocations: 7.472 MB / 0.495 GB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0448/0.3481, allocations: 34.29 MB / 0.5285 GB, free: 216 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3118/0.66, allocations: 2.577 MB / 0.531 GB, free: 85.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001832/0.6619, allocations: 1.191 MB / 0.5322 GB, free: 85.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003296/0.6622, allocations: 322.1 kB / 0.5325 GB, free: 85.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.6623, allocations: 50.98 kB / 0.5325 GB, free: 85.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.9e-06/0.6623, allocations: 0 / 0.5325 GB, free: 85.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.0392/0.7015, allocations: 9.814 MB / 0.5421 GB, free: 82.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.7016, allocations: 197.4 kB / 0.5423 GB, free: 82.69 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007602/0.7092, allocations: 3.966 MB / 0.5462 GB, free: 81.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002775/0.7096, allocations: 51.09 kB / 0.5462 GB, free: 81.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.7112, allocations: 2.942 MB / 0.5491 GB, free: 78.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004961/0.7117, allocations: 0.5454 MB / 0.5496 GB, free: 78.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/0.7128, allocations: 1.198 MB / 0.5508 GB, free: 77.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.06e-05/0.7129, allocations: 311.5 kB / 0.5511 GB, free: 77.68 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002185/0.7151, allocations: 1.805 MB / 0.5529 GB, free: 77.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003951/0.719, allocations: 5.626 MB / 0.5584 GB, free: 71.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007035/0.7261, allocations: 8.052 MB / 0.5662 GB, free: 62.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/0.7263, allocations: 40 kB / 0.5663 GB, free: 62.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01435/0.7406, allocations: 7.593 MB / 0.5737 GB, free: 54.92 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.24e-05/0.7408, allocations: 64.97 kB / 0.5737 GB, free: 54.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.7409, allocations: 136 kB / 0.5739 GB, free: 54.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/0.7423, allocations: 0.6643 MB / 0.5745 GB, free: 54.06 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/0.7463, allocations: 1.357 MB / 0.5758 GB, free: 52.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.7503, allocations: 4.098 MB / 0.5798 GB, free: 48.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005429/0.7557, allocations: 322.8 kB / 0.5802 GB, free: 48.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008959/0.7566, allocations: 368 kB / 0.5805 GB, free: 47.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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.003616/0.7603, allocations: 1.944 MB / 0.5824 GB, free: 45.85 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006937/0.761, allocations: 323.7 kB / 0.5827 GB, free: 45.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003369/0.7643, allocations: 2.073 MB / 0.5847 GB, free: 43.44 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.447e-05/0.7644, allocations: 16 kB / 0.5848 GB, free: 43.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.7644, allocations: 4 kB / 0.5848 GB, free: 43.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.7644, allocations: 15.86 kB / 0.5848 GB, free: 43.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00952/0.7739, allocations: 5.796 MB / 0.5904 GB, free: 37.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.138e-05/0.774, allocations: 3.984 kB / 0.5904 GB, free: 37.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008409/0.7749, allocations: 187.9 kB / 0.5906 GB, free: 37.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001202/0.7761, allocations: 484.2 kB / 0.5911 GB, free: 36.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.73e-05/0.7762, allocations: 31.92 kB / 0.5911 GB, free: 36.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003176/0.7793, allocations: 3.455 MB / 0.5945 GB, free: 33.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7794, allocations: 8 kB / 0.5945 GB, free: 33.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005383/0.7848, allocations: 3.996 MB / 0.5984 GB, free: 29.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.7861, allocations: 0.532 MB / 0.5989 GB, free: 28.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003931/0.7865, allocations: 27.69 kB / 0.5989 GB, free: 28.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.7876, allocations: 63.98 kB / 0.599 GB, free: 28.59 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.7878, allocations: 76.34 kB / 0.5991 GB, free: 28.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.043e-05/0.7879, allocations: 43.5 kB / 0.5991 GB, free: 28.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003592/0.7915, allocations: 2.468 MB / 0.6015 GB, free: 26.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7916, allocations: 0 / 0.6015 GB, free: 26.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005142/0.7967, allocations: 0.884 MB / 0.6024 GB, free: 25.15 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0004126/0.7971, allocations: 148.8 kB / 0.6025 GB, free: 25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00821/0.8054, allocations: 4.661 MB / 0.6071 GB, free: 20.38 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/0.8054, allocations: 320 / 0.6071 GB, free: 20.38 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.8068, allocations: 1.079 MB / 0.6081 GB, free: 19.28 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/0.8095, allocations: 385.5 kB / 0.6085 GB, free: 18.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.8236, allocations: 7.95 MB / 0.6163 GB, free: 10.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002435/0.8261, allocations: 2.953 MB / 0.6192 GB, free: 7.961 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003957/0.83, allocations: 1.812 MB / 0.6209 GB, free: 6.145 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006038/0.8307, allocations: 231.4 kB / 0.6211 GB, free: 5.922 MB / 414.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8307, allocations: 0 / 0.6211 GB, free: 5.922 MB / 414.1 MB Notification: Performance of Templates: time 0.06369/0.8944, allocations: 30.9 MB / 0.6513 GB, free: 7.125 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches