Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.117/2.117, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004344, allocations: 8 kB / 314.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3135, allocations: 54.86 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.4611, allocations: 99 MB / 468.3 MB, free: 7.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.4614, allocations: 83.95 kB / 468.4 MB, free: 7.488 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6316/1.093, allocations: 72.92 MB / 0.5286 GB, free: 43.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.246e-06/1.093, allocations: 3.938 kB / 0.5286 GB, free: 43.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000142/1.093, allocations: 60 kB / 0.5286 GB, free: 43.53 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.0104/1.104, allocations: 3.484 MB / 0.5321 GB, free: 39.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/1.104, allocations: 11.97 kB / 0.5321 GB, free: 39.96 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0207/1.124, allocations: 4.25 MB / 0.5362 GB, free: 35.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/1.136, allocations: 4.212 MB / 0.5403 GB, free: 31.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000256/1.137, allocations: 250.4 kB / 0.5406 GB, free: 31.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001263/1.138, allocations: 331.8 kB / 0.5409 GB, free: 30.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01573/1.154, allocations: 8.289 MB / 0.549 GB, free: 21.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001606/1.154, allocations: 55.47 kB / 0.549 GB, free: 21.56 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006512/1.155, allocations: 163.9 kB / 0.5492 GB, free: 21.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001177/1.156, allocations: 0.8134 MB / 0.55 GB, free: 20.59 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01466/1.17, allocations: 6.702 MB / 0.5565 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04928/1.22, allocations: 39.77 MB / 0.5954 GB, free: 4.742 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006746/1.227, allocations: 2.268 MB / 0.5976 GB, free: 2.328 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005193/1.227, allocations: 323.8 kB / 0.5979 GB, free: 1.957 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/1.227, allocations: 43.12 kB / 0.5979 GB, free: 1.906 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 4.712e-06/1.227, allocations: 4 kB / 0.5979 GB, free: 1.902 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.04507/1.272, allocations: 11.37 MB / 0.609 GB, free: 6.324 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/1.273, allocations: 200.6 kB / 0.6092 GB, free: 6.086 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007563/1.28, allocations: 3.292 MB / 0.6124 GB, free: 2.801 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000253/1.28, allocations: 41.7 kB / 0.6125 GB, free: 2.754 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002893/1.283, allocations: 2.628 MB / 0.6151 GB, free: 92 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009113/1.284, allocations: 0.5594 MB / 0.6156 GB, free: 15.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005029/1.285, allocations: 108 kB / 0.6157 GB, free: 15.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005254/1.285, allocations: 0.5379 MB / 0.6162 GB, free: 14.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004014/1.289, allocations: 1.634 MB / 0.6178 GB, free: 13.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007586/1.297, allocations: 5.055 MB / 0.6228 GB, free: 6.445 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00621/1.303, allocations: 2.844 MB / 0.6255 GB, free: 3.602 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/1.303, allocations: 36 kB / 0.6256 GB, free: 3.566 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01705/1.32, allocations: 6.527 MB / 0.6319 GB, free: 13.03 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/1.321, allocations: 59.98 kB / 0.632 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/1.321, allocations: 124 kB / 0.6321 GB, free: 12.85 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/1.322, allocations: 344.7 kB / 0.6325 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005335/1.327, allocations: 1.24 MB / 0.6337 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004669/1.332, allocations: 2.76 MB / 0.6364 GB, free: 8.371 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005207/1.337, allocations: 291.4 kB / 0.6366 GB, free: 8.086 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/1.338, allocations: 340.1 kB / 0.637 GB, free: 7.754 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 24 (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.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 (664): * Single equations (assignments): 660 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004604/1.343, allocations: 1.774 MB / 0.6387 GB, free: 5.969 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008063/1.344, allocations: 312 kB / 0.639 GB, free: 5.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004656/1.348, allocations: 1.735 MB / 0.6407 GB, free: 3.91 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.795e-05/1.349, allocations: 16 kB / 0.6407 GB, free: 3.895 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.349, allocations: 4 kB / 0.6407 GB, free: 3.891 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.609e-05/1.349, allocations: 3.984 kB / 0.6407 GB, free: 3.887 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2902/1.639, allocations: 5.412 MB / 0.646 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/1.639, allocations: 1.531 kB / 0.646 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001529/1.64, allocations: 217.7 kB / 0.6462 GB, free: 121.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000699/1.641, allocations: 161.5 kB / 0.6464 GB, free: 121.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002065/1.641, allocations: 26.53 kB / 0.6464 GB, free: 121.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002994/1.644, allocations: 2.193 MB / 0.6485 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.169e-06/1.644, allocations: 5.031 kB / 0.6485 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007081/1.651, allocations: 3.832 MB / 0.6523 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/1.653, allocations: 0.5345 MB / 0.6528 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000579/1.654, allocations: 20.72 kB / 0.6528 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001683/1.655, allocations: 66.34 kB / 0.6529 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002815/1.656, allocations: 76.61 kB / 0.6529 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.656, allocations: 37.88 kB / 0.653 GB, free: 119.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004996/1.661, allocations: 2.3 MB / 0.6552 GB, free: 119.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.06e-06/1.661, allocations: 3.312 kB / 0.6552 GB, free: 119.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005957/1.667, allocations: 0.798 MB / 0.656 GB, free: 119.6 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005006/1.667, allocations: 160.2 kB / 0.6562 GB, free: 119.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008027/1.675, allocations: 3.98 MB / 0.6601 GB, free: 119.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.743e-06/1.676, allocations: 0 / 0.6601 GB, free: 119.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002158/1.678, allocations: 1.085 MB / 0.6611 GB, free: 119.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002477/1.68, allocations: 343.4 kB / 0.6614 GB, free: 119.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/1.697, allocations: 8.911 MB / 0.6701 GB, free: 116 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005127/1.702, allocations: 2.816 MB / 0.6729 GB, free: 115.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001107/1.704, allocations: 263.2 kB / 0.6731 GB, free: 115.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.602e-06/1.704, allocations: 0 / 0.6731 GB, free: 115.2 MB / 474.7 MB Notification: Performance of Templates: time 0.08943/1.793, allocations: 60.69 MB / 0.7324 GB, free: 79.78 MB / 474.7 MB