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/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.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.329/2.329, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.437e-05/1.443e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2746, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1489/0.4235, allocations: 97.69 MB / 455.7 MB, free: 13.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4238, allocations: 75.97 kB / 455.8 MB, free: 13.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5197/0.9436, allocations: 77.41 MB / 0.5207 GB, free: 47.94 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.276e-06/0.9436, allocations: 4 kB / 0.5207 GB, free: 47.94 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001722/0.9438, allocations: 71.94 kB / 0.5208 GB, free: 47.87 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.01045/0.9543, allocations: 3.531 MB / 0.5242 GB, free: 44.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.9543, allocations: 12.02 kB / 0.5242 GB, free: 44.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02202/0.9764, allocations: 4.324 MB / 0.5285 GB, free: 39.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01281/0.9892, allocations: 4.361 MB / 0.5327 GB, free: 35.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002304/0.9895, allocations: 116 kB / 0.5328 GB, free: 35.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001569/0.9911, allocations: 212 kB / 0.533 GB, free: 35.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01088/1.002, allocations: 5.219 MB / 0.5381 GB, free: 29.96 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/1.019, allocations: 8.333 MB / 0.5463 GB, free: 20.65 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000194/1.019, allocations: 63.45 kB / 0.5463 GB, free: 20.59 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001217/1.021, allocations: 28 kB / 0.5464 GB, free: 20.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001455/1.022, allocations: 0.8961 MB / 0.5472 GB, free: 19.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05152/1.074, allocations: 40.8 MB / 0.5871 GB, free: 9.605 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004206/1.078, allocations: 2.412 MB / 0.5894 GB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/1.08, allocations: 1.063 MB / 0.5905 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005314/1.08, allocations: 327.7 kB / 0.5908 GB, free: 5.539 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.979e-05/1.081, allocations: 47.12 kB / 0.5908 GB, free: 5.484 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 6.032e-06/1.081, allocations: 3.938 kB / 0.5908 GB, free: 5.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=140): time 0.02674/1.107, allocations: 9.593 MB / 0.6002 GB, free: 11.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/1.108, allocations: 200.6 kB / 0.6004 GB, free: 11.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006948/1.114, allocations: 3.01 MB / 0.6033 GB, free: 8.547 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002417/1.115, allocations: 29.7 kB / 0.6034 GB, free: 8.512 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003227/1.118, allocations: 3.021 MB / 0.6063 GB, free: 5.449 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008749/1.119, allocations: 0.5556 MB / 0.6068 GB, free: 4.887 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004942/1.119, allocations: 0 / 0.6068 GB, free: 4.887 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006011/1.12, allocations: 0.5591 MB / 0.6074 GB, free: 4.316 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003692/1.124, allocations: 1.558 MB / 0.6089 GB, free: 2.754 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007784/1.132, allocations: 5.517 MB / 0.6143 GB, free: 11.22 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006299/1.138, allocations: 2.938 MB / 0.6172 GB, free: 8.281 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.138, allocations: 40 kB / 0.6172 GB, free: 8.242 MB / 458.7 MB Notification: Performance of matching and sorting (n=790) (initialization): time 0.01667/1.155, allocations: 6.205 MB / 0.6233 GB, free: 2.031 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/1.155, allocations: 67.95 kB / 0.6233 GB, free: 1.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002041/1.155, allocations: 144 kB / 0.6235 GB, free: 1.824 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/1.156, allocations: 373.1 kB / 0.6238 GB, free: 1.457 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005928/1.162, allocations: 1.4 MB / 0.6252 GB, free: 56 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2726/1.435, allocations: 2.622 MB / 0.6278 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005682/1.441, allocations: 201.8 kB / 0.6279 GB, free: 106 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001249/1.442, allocations: 387.5 kB / 0.6283 GB, free: 106 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 651 * 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 (755): * Single equations (assignments): 751 * 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.001126/1.443, allocations: 457 kB / 0.6288 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006572/1.444, allocations: 301.5 kB / 0.629 GB, free: 105.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00361/1.447, allocations: 1.547 MB / 0.6306 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.561e-05/1.447, allocations: 16.97 kB / 0.6306 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/1.447, allocations: 2.75 kB / 0.6306 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.43e-05/1.447, allocations: 7.984 kB / 0.6306 GB, free: 105.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/1.459, allocations: 4.717 MB / 0.6352 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/1.459, allocations: 2.281 kB / 0.6352 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/1.46, allocations: 206.5 kB / 0.6354 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006716/1.461, allocations: 155.8 kB / 0.6355 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/1.461, allocations: 14.25 kB / 0.6355 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002542/1.464, allocations: 2.044 MB / 0.6375 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/1.464, allocations: 9.922 kB / 0.6376 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005605/1.469, allocations: 3.502 MB / 0.641 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/1.471, allocations: 0.496 MB / 0.6415 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004817/1.471, allocations: 7.578 kB / 0.6415 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001664/1.473, allocations: 39.73 kB / 0.6415 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/1.473, allocations: 75.16 kB / 0.6416 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/1.473, allocations: 42.36 kB / 0.6416 GB, free: 103.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00402/1.477, allocations: 1.99 MB / 0.6436 GB, free: 103 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.031e-06/1.477, allocations: 2.5 kB / 0.6436 GB, free: 103 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006218/1.484, allocations: 0.718 MB / 0.6443 GB, free: 103 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 (109): * Single equations (assignments): 105 * 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.0004378/1.484, allocations: 142.5 kB / 0.6444 GB, free: 102.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007007/1.491, allocations: 3.769 MB / 0.6481 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.791e-06/1.491, allocations: 0 / 0.6481 GB, free: 102.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001678/1.493, allocations: 0.9606 MB / 0.649 GB, free: 102.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/1.495, allocations: 283.3 kB / 0.6493 GB, free: 102.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/1.51, allocations: 6.623 MB / 0.6558 GB, free: 101.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005088/1.515, allocations: 3.035 MB / 0.6587 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/1.516, allocations: 268.8 kB / 0.659 GB, free: 100.2 MB / 458.7 MB Notification: Performance of SimCode: time 1.906e-06/1.516, allocations: 0 / 0.659 GB, free: 100.2 MB / 458.7 MB Notification: Performance of Templates: time 0.08989/1.606, allocations: 62.57 MB / 0.7201 GB, free: 58.74 MB / 458.7 MB