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.Distance2.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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 2.251/2.251, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.328e-05/5.347e-05, allocations: 7.984 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3691, allocations: 54.86 MB / 364.5 MB, free: 5.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.5217, allocations: 98.36 MB / 462.9 MB, free: 14.07 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.522, allocations: 71.97 kB / 463 MB, free: 14 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5767/1.099, allocations: 78.95 MB / 0.5292 GB, free: 106.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.386e-06/1.099, allocations: 0 / 0.5292 GB, free: 106.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002133/1.099, allocations: 69.47 kB / 0.5293 GB, free: 106.4 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01142/1.11, allocations: 3.533 MB / 0.5327 GB, free: 105.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/1.111, allocations: 9.391 kB / 0.5327 GB, free: 105.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02313/1.134, allocations: 4.326 MB / 0.537 GB, free: 105.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/1.147, allocations: 4.363 MB / 0.5412 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/1.148, allocations: 280.2 kB / 0.5415 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001645/1.149, allocations: 366.3 kB / 0.5418 GB, free: 105 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01973/1.169, allocations: 9.039 MB / 0.5507 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001874/1.169, allocations: 55.75 kB / 0.5507 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001051/1.17, allocations: 188.6 kB / 0.5509 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001362/1.172, allocations: 0.8992 MB / 0.5518 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01522/1.187, allocations: 7.247 MB / 0.5589 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/1.232, allocations: 42.66 MB / 0.6005 GB, free: 69.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005861/1.238, allocations: 2.499 MB / 0.603 GB, free: 68.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/1.24, allocations: 1.057 MB / 0.604 GB, free: 67.75 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003741/1.24, allocations: 327 kB / 0.6043 GB, free: 67.45 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/1.241, allocations: 50.44 kB / 0.6044 GB, free: 67.4 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 5.497e-06/1.241, allocations: 0 / 0.6044 GB, free: 67.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.02249/1.263, allocations: 7.474 MB / 0.6117 GB, free: 63.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/1.263, allocations: 194 kB / 0.6118 GB, free: 63.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006382/1.27, allocations: 3.46 MB / 0.6152 GB, free: 62.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002231/1.27, allocations: 40.83 kB / 0.6153 GB, free: 62.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/1.272, allocations: 2.912 MB / 0.6181 GB, free: 60.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005796/1.272, allocations: 0.5443 MB / 0.6186 GB, free: 59.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003494/1.273, allocations: 113.8 kB / 0.6187 GB, free: 59.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003395/1.273, allocations: 0.5583 MB / 0.6193 GB, free: 59.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003114/1.276, allocations: 1.592 MB / 0.6208 GB, free: 58.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00523/1.281, allocations: 5.382 MB / 0.6261 GB, free: 52.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005168/1.287, allocations: 2.938 MB / 0.629 GB, free: 49.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001061/1.287, allocations: 36 kB / 0.629 GB, free: 49.79 MB / 458.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01466/1.301, allocations: 6.726 MB / 0.6356 GB, free: 43.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001067/1.302, allocations: 66.81 kB / 0.6356 GB, free: 43.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001424/1.302, allocations: 136 kB / 0.6358 GB, free: 43.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009326/1.303, allocations: 372 kB / 0.6361 GB, free: 43.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005037/1.308, allocations: 1.326 MB / 0.6374 GB, free: 42.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003421/1.311, allocations: 2.731 MB / 0.6401 GB, free: 39.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005607/1.317, allocations: 298.8 kB / 0.6404 GB, free: 39.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000921/1.318, allocations: 375.1 kB / 0.6407 GB, free: 38.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 711 * 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.0008425/1.319, allocations: 0.555 MB / 0.6413 GB, free: 38.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006721/1.319, allocations: 323.7 kB / 0.6416 GB, free: 38.02 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00324/1.323, allocations: 1.561 MB / 0.6431 GB, free: 36.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.237e-05/1.323, allocations: 16.11 kB / 0.6431 GB, free: 36.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/1.323, allocations: 3.938 kB / 0.6431 GB, free: 36.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/1.323, allocations: 7.422 kB / 0.6431 GB, free: 36.67 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/1.334, allocations: 5.208 MB / 0.6482 GB, free: 32.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/1.334, allocations: 4 kB / 0.6482 GB, free: 32.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/1.336, allocations: 193.2 kB / 0.6484 GB, free: 32.22 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006145/1.336, allocations: 159.2 kB / 0.6485 GB, free: 32.11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/1.337, allocations: 23.42 kB / 0.6486 GB, free: 32.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002537/1.339, allocations: 2.15 MB / 0.6507 GB, free: 29.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.339, allocations: 0 / 0.6507 GB, free: 29.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005319/1.344, allocations: 3.514 MB / 0.6541 GB, free: 26.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001541/1.346, allocations: 0.5296 MB / 0.6546 GB, free: 26.21 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005084/1.347, allocations: 20 kB / 0.6546 GB, free: 26.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/1.348, allocations: 58 kB / 0.6547 GB, free: 26.16 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002082/1.348, allocations: 80.44 kB / 0.6548 GB, free: 26.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/1.348, allocations: 35.75 kB / 0.6548 GB, free: 26.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004465/1.353, allocations: 2.4 MB / 0.6571 GB, free: 23.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.419e-06/1.353, allocations: 4 kB / 0.6572 GB, free: 23.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005925/1.359, allocations: 0.8474 MB / 0.658 GB, free: 23.12 MB / 458.7 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 () * 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 (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.000395/1.359, allocations: 154.9 kB / 0.6581 GB, free: 22.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007362/1.367, allocations: 3.912 MB / 0.6619 GB, free: 19.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.541e-06/1.367, allocations: 4 kB / 0.662 GB, free: 19.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/1.368, allocations: 0.9635 MB / 0.6629 GB, free: 18.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/1.371, allocations: 359.5 kB / 0.6632 GB, free: 18.18 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/1.386, allocations: 6.631 MB / 0.6697 GB, free: 12.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005135/1.391, allocations: 3.031 MB / 0.6727 GB, free: 9.082 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009766/1.392, allocations: 275.4 kB / 0.6729 GB, free: 8.812 MB / 458.7 MB Notification: Performance of SimCode: time 1.838e-06/1.392, allocations: 0 / 0.6729 GB, free: 8.812 MB / 458.7 MB Notification: Performance of Templates: time 0.4312/1.823, allocations: 64.29 MB / 0.7357 GB, free: 106.7 MB / 490.7 MB