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.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 2.253/2.253, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.265e-05/3.283e-05, allocations: 11.98 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3203, allocations: 54.85 MB / 364.5 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.4686, allocations: 98.92 MB / 463.5 MB, free: 13.53 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.4689, allocations: 75.95 kB / 463.5 MB, free: 13.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2963/0.7653, allocations: 72.98 MB / 0.5239 GB, free: 3.98 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.347e-06/0.7654, allocations: 0 / 0.5239 GB, free: 3.98 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000194/0.7656, allocations: 60 kB / 0.524 GB, free: 3.922 MB / 458.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.01077/0.7764, allocations: 3.259 MB / 0.5272 GB, free: 0.6016 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/0.7764, allocations: 12.03 kB / 0.5272 GB, free: 0.5898 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3139/1.09, allocations: 4.23 MB / 0.5313 GB, free: 110 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01358/1.104, allocations: 4.215 MB / 0.5354 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003509/1.104, allocations: 245.9 kB / 0.5357 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0015/1.106, allocations: 334.1 kB / 0.536 GB, free: 109.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/1.125, allocations: 8.211 MB / 0.544 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002012/1.125, allocations: 55.78 kB / 0.5441 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/1.126, allocations: 168.6 kB / 0.5442 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001488/1.128, allocations: 0.8152 MB / 0.545 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01519/1.143, allocations: 6.578 MB / 0.5514 GB, free: 107.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04309/1.186, allocations: 39.77 MB / 0.5903 GB, free: 76.63 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006098/1.192, allocations: 2.249 MB / 0.5925 GB, free: 75.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/1.194, allocations: 1.066 MB / 0.5935 GB, free: 75.03 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004344/1.195, allocations: 325.2 kB / 0.5938 GB, free: 74.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/1.195, allocations: 46.56 kB / 0.5939 GB, free: 74.69 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 6.254e-06/1.195, allocations: 1.594 kB / 0.5939 GB, free: 74.69 MB / 458.7 MB Notification: Performance of matching and sorting (n=141): time 0.03354/1.228, allocations: 9.406 MB / 0.6031 GB, free: 70.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.036e-05/1.228, allocations: 194.6 kB / 0.6032 GB, free: 70.71 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006618/1.235, allocations: 3.256 MB / 0.6064 GB, free: 69.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/1.235, allocations: 45.23 kB / 0.6065 GB, free: 69.46 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/1.237, allocations: 2.626 MB / 0.609 GB, free: 67.35 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006563/1.238, allocations: 0.5687 MB / 0.6096 GB, free: 66.95 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000508/1.238, allocations: 106.9 kB / 0.6097 GB, free: 66.87 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003998/1.239, allocations: 0.5315 MB / 0.6102 GB, free: 66.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/1.242, allocations: 1.593 MB / 0.6118 GB, free: 65.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005351/1.248, allocations: 5.008 MB / 0.6166 GB, free: 60.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005225/1.253, allocations: 2.823 MB / 0.6194 GB, free: 59.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.68e-05/1.253, allocations: 33.91 kB / 0.6194 GB, free: 59.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.01413/1.267, allocations: 6.429 MB / 0.6257 GB, free: 54.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.267, allocations: 56.19 kB / 0.6258 GB, free: 53.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001442/1.267, allocations: 132.7 kB / 0.6259 GB, free: 53.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009505/1.268, allocations: 351.8 kB / 0.6262 GB, free: 53.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00523/1.274, allocations: 1.228 MB / 0.6274 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003491/1.277, allocations: 2.703 MB / 0.6301 GB, free: 49.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005438/1.283, allocations: 296.5 kB / 0.6304 GB, free: 49.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009415/1.284, allocations: 327.5 kB / 0.6307 GB, free: 49.28 MB / 458.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.001089/1.285, allocations: 0.5273 MB / 0.6312 GB, free: 48.75 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006818/1.285, allocations: 308 kB / 0.6315 GB, free: 48.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00368/1.289, allocations: 1.696 MB / 0.6331 GB, free: 47.02 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.246e-05/1.289, allocations: 20 kB / 0.6332 GB, free: 47 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/1.289, allocations: 4.844 kB / 0.6332 GB, free: 46.99 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/1.289, allocations: 3.797 kB / 0.6332 GB, free: 46.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/1.302, allocations: 5.372 MB / 0.6384 GB, free: 42.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.586e-05/1.302, allocations: 4.062 kB / 0.6384 GB, free: 42.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/1.304, allocations: 221 kB / 0.6386 GB, free: 42.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006339/1.304, allocations: 155.7 kB / 0.6388 GB, free: 42.26 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/1.304, allocations: 31.89 kB / 0.6388 GB, free: 42.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/1.307, allocations: 2.146 MB / 0.6409 GB, free: 40.13 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.307, allocations: 4.031 kB / 0.6409 GB, free: 40.12 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006086/1.313, allocations: 3.767 MB / 0.6446 GB, free: 36.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/1.315, allocations: 0.5241 MB / 0.6451 GB, free: 36.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007472/1.316, allocations: 27.56 kB / 0.6451 GB, free: 36.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/1.318, allocations: 65.89 kB / 0.6452 GB, free: 36.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00035/1.318, allocations: 78.59 kB / 0.6453 GB, free: 36.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.318, allocations: 41.34 kB / 0.6453 GB, free: 36.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005159/1.323, allocations: 2.272 MB / 0.6475 GB, free: 34.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.397e-06/1.323, allocations: 0 / 0.6475 GB, free: 34.02 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005746/1.329, allocations: 0.8069 MB / 0.6483 GB, free: 33.22 MB / 458.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.0004994/1.33, allocations: 149.6 kB / 0.6484 GB, free: 33.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007388/1.337, allocations: 3.913 MB / 0.6523 GB, free: 29.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.388e-06/1.337, allocations: 4 kB / 0.6523 GB, free: 29.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/1.339, allocations: 1.065 MB / 0.6533 GB, free: 28.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/1.341, allocations: 342 kB / 0.6536 GB, free: 28.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/1.356, allocations: 6.289 MB / 0.6598 GB, free: 22.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00531/1.361, allocations: 2.824 MB / 0.6625 GB, free: 20.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/1.362, allocations: 263.4 kB / 0.6628 GB, free: 19.87 MB / 458.7 MB Notification: Performance of SimCode: time 2.273e-06/1.362, allocations: 0 / 0.6628 GB, free: 19.87 MB / 458.7 MB Notification: Performance of Templates: time 0.4683/1.831, allocations: 60.67 MB / 0.722 GB, free: 125.7 MB / 490.7 MB