Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.793/1.793, allocations: 209.2 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004422/0.0004424, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2983, allocations: 48.7 MB / 331.3 MB, free: 6.465 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1466/0.445, allocations: 92.2 MB / 423.5 MB, free: 2.199 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000349/0.4454, allocations: 79.95 kB / 423.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5538/0.9992, allocations: 72.89 MB / 496.4 MB, free: 92.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.582e-06/0.9993, allocations: 0 / 496.4 MB, free: 92.23 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.9994, allocations: 62.97 kB / 496.5 MB, free: 92.23 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: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.009722/1.009, allocations: 3.496 MB / 500 MB, free: 90.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/1.009, allocations: 17.62 kB / 0.4883 GB, free: 90.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02241/1.032, allocations: 4.234 MB / 0.4924 GB, free: 90.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01267/1.044, allocations: 4.229 MB / 0.4966 GB, free: 89.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002613/1.045, allocations: 248.2 kB / 0.4968 GB, free: 89.81 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001349/1.046, allocations: 333 kB / 0.4971 GB, free: 89.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01648/1.063, allocations: 8.283 MB / 0.5052 GB, free: 85.32 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001616/1.063, allocations: 53.72 kB / 0.5052 GB, free: 85.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006861/1.063, allocations: 170.4 kB / 0.5054 GB, free: 85.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001206/1.065, allocations: 0.8168 MB / 0.5062 GB, free: 84.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01542/1.08, allocations: 6.692 MB / 0.5127 GB, free: 81.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03879/1.119, allocations: 39.77 MB / 0.5516 GB, free: 40.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005653/1.125, allocations: 2.285 MB / 0.5538 GB, free: 38.09 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003809/1.125, allocations: 323.5 kB / 0.5541 GB, free: 37.72 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/1.125, allocations: 47.06 kB / 0.5542 GB, free: 37.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 5.317e-06/1.125, allocations: 0 / 0.5542 GB, free: 37.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.03932/1.164, allocations: 11.37 MB / 0.5653 GB, free: 26.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.286e-05/1.165, allocations: 200.5 kB / 0.5655 GB, free: 25.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005959/1.171, allocations: 3.288 MB / 0.5687 GB, free: 22.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002365/1.171, allocations: 45.7 kB / 0.5687 GB, free: 22.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001681/1.173, allocations: 2.632 MB / 0.5713 GB, free: 19.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005743/1.173, allocations: 0.5581 MB / 0.5718 GB, free: 19.35 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/1.173, allocations: 104 kB / 0.5719 GB, free: 19.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003056/1.174, allocations: 0.5379 MB / 0.5725 GB, free: 18.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003091/1.177, allocations: 1.634 MB / 0.574 GB, free: 17.06 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00499/1.182, allocations: 5.051 MB / 0.579 GB, free: 10.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004861/1.187, allocations: 2.853 MB / 0.5818 GB, free: 7.426 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.276e-05/1.187, allocations: 32 kB / 0.5818 GB, free: 7.395 MB / 394.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.0139/1.201, allocations: 6.528 MB / 0.5882 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.17e-05/1.201, allocations: 60.09 kB / 0.5882 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001294/1.201, allocations: 125.8 kB / 0.5883 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008893/1.202, allocations: 353.3 kB / 0.5887 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005455/1.208, allocations: 1.232 MB / 0.5899 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004652/1.212, allocations: 2.761 MB / 0.5926 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005175/1.217, allocations: 291.3 kB / 0.5929 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/1.218, allocations: 332 kB / 0.5932 GB, free: 11.61 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.004478/1.223, allocations: 1.78 MB / 0.5949 GB, free: 9.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008132/1.224, allocations: 308 kB / 0.5952 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004652/1.228, allocations: 1.731 MB / 0.5969 GB, free: 7.766 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.841e-05/1.229, allocations: 19.95 kB / 0.5969 GB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/1.229, allocations: 8 kB / 0.5969 GB, free: 7.738 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/1.229, allocations: 3.984 kB / 0.5969 GB, free: 7.734 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/1.243, allocations: 5.4 MB / 0.6022 GB, free: 2.281 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.297e-05/1.243, allocations: 4 kB / 0.6022 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/1.245, allocations: 215.7 kB / 0.6024 GB, free: 2.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007137/1.246, allocations: 160.8 kB / 0.6026 GB, free: 1.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/1.246, allocations: 20 kB / 0.6026 GB, free: 1.887 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003545/1.249, allocations: 2.205 MB / 0.6047 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/1.249, allocations: 4 kB / 0.6047 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008051/1.257, allocations: 3.824 MB / 0.6085 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/1.259, allocations: 0.5281 MB / 0.609 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001024/1.26, allocations: 27.98 kB / 0.609 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002575/1.263, allocations: 67.98 kB / 0.6091 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/1.263, allocations: 72.5 kB / 0.6092 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001482/1.263, allocations: 39.98 kB / 0.6092 GB, free: 10.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005822/1.269, allocations: 2.298 MB / 0.6114 GB, free: 8.629 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.365e-06/1.269, allocations: 0 / 0.6114 GB, free: 8.629 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006222/1.275, allocations: 0.8083 MB / 0.6122 GB, free: 7.824 MB / 426.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.0005322/1.276, allocations: 154.9 kB / 0.6124 GB, free: 7.664 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009506/1.286, allocations: 3.987 MB / 0.6163 GB, free: 3.691 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/1.286, allocations: 8 kB / 0.6163 GB, free: 3.684 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002416/1.288, allocations: 1.08 MB / 0.6173 GB, free: 2.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002355/1.29, allocations: 345.4 kB / 0.6177 GB, free: 2.258 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2553/1.546, allocations: 8.905 MB / 0.6264 GB, free: 108.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005463/1.551, allocations: 2.83 MB / 0.6291 GB, free: 107.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/1.553, allocations: 257.9 kB / 0.6294 GB, free: 107.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.714e-06/1.553, allocations: 3.375 kB / 0.6294 GB, free: 107.8 MB / 426.7 MB Notification: Performance of Templates: time 0.08952/1.642, allocations: 60.68 MB / 0.6886 GB, free: 80 MB / 426.7 MB