Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 1.851/1.851, allocations: 209.2 MB / 225.4 MB, free: 0.7656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000432/0.000432, allocations: 11.98 kB / 283.1 MB, free: 9.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1012, allocations: 48.71 MB / 331.8 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4433/0.5445, allocations: 92.18 MB / 424 MB, free: 8.973 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.5449, allocations: 80.47 kB / 424.1 MB, free: 8.895 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6166/1.162, allocations: 73.37 MB / 497.4 MB, free: 90.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.162, allocations: 1.156 kB / 497.4 MB, free: 90.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002168/1.162, allocations: 62.98 kB / 497.5 MB, free: 90.59 MB / 410.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.01963/1.181, allocations: 3.492 MB / 0.4892 GB, free: 89.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/1.182, allocations: 9.281 kB / 0.4893 GB, free: 89.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03742/1.219, allocations: 4.242 MB / 0.4934 GB, free: 89.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01706/1.236, allocations: 4.225 MB / 0.4975 GB, free: 89.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004048/1.237, allocations: 255.3 kB / 0.4978 GB, free: 89.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002014/1.239, allocations: 329.8 kB / 0.4981 GB, free: 89.24 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02442/1.263, allocations: 8.305 MB / 0.5062 GB, free: 86.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003287/1.263, allocations: 54.06 kB / 0.5062 GB, free: 86.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001634/1.265, allocations: 166.1 kB / 0.5064 GB, free: 86.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002056/1.267, allocations: 0.814 MB / 0.5072 GB, free: 86.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01949/1.287, allocations: 6.701 MB / 0.5137 GB, free: 86.64 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05365/1.34, allocations: 39.77 MB / 0.5526 GB, free: 56.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00759/1.348, allocations: 2.269 MB / 0.5548 GB, free: 54.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005506/1.349, allocations: 325.6 kB / 0.5551 GB, free: 54.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.863e-05/1.349, allocations: 46.28 kB / 0.5551 GB, free: 54.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 5.16e-06/1.349, allocations: 2.344 kB / 0.5551 GB, free: 54.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.05958/1.408, allocations: 11.57 MB / 0.5665 GB, free: 49.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.761e-05/1.409, allocations: 196.4 kB / 0.5666 GB, free: 49.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008275/1.417, allocations: 3.681 MB / 0.5702 GB, free: 48.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003604/1.417, allocations: 48.09 kB / 0.5703 GB, free: 48.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002391/1.42, allocations: 2.633 MB / 0.5728 GB, free: 46.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008648/1.421, allocations: 0.5577 MB / 0.5734 GB, free: 45.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004823/1.421, allocations: 105.7 kB / 0.5735 GB, free: 45.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003246/1.421, allocations: 0.5345 MB / 0.574 GB, free: 45.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004028/1.425, allocations: 1.643 MB / 0.5756 GB, free: 44.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006221/1.432, allocations: 5.067 MB / 0.5806 GB, free: 39.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00632/1.438, allocations: 2.843 MB / 0.5833 GB, free: 37.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/1.438, allocations: 39.47 kB / 0.5834 GB, free: 37.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01681/1.455, allocations: 6.537 MB / 0.5898 GB, free: 31.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/1.455, allocations: 60 kB / 0.5898 GB, free: 31.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002004/1.455, allocations: 124 kB / 0.5899 GB, free: 31.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/1.457, allocations: 346.3 kB / 0.5903 GB, free: 31.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007362/1.464, allocations: 1.242 MB / 0.5915 GB, free: 29.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004292/1.468, allocations: 2.757 MB / 0.5942 GB, free: 27.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005897/1.474, allocations: 284.3 kB / 0.5944 GB, free: 27.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00111/1.475, allocations: 332.7 kB / 0.5948 GB, free: 26.77 MB / 410.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.004362/1.48, allocations: 1.772 MB / 0.5965 GB, free: 25.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008278/1.481, allocations: 308 kB / 0.5968 GB, free: 24.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005163/1.486, allocations: 1.744 MB / 0.5985 GB, free: 23.42 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.866e-05/1.486, allocations: 17.17 kB / 0.5985 GB, free: 23.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/1.486, allocations: 4 kB / 0.5985 GB, free: 23.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/1.486, allocations: 7.453 kB / 0.5985 GB, free: 23.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/1.501, allocations: 5.398 MB / 0.6038 GB, free: 18.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/1.501, allocations: 0 / 0.6038 GB, free: 18.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002115/1.503, allocations: 220.1 kB / 0.604 GB, free: 18.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007877/1.504, allocations: 161.3 kB / 0.6042 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/1.504, allocations: 23.94 kB / 0.6042 GB, free: 18.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003162/1.507, allocations: 2.205 MB / 0.6063 GB, free: 16.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.507, allocations: 0 / 0.6063 GB, free: 16.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008049/1.515, allocations: 3.7 MB / 0.6099 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002705/1.518, allocations: 0.5397 MB / 0.6105 GB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001639/1.52, allocations: 24.06 kB / 0.6105 GB, free: 12.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004746/1.524, allocations: 71.91 kB / 0.6106 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006733/1.525, allocations: 72.5 kB / 0.6106 GB, free: 12.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002246/1.525, allocations: 41.62 kB / 0.6107 GB, free: 12.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.008367/1.534, allocations: 2.298 MB / 0.6129 GB, free: 10.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.713e-06/1.534, allocations: 0 / 0.6129 GB, free: 10.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008713/1.543, allocations: 0.7977 MB / 0.6137 GB, free: 9.293 MB / 410.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.0008549/1.543, allocations: 164.8 kB / 0.6139 GB, free: 9.133 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01205/1.556, allocations: 3.986 MB / 0.6177 GB, free: 5.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/1.556, allocations: 4 kB / 0.6177 GB, free: 5.156 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002472/1.558, allocations: 1.078 MB / 0.6188 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002902/1.561, allocations: 345.6 kB / 0.6191 GB, free: 3.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02136/1.582, allocations: 8.946 MB / 0.6279 GB, free: 10.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005833/1.588, allocations: 2.823 MB / 0.6306 GB, free: 7.918 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0015/1.59, allocations: 263.4 kB / 0.6309 GB, free: 7.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.153e-06/1.59, allocations: 0 / 0.6309 GB, free: 7.66 MB / 426.7 MB Notification: Performance of Templates: time 0.4181/2.008, allocations: 60.67 MB / 0.6901 GB, free: 105.6 MB / 442.7 MB