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.156/2.156, allocations: 234.9 MB / 250.5 MB, free: 10.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004319/0.0004321, allocations: 12 kB / 314.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2784, allocations: 54.87 MB / 369.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1477/0.4261, allocations: 98.45 MB / 467.7 MB, free: 8.262 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4264, allocations: 75.97 kB / 467.8 MB, free: 8.188 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5206/0.9471, allocations: 78.91 MB / 0.5339 GB, free: 38.24 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.151e-06/0.9471, allocations: 0 / 0.5339 GB, free: 38.24 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001812/0.9473, allocations: 68 kB / 0.5339 GB, free: 38.18 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: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01131/0.9586, allocations: 3.763 MB / 0.5376 GB, free: 34.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.9587, allocations: 8.031 kB / 0.5376 GB, free: 34.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02197/0.9807, allocations: 4.324 MB / 0.5419 GB, free: 30 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/0.993, allocations: 4.388 MB / 0.5461 GB, free: 25.55 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003175/0.9934, allocations: 279.3 kB / 0.5464 GB, free: 25.28 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/0.995, allocations: 367.8 kB / 0.5468 GB, free: 24.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01893/1.014, allocations: 9.112 MB / 0.5557 GB, free: 14.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001713/1.014, allocations: 63.39 kB / 0.5557 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000978/1.015, allocations: 187.9 kB / 0.5559 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001326/1.017, allocations: 0.8923 MB / 0.5568 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0158/1.032, allocations: 7.396 MB / 0.564 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05854/1.091, allocations: 42.64 MB / 0.6056 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007618/1.099, allocations: 2.527 MB / 0.6081 GB, free: 7.508 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004849/1.099, allocations: 327.6 kB / 0.6084 GB, free: 7.133 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.382e-05/1.099, allocations: 59.02 kB / 0.6085 GB, free: 7.066 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 5.061e-06/1.099, allocations: 0 / 0.6085 GB, free: 7.066 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.03035/1.13, allocations: 8.9 MB / 0.6172 GB, free: 13.99 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/1.13, allocations: 196.6 kB / 0.6174 GB, free: 13.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008392/1.138, allocations: 3.49 MB / 0.6208 GB, free: 10.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002625/1.138, allocations: 45.69 kB / 0.6208 GB, free: 10.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003344/1.142, allocations: 2.913 MB / 0.6236 GB, free: 7.281 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008616/1.143, allocations: 0.5403 MB / 0.6242 GB, free: 6.734 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005715/1.143, allocations: 116 kB / 0.6243 GB, free: 6.621 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005893/1.144, allocations: 0.5544 MB / 0.6248 GB, free: 6.055 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004077/1.148, allocations: 1.635 MB / 0.6264 GB, free: 4.414 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008066/1.156, allocations: 5.422 MB / 0.6317 GB, free: 13.07 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006495/1.163, allocations: 2.943 MB / 0.6346 GB, free: 10.12 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/1.163, allocations: 40 kB / 0.6346 GB, free: 10.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01791/1.181, allocations: 6.82 MB / 0.6413 GB, free: 3.258 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001254/1.181, allocations: 64 kB / 0.6414 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/1.181, allocations: 136 kB / 0.6415 GB, free: 3.062 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/1.182, allocations: 364.7 kB / 0.6418 GB, free: 2.703 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005611/1.188, allocations: 1.326 MB / 0.6431 GB, free: 1.375 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3032/1.491, allocations: 2.778 MB / 0.6458 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03295/1.524, allocations: 300.5 kB / 0.6461 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002284/1.526, allocations: 365.9 kB / 0.6465 GB, free: 114.5 MB / 474.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 () * Number of clocked 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.009135/1.536, allocations: 1.933 MB / 0.6484 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001438/1.537, allocations: 324.9 kB / 0.6487 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008284/1.545, allocations: 1.586 MB / 0.6502 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.789e-05/1.546, allocations: 17.89 kB / 0.6502 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/1.546, allocations: 3.219 kB / 0.6502 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.681e-05/1.546, allocations: 3.656 kB / 0.6502 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01838/1.564, allocations: 5.244 MB / 0.6554 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/1.564, allocations: 7.125 kB / 0.6554 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/1.565, allocations: 197 kB / 0.6556 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006694/1.566, allocations: 160.9 kB / 0.6557 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/1.566, allocations: 25.53 kB / 0.6557 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002859/1.569, allocations: 2.189 MB / 0.6579 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.569, allocations: 2.906 kB / 0.6579 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006333/1.576, allocations: 3.577 MB / 0.6614 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/1.577, allocations: 0.5211 MB / 0.6619 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006734/1.578, allocations: 26.05 kB / 0.6619 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001833/1.58, allocations: 54.36 kB / 0.662 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/1.58, allocations: 74.89 kB / 0.662 GB, free: 111.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/1.58, allocations: 37.39 kB / 0.6621 GB, free: 111.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005055/1.585, allocations: 2.433 MB / 0.6644 GB, free: 111.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.94e-07/1.585, allocations: 3.719 kB / 0.6644 GB, free: 111.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006639/1.592, allocations: 0.8436 MB / 0.6653 GB, free: 111.5 MB / 474.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 () * 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 (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.0005089/1.592, allocations: 156.8 kB / 0.6654 GB, free: 111.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007729/1.6, allocations: 3.988 MB / 0.6693 GB, free: 111.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.83e-06/1.6, allocations: 2.906 kB / 0.6693 GB, free: 111.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/1.602, allocations: 0.9751 MB / 0.6703 GB, free: 111.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002398/1.604, allocations: 357.6 kB / 0.6706 GB, free: 111.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01755/1.622, allocations: 9.49 MB / 0.6799 GB, free: 106.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005533/1.628, allocations: 3.023 MB / 0.6828 GB, free: 105.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001029/1.629, allocations: 270.8 kB / 0.6831 GB, free: 105.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.629e-06/1.629, allocations: 3.562 kB / 0.6831 GB, free: 105.3 MB / 474.7 MB Notification: Performance of Templates: time 0.09155/1.72, allocations: 64.31 MB / 0.7459 GB, free: 62.95 MB / 474.7 MB