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.Distance2.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.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.382/2.382, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.000434, allocations: 16 kB / 314.9 MB, free: 9.742 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4126, allocations: 54.85 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.185/0.5977, allocations: 98.44 MB / 468.2 MB, free: 10.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002989/0.598, allocations: 79.97 kB / 468.3 MB, free: 10.15 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6555/1.254, allocations: 79.38 MB / 0.5349 GB, free: 99.22 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.254, allocations: 0 / 0.5349 GB, free: 99.22 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001921/1.254, allocations: 68 kB / 0.5349 GB, free: 99.16 MB / 426.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.01418/1.268, allocations: 3.767 MB / 0.5386 GB, free: 95.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/1.268, allocations: 12.03 kB / 0.5386 GB, free: 95.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03199/1.3, allocations: 4.316 MB / 0.5428 GB, free: 91.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/1.317, allocations: 4.382 MB / 0.5471 GB, free: 86.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/1.317, allocations: 280.3 kB / 0.5474 GB, free: 86.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002134/1.319, allocations: 370.8 kB / 0.5477 GB, free: 86.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02409/1.343, allocations: 9.139 MB / 0.5567 GB, free: 76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002282/1.344, allocations: 55.5 kB / 0.5567 GB, free: 75.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001495/1.345, allocations: 185.8 kB / 0.5569 GB, free: 75.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00196/1.347, allocations: 0.8962 MB / 0.5578 GB, free: 74.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02041/1.367, allocations: 7.403 MB / 0.565 GB, free: 67.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05598/1.424, allocations: 42.65 MB / 0.6066 GB, free: 23.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007943/1.432, allocations: 2.511 MB / 0.6091 GB, free: 20.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004732/1.432, allocations: 330.3 kB / 0.6094 GB, free: 20.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/1.432, allocations: 47.06 kB / 0.6095 GB, free: 20.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.882e-06/1.432, allocations: 4 kB / 0.6095 GB, free: 20.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.03666/1.469, allocations: 9.113 MB / 0.6184 GB, free: 11.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/1.469, allocations: 196.5 kB / 0.6185 GB, free: 10.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008765/1.478, allocations: 3.906 MB / 0.6224 GB, free: 7.098 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003198/1.478, allocations: 48.83 kB / 0.6224 GB, free: 7.047 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002535/1.481, allocations: 2.906 MB / 0.6252 GB, free: 4.137 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007302/1.481, allocations: 0.5442 MB / 0.6258 GB, free: 3.586 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005582/1.482, allocations: 112.2 kB / 0.6259 GB, free: 3.477 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003444/1.482, allocations: 0.5544 MB / 0.6264 GB, free: 2.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004227/1.487, allocations: 1.647 MB / 0.628 GB, free: 1.258 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008592/1.495, allocations: 5.45 MB / 0.6333 GB, free: 9.887 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007826/1.503, allocations: 2.94 MB / 0.6362 GB, free: 6.941 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001478/1.503, allocations: 36 kB / 0.6363 GB, free: 6.906 MB / 442.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02018/1.524, allocations: 6.814 MB / 0.6429 GB, free: 88 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/1.524, allocations: 65 kB / 0.643 GB, free: 24 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002644/1.524, allocations: 143.9 kB / 0.6431 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/1.525, allocations: 368.6 kB / 0.6435 GB, free: 15.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008089/1.533, allocations: 1.326 MB / 0.6448 GB, free: 14.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/1.539, allocations: 2.778 MB / 0.6475 GB, free: 11.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006173/1.545, allocations: 303.4 kB / 0.6478 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001257/1.546, allocations: 364 kB / 0.6481 GB, free: 10.62 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 () * 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.005893/1.552, allocations: 1.931 MB / 0.65 GB, free: 8.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008887/1.553, allocations: 331.7 kB / 0.6503 GB, free: 8.352 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005461/1.559, allocations: 1.585 MB / 0.6519 GB, free: 6.746 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.947e-05/1.559, allocations: 16 kB / 0.6519 GB, free: 6.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.779e-05/1.559, allocations: 7.984 kB / 0.6519 GB, free: 6.723 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/1.559, allocations: 3.984 kB / 0.6519 GB, free: 6.719 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/1.576, allocations: 5.241 MB / 0.657 GB, free: 1.402 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.672e-05/1.576, allocations: 0 / 0.657 GB, free: 1.402 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001923/1.578, allocations: 187.8 kB / 0.6572 GB, free: 1.219 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008995/1.579, allocations: 164.8 kB / 0.6573 GB, free: 1.055 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002806/1.579, allocations: 24 kB / 0.6574 GB, free: 1.031 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/1.583, allocations: 2.202 MB / 0.6595 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/1.583, allocations: 4 kB / 0.6595 GB, free: 14.69 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008752/1.592, allocations: 3.369 MB / 0.6628 GB, free: 11.28 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001994/1.594, allocations: 0.5239 MB / 0.6633 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007113/1.595, allocations: 20 kB / 0.6633 GB, free: 10.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001966/1.597, allocations: 60 kB / 0.6634 GB, free: 10.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002744/1.597, allocations: 72.36 kB / 0.6635 GB, free: 10.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/1.597, allocations: 39.98 kB / 0.6635 GB, free: 10.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007171/1.604, allocations: 2.433 MB / 0.6659 GB, free: 8.129 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.604, allocations: 0 / 0.6659 GB, free: 8.129 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006649/1.611, allocations: 0.8515 MB / 0.6667 GB, free: 7.277 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.0005538/1.611, allocations: 151 kB / 0.6668 GB, free: 7.121 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01084/1.622, allocations: 3.983 MB / 0.6707 GB, free: 3.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.622, allocations: 0 / 0.6707 GB, free: 3.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002591/1.625, allocations: 0.978 MB / 0.6717 GB, free: 2.172 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/1.628, allocations: 363.2 kB / 0.672 GB, free: 1.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3733/2.001, allocations: 9.525 MB / 0.6813 GB, free: 129.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009593/2.011, allocations: 3.025 MB / 0.6843 GB, free: 128.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/2.013, allocations: 272.1 kB / 0.6846 GB, free: 128.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.894e-06/2.013, allocations: 0 / 0.6846 GB, free: 128.4 MB / 474.7 MB Notification: Performance of Templates: time 0.183/2.196, allocations: 64.31 MB / 0.7474 GB, free: 90.29 MB / 474.7 MB