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.214/2.214, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004352/0.0004353, allocations: 12 kB / 314.3 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2756, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05202/0.3276, allocations: 33.99 MB / 403.2 MB, free: 8.633 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0212/0.3489, allocations: 8.564 MB / 411.7 MB, free: 44 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006177/0.3551, allocations: 159.7 kB / 411.9 MB, free: 15.88 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00531/0.3604, allocations: 1.699 MB / 413.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01628/0.3768, allocations: 5.03 MB / 418.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.3791, allocations: 0.4914 MB / 419.1 MB, free: 8.645 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01997/0.3991, allocations: 9.411 MB / 428.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005442/0.4046, allocations: 3.012 MB / 431.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001536/0.4062, allocations: 0.8875 MB / 432.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001935/0.4081, allocations: 1.258 MB / 433.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004209/0.4085, allocations: 128 kB / 433.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002062/0.4106, allocations: 0.9441 MB / 434.7 MB, free: 8.938 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001694/0.4123, allocations: 1.403 MB / 436.1 MB, free: 7.531 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009267/0.4133, allocations: 0.7376 MB / 436.9 MB, free: 6.785 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007189/0.4205, allocations: 5.031 MB / 441.9 MB, free: 1.742 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.548e-06/0.4205, allocations: 0 / 441.9 MB, free: 1.742 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4205, allocations: 4 kB / 441.9 MB, free: 1.738 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001037/0.4207, allocations: 4 kB / 441.9 MB, free: 1.734 MB / 362.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.01011/0.4308, allocations: 3.688 MB / 445.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.4308, allocations: 12.03 kB / 445.6 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09492/0.5258, allocations: 8.312 MB / 453.9 MB, free: 5.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007195/0.533, allocations: 2.564 MB / 456.5 MB, free: 3.012 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.5333, allocations: 200.9 kB / 456.7 MB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009323/0.5343, allocations: 255.8 kB / 456.9 MB, free: 2.562 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/0.5523, allocations: 8.744 MB / 465.7 MB, free: 9.168 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.5525, allocations: 43.58 kB / 465.7 MB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004955/0.553, allocations: 127.9 kB / 465.9 MB, free: 9 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003615/0.5566, allocations: 1.774 MB / 467.6 MB, free: 7.219 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2684/0.825, allocations: 7.352 MB / 475 MB, free: 88.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04313/0.8682, allocations: 33.96 MB / 0.497 GB, free: 63.85 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006045/0.8742, allocations: 2.521 MB / 0.4995 GB, free: 62.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003764/0.8747, allocations: 331 kB / 0.4998 GB, free: 61.94 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.8747, allocations: 51.06 kB / 0.4998 GB, free: 61.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 5.357e-06/0.8747, allocations: 0 / 0.4998 GB, free: 61.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.0272/0.9019, allocations: 9.182 MB / 0.5088 GB, free: 53.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.902, allocations: 200.5 kB / 0.509 GB, free: 53.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005883/0.9079, allocations: 4.05 MB / 0.513 GB, free: 49.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002103/0.9082, allocations: 41.7 kB / 0.513 GB, free: 49.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/0.9098, allocations: 2.899 MB / 0.5158 GB, free: 46.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005194/0.9104, allocations: 0.5467 MB / 0.5164 GB, free: 45.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/0.9107, allocations: 113.2 kB / 0.5165 GB, free: 45.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002971/0.911, allocations: 0.5563 MB / 0.517 GB, free: 45.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002932/0.9139, allocations: 1.67 MB / 0.5186 GB, free: 43.49 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004718/0.9187, allocations: 5.463 MB / 0.524 GB, free: 36.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005184/0.9239, allocations: 2.973 MB / 0.5269 GB, free: 33.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-05/0.924, allocations: 36 kB / 0.5269 GB, free: 33.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=748) (initialization): time 0.01382/0.9378, allocations: 6.912 MB / 0.5337 GB, free: 26.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.938, allocations: 61.25 kB / 0.5337 GB, free: 26.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/0.9381, allocations: 136.9 kB / 0.5339 GB, free: 25.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.9392, allocations: 432.6 kB / 0.5343 GB, free: 25.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004567/0.9438, allocations: 1.322 MB / 0.5356 GB, free: 24.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004015/0.9478, allocations: 3.17 MB / 0.5387 GB, free: 20.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004837/0.9527, allocations: 300.2 kB / 0.5389 GB, free: 20.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006636/0.9534, allocations: 369.9 kB / 0.5393 GB, free: 20.28 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * 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 (713): * Single equations (assignments): 709 * 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.003189/0.9566, allocations: 1.932 MB / 0.5412 GB, free: 18.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006041/0.9572, allocations: 327.7 kB / 0.5415 GB, free: 18.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003426/0.9607, allocations: 1.694 MB / 0.5431 GB, free: 16.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.495e-05/0.9607, allocations: 16.7 kB / 0.5432 GB, free: 16.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.9608, allocations: 12 kB / 0.5432 GB, free: 16.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.9608, allocations: 11.91 kB / 0.5432 GB, free: 16.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.9716, allocations: 5.435 MB / 0.5485 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.9716, allocations: 4 kB / 0.5485 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.9727, allocations: 187.8 kB / 0.5487 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007969/0.9736, allocations: 224.7 kB / 0.5489 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.9737, allocations: 28.69 kB / 0.5489 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003055/0.9768, allocations: 2.565 MB / 0.5514 GB, free: 7.645 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.967e-06/0.9768, allocations: 12.05 kB / 0.5514 GB, free: 7.633 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005596/0.9824, allocations: 3.519 MB / 0.5549 GB, free: 4.074 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.9837, allocations: 0.5318 MB / 0.5554 GB, free: 3.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004425/0.9842, allocations: 23.98 kB / 0.5554 GB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.9856, allocations: 61.34 kB / 0.5555 GB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.9859, allocations: 72.41 kB / 0.5555 GB, free: 3.367 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.986, allocations: 43.69 kB / 0.5556 GB, free: 3.328 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004363/0.9904, allocations: 2.542 MB / 0.5581 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.19e-06/0.9904, allocations: 0 / 0.5581 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005405/0.9958, allocations: 0.8724 MB / 0.5589 GB, free: 15.93 MB / 410.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.0004874/0.9963, allocations: 165.3 kB / 0.5591 GB, free: 15.77 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008961/1.005, allocations: 4.059 MB / 0.563 GB, free: 11.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.377e-05/1.005, allocations: 0 / 0.563 GB, free: 11.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/1.007, allocations: 1.009 MB / 0.564 GB, free: 10.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002084/1.01, allocations: 355.3 kB / 0.5644 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01897/1.029, allocations: 9.583 MB / 0.5737 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005586/1.034, allocations: 3.026 MB / 0.5767 GB, free: 13.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001088/1.035, allocations: 267.4 kB / 0.5769 GB, free: 13.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.666e-06/1.035, allocations: 0 / 0.5769 GB, free: 13.41 MB / 426.7 MB Notification: Performance of Templates: time 0.3708/1.406, allocations: 64.99 MB / 0.6404 GB, free: 155.3 MB / 474.7 MB