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.796/1.796, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.081e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08649/0.08655, allocations: 48.71 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3548/0.4414, allocations: 92.09 MB / 418.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000235/0.4417, allocations: 79.45 kB / 418.7 MB, free: 15.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.29/0.7317, allocations: 72.95 MB / 491.7 MB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.97e-06/0.7317, allocations: 0 / 491.7 MB, free: 13.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001926/0.7319, allocations: 68 kB / 491.7 MB, free: 13.62 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.01038/0.7423, allocations: 3.255 MB / 495 MB, free: 10.3 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.329e-05/0.7424, allocations: 8.031 kB / 495 MB, free: 10.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02289/0.7653, allocations: 4.25 MB / 499.2 MB, free: 6.031 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01388/0.7792, allocations: 4.208 MB / 0.4916 GB, free: 1.77 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003606/0.7796, allocations: 246.5 kB / 0.4919 GB, free: 1.527 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001468/0.7811, allocations: 335.8 kB / 0.4922 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01971/0.8009, allocations: 8.215 MB / 0.5002 GB, free: 8.02 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001855/0.8011, allocations: 51.56 kB / 0.5003 GB, free: 7.969 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009726/0.8021, allocations: 159.9 kB / 0.5004 GB, free: 7.812 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001525/0.8036, allocations: 0.8173 MB / 0.5012 GB, free: 6.996 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01612/0.8198, allocations: 6.582 MB / 0.5076 GB, free: 408 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2948/1.115, allocations: 39.76 MB / 0.5465 GB, free: 70.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005965/1.121, allocations: 2.247 MB / 0.5487 GB, free: 70.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/1.122, allocations: 1.065 MB / 0.5497 GB, free: 70.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004261/1.123, allocations: 323.8 kB / 0.55 GB, free: 69.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/1.123, allocations: 51.3 kB / 0.5501 GB, free: 69.94 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 5.849e-06/1.123, allocations: 0 / 0.5501 GB, free: 69.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.03356/1.157, allocations: 9.386 MB / 0.5592 GB, free: 67.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/1.157, allocations: 200.9 kB / 0.5594 GB, free: 67.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007249/1.164, allocations: 3.262 MB / 0.5626 GB, free: 66.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/1.164, allocations: 43.33 kB / 0.5627 GB, free: 66.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001896/1.166, allocations: 2.635 MB / 0.5652 GB, free: 65.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006156/1.167, allocations: 0.5619 MB / 0.5658 GB, free: 65.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000374/1.167, allocations: 107.8 kB / 0.5659 GB, free: 65.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003159/1.168, allocations: 0.5311 MB / 0.5664 GB, free: 65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003236/1.171, allocations: 1.595 MB / 0.568 GB, free: 64.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005153/1.176, allocations: 5.006 MB / 0.5728 GB, free: 60.54 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005181/1.181, allocations: 2.82 MB / 0.5756 GB, free: 60.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001077/1.181, allocations: 38.34 kB / 0.5756 GB, free: 60.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01422/1.196, allocations: 6.437 MB / 0.5819 GB, free: 60.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.662e-05/1.196, allocations: 57.75 kB / 0.582 GB, free: 60.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001326/1.196, allocations: 123.8 kB / 0.5821 GB, free: 60.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008954/1.197, allocations: 345.4 kB / 0.5824 GB, free: 60 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005337/1.202, allocations: 1.241 MB / 0.5836 GB, free: 59.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/1.206, allocations: 2.707 MB / 0.5863 GB, free: 58.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005191/1.211, allocations: 283.4 kB / 0.5865 GB, free: 57.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008525/1.212, allocations: 340.2 kB / 0.5869 GB, free: 57.88 MB / 426.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 () * 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.0008943/1.213, allocations: 0.5269 MB / 0.5874 GB, free: 57.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006665/1.214, allocations: 311.6 kB / 0.5877 GB, free: 57.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00367/1.217, allocations: 1.689 MB / 0.5893 GB, free: 56.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.235e-05/1.217, allocations: 15.09 kB / 0.5893 GB, free: 56.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/1.217, allocations: 6.391 kB / 0.5894 GB, free: 56.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.901e-05/1.217, allocations: 3.516 kB / 0.5894 GB, free: 56.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/1.23, allocations: 5.375 MB / 0.5946 GB, free: 54.47 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/1.23, allocations: 5.719 kB / 0.5946 GB, free: 54.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001494/1.231, allocations: 218.7 kB / 0.5948 GB, free: 54.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006104/1.232, allocations: 159.6 kB / 0.595 GB, free: 54.41 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/1.232, allocations: 24.27 kB / 0.595 GB, free: 54.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/1.235, allocations: 2.148 MB / 0.5971 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.152e-06/1.235, allocations: 3.781 kB / 0.5971 GB, free: 52.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005955/1.241, allocations: 3.764 MB / 0.6008 GB, free: 50.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/1.242, allocations: 0.5304 MB / 0.6013 GB, free: 50.63 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006639/1.243, allocations: 24.2 kB / 0.6013 GB, free: 50.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/1.245, allocations: 71.02 kB / 0.6014 GB, free: 50.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/1.245, allocations: 76.19 kB / 0.6015 GB, free: 50.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/1.245, allocations: 37.38 kB / 0.6015 GB, free: 50.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004462/1.249, allocations: 2.269 MB / 0.6037 GB, free: 49.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.661e-06/1.25, allocations: 0 / 0.6037 GB, free: 49.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005758/1.255, allocations: 0.8018 MB / 0.6045 GB, free: 49.68 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 () * 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.000454/1.256, allocations: 154.3 kB / 0.6046 GB, free: 49.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007295/1.263, allocations: 3.917 MB / 0.6085 GB, free: 48.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.458e-06/1.263, allocations: 4.281 kB / 0.6085 GB, free: 48.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001848/1.265, allocations: 1.059 MB / 0.6095 GB, free: 47.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/1.267, allocations: 344.4 kB / 0.6098 GB, free: 47.51 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/1.28, allocations: 6.299 MB / 0.616 GB, free: 43.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004442/1.285, allocations: 2.826 MB / 0.6187 GB, free: 40.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/1.286, allocations: 257.5 kB / 0.619 GB, free: 40.62 MB / 426.7 MB Notification: Performance of SimCode: time 2.084e-06/1.286, allocations: 0 / 0.619 GB, free: 40.62 MB / 426.7 MB Notification: Performance of Templates: time 0.09039/1.376, allocations: 60.67 MB / 0.6782 GB, free: 3.637 MB / 442.7 MB