Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.272/2.272, allocations: 234.9 MB / 251.1 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004315/0.0004315, allocations: 8 kB / 314.9 MB, free: 9.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3377, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.5213, allocations: 99 MB / 468.8 MB, free: 7.609 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003137/0.5217, allocations: 87.89 kB / 468.9 MB, free: 7.523 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6199/1.142, allocations: 73.39 MB / 0.5296 GB, free: 43.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.142, allocations: 0 / 0.5296 GB, free: 43.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001519/1.142, allocations: 60 kB / 0.5296 GB, free: 43.12 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.01254/1.154, allocations: 3.495 MB / 0.533 GB, free: 39.56 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/1.154, allocations: 12.03 kB / 0.533 GB, free: 39.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03009/1.185, allocations: 4.239 MB / 0.5372 GB, free: 35.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01499/1.2, allocations: 4.224 MB / 0.5413 GB, free: 31.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/1.2, allocations: 250.5 kB / 0.5415 GB, free: 30.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001191/1.201, allocations: 331.8 kB / 0.5419 GB, free: 30.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02472/1.226, allocations: 8.308 MB / 0.55 GB, free: 21.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002451/1.226, allocations: 55.47 kB / 0.55 GB, free: 21.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001035/1.227, allocations: 163.9 kB / 0.5502 GB, free: 20.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002106/1.229, allocations: 0.8095 MB / 0.551 GB, free: 20.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02292/1.252, allocations: 6.71 MB / 0.5575 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0656/1.318, allocations: 39.77 MB / 0.5964 GB, free: 4.301 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008257/1.326, allocations: 2.268 MB / 0.5986 GB, free: 1.887 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006367/1.327, allocations: 315.8 kB / 0.5989 GB, free: 1.523 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.625e-05/1.327, allocations: 51.12 kB / 0.5989 GB, free: 1.465 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 4.388e-06/1.327, allocations: 0 / 0.5989 GB, free: 1.465 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.06279/1.39, allocations: 11.57 MB / 0.6102 GB, free: 5.688 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/1.39, allocations: 196.6 kB / 0.6104 GB, free: 5.453 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008349/1.398, allocations: 3.68 MB / 0.614 GB, free: 1.777 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003372/1.399, allocations: 45.7 kB / 0.6141 GB, free: 1.727 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002892/1.402, allocations: 2.628 MB / 0.6166 GB, free: 15.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009728/1.403, allocations: 0.5556 MB / 0.6172 GB, free: 14.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004954/1.403, allocations: 108 kB / 0.6173 GB, free: 14.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004738/1.404, allocations: 0.534 MB / 0.6178 GB, free: 13.85 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004534/1.408, allocations: 1.638 MB / 0.6194 GB, free: 12.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008079/1.416, allocations: 5.074 MB / 0.6243 GB, free: 5.398 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007318/1.424, allocations: 2.84 MB / 0.6271 GB, free: 2.559 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/1.424, allocations: 36 kB / 0.6272 GB, free: 2.523 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01868/1.442, allocations: 6.535 MB / 0.6335 GB, free: 11.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.443, allocations: 64.23 kB / 0.6336 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/1.443, allocations: 124 kB / 0.6337 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/1.444, allocations: 344.6 kB / 0.634 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007438/1.452, allocations: 1.236 MB / 0.6353 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005139/1.457, allocations: 2.763 MB / 0.638 GB, free: 7.316 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005653/1.462, allocations: 287.5 kB / 0.6382 GB, free: 7.035 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000992/1.463, allocations: 339.9 kB / 0.6385 GB, free: 6.703 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.004673/1.468, allocations: 1.777 MB / 0.6403 GB, free: 4.914 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008269/1.469, allocations: 308 kB / 0.6406 GB, free: 4.609 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005447/1.474, allocations: 1.732 MB / 0.6423 GB, free: 2.867 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.125e-05/1.474, allocations: 19.98 kB / 0.6423 GB, free: 2.848 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.632e-05/1.475, allocations: 4 kB / 0.6423 GB, free: 2.844 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/1.475, allocations: 11.88 kB / 0.6423 GB, free: 2.832 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3454/1.82, allocations: 5.394 MB / 0.6476 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/1.82, allocations: 2.375 kB / 0.6476 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002145/1.822, allocations: 222.6 kB / 0.6478 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008701/1.823, allocations: 159.6 kB / 0.6479 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001872/1.823, allocations: 23.72 kB / 0.648 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003526/1.827, allocations: 2.193 MB / 0.6501 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.827, allocations: 7.297 kB / 0.6501 GB, free: 120 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008081/1.835, allocations: 3.71 MB / 0.6537 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/1.837, allocations: 0.5281 MB / 0.6542 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007262/1.838, allocations: 17.84 kB / 0.6543 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001947/1.84, allocations: 67.53 kB / 0.6543 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/1.84, allocations: 80.17 kB / 0.6544 GB, free: 119.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/1.84, allocations: 38.2 kB / 0.6544 GB, free: 119.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004975/1.845, allocations: 2.304 MB / 0.6567 GB, free: 119.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.422e-06/1.845, allocations: 0 / 0.6567 GB, free: 119.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005583/1.851, allocations: 0.8016 MB / 0.6575 GB, free: 119.4 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.000491/1.851, allocations: 154.6 kB / 0.6576 GB, free: 119.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008927/1.86, allocations: 3.988 MB / 0.6615 GB, free: 119.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.912e-06/1.86, allocations: 0 / 0.6615 GB, free: 119.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002317/1.862, allocations: 1.08 MB / 0.6626 GB, free: 119 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002474/1.865, allocations: 345 kB / 0.6629 GB, free: 119 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01821/1.883, allocations: 8.945 MB / 0.6716 GB, free: 115.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003932/1.887, allocations: 2.823 MB / 0.6744 GB, free: 114.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/1.889, allocations: 256.8 kB / 0.6746 GB, free: 114.9 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/1.889, allocations: 0 / 0.6746 GB, free: 114.9 MB / 474.7 MB Notification: Performance of Templates: time 0.1062/1.995, allocations: 60.69 MB / 0.7339 GB, free: 78.2 MB / 474.7 MB