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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.287/2.287, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.223e-05/2.249e-05, allocations: 0 / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2786, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1513/0.4299, allocations: 98.25 MB / 456.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4302, allocations: 79.94 kB / 456.4 MB, free: 12.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.562/0.9922, allocations: 71.65 MB / 0.5156 GB, free: 53.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.9923, allocations: 0 / 0.5156 GB, free: 53.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001431/0.9924, allocations: 64 kB / 0.5157 GB, free: 53.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.009063/1.002, allocations: 3.259 MB / 0.5189 GB, free: 49.8 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/1.002, allocations: 12.03 kB / 0.5189 GB, free: 49.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02092/1.023, allocations: 4.239 MB / 0.523 GB, free: 45.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01174/1.034, allocations: 4.2 MB / 0.5271 GB, free: 41.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/1.034, allocations: 104 kB / 0.5272 GB, free: 41.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001165/1.036, allocations: 188 kB / 0.5274 GB, free: 41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009024/1.045, allocations: 4.67 MB / 0.532 GB, free: 36.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/1.058, allocations: 7.583 MB / 0.5394 GB, free: 27.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001569/1.059, allocations: 59.47 kB / 0.5394 GB, free: 27.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005824/1.059, allocations: 28 kB / 0.5395 GB, free: 27.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001114/1.06, allocations: 0.8056 MB / 0.5402 GB, free: 26.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04187/1.102, allocations: 38.12 MB / 0.5775 GB, free: 3.586 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003828/1.106, allocations: 2.328 MB / 0.5797 GB, free: 1.055 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002013/1.108, allocations: 1.059 MB / 0.5808 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005261/1.109, allocations: 327.8 kB / 0.5811 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.276e-05/1.109, allocations: 47.11 kB / 0.5811 GB, free: 15.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=120): time 7.646e-06/1.109, allocations: 4 kB / 0.5811 GB, free: 15.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.03172/1.14, allocations: 10.48 MB / 0.5914 GB, free: 4.941 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001418/1.141, allocations: 200.6 kB / 0.5916 GB, free: 4.703 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006594/1.147, allocations: 2.789 MB / 0.5943 GB, free: 1.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002682/1.148, allocations: 29.7 kB / 0.5943 GB, free: 1.875 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003052/1.151, allocations: 2.727 MB / 0.597 GB, free: 15.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009477/1.152, allocations: 0.5708 MB / 0.5975 GB, free: 14.53 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000512/1.152, allocations: 0 / 0.5975 GB, free: 14.53 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005943/1.153, allocations: 0.5503 MB / 0.5981 GB, free: 13.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003765/1.157, allocations: 1.553 MB / 0.5996 GB, free: 12.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007577/1.164, allocations: 5.109 MB / 0.6046 GB, free: 5.492 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006271/1.17, allocations: 2.833 MB / 0.6073 GB, free: 2.656 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/1.171, allocations: 36 kB / 0.6074 GB, free: 2.621 MB / 442.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01621/1.187, allocations: 5.934 MB / 0.6132 GB, free: 12.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/1.187, allocations: 67.92 kB / 0.6132 GB, free: 12.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001886/1.187, allocations: 128 kB / 0.6134 GB, free: 12.49 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/1.188, allocations: 349 kB / 0.6137 GB, free: 12.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005667/1.194, allocations: 1.314 MB / 0.615 GB, free: 10.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004254/1.198, allocations: 2.59 MB / 0.6175 GB, free: 8.125 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005242/1.204, allocations: 191.5 kB / 0.6177 GB, free: 7.938 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/1.205, allocations: 348 kB / 0.618 GB, free: 7.598 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (700): * Single equations (assignments): 696 * 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.001083/1.206, allocations: 423.9 kB / 0.6184 GB, free: 7.176 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007364/1.207, allocations: 288.5 kB / 0.6187 GB, free: 6.891 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004194/1.211, allocations: 1.661 MB / 0.6203 GB, free: 5.211 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.964e-05/1.211, allocations: 19.94 kB / 0.6203 GB, free: 5.191 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.751e-06/1.211, allocations: 4 kB / 0.6203 GB, free: 5.188 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.446e-05/1.211, allocations: 3.984 kB / 0.6204 GB, free: 5.184 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2834/1.495, allocations: 5.125 MB / 0.6254 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.473e-05/1.495, allocations: 3.203 kB / 0.6254 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/1.496, allocations: 236.8 kB / 0.6256 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007611/1.497, allocations: 154.4 kB / 0.6257 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001798/1.497, allocations: 8.812 kB / 0.6257 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/1.5, allocations: 2.051 MB / 0.6277 GB, free: 111.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.501e-06/1.5, allocations: 6.125 kB / 0.6278 GB, free: 111.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007146/1.507, allocations: 3.754 MB / 0.6314 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/1.509, allocations: 0.4983 MB / 0.6319 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004031/1.509, allocations: 7.688 kB / 0.6319 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/1.511, allocations: 50.56 kB / 0.632 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/1.511, allocations: 78.86 kB / 0.632 GB, free: 110.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001367/1.511, allocations: 45.19 kB / 0.6321 GB, free: 110.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003689/1.515, allocations: 1.852 MB / 0.6339 GB, free: 110.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.45e-07/1.515, allocations: 0 / 0.6339 GB, free: 110.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005831/1.521, allocations: 0.6907 MB / 0.6346 GB, free: 110.5 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 117 * 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.0004332/1.521, allocations: 135.2 kB / 0.6347 GB, free: 110.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007123/1.528, allocations: 3.767 MB / 0.6384 GB, free: 110.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.25e-06/1.528, allocations: 5.594 kB / 0.6384 GB, free: 110.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001782/1.53, allocations: 1.063 MB / 0.6394 GB, free: 110.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/1.532, allocations: 283.5 kB / 0.6397 GB, free: 110.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/1.546, allocations: 6.276 MB / 0.6458 GB, free: 109 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004831/1.551, allocations: 2.835 MB / 0.6486 GB, free: 108.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/1.552, allocations: 256.4 kB / 0.6488 GB, free: 108.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.792e-06/1.552, allocations: 0 / 0.6488 GB, free: 108.2 MB / 458.7 MB Notification: Performance of Templates: time 0.08702/1.639, allocations: 59.04 MB / 0.7065 GB, free: 74.3 MB / 458.7 MB