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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.872/1.872, allocations: 209.4 MB / 217.3 MB, free: 4.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.497e-05/1.505e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2633, allocations: 48.68 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1402/0.4036, allocations: 91.44 MB / 411.4 MB, free: 4.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.4038, allocations: 75.95 kB / 411.5 MB, free: 4.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5015/0.9054, allocations: 71.63 MB / 483.1 MB, free: 88.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.106e-06/0.9054, allocations: 0 / 483.1 MB, free: 88.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001381/0.9056, allocations: 60 kB / 483.2 MB, free: 88.77 MB / 378.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.00834/0.9139, allocations: 3.263 MB / 486.5 MB, free: 85.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.914, allocations: 12.02 kB / 486.5 MB, free: 85.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02093/0.9349, allocations: 4.246 MB / 490.7 MB, free: 81.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/0.947, allocations: 4.196 MB / 494.9 MB, free: 76.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.9472, allocations: 104 kB / 495 MB, free: 76.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001213/0.9484, allocations: 196 kB / 495.2 MB, free: 76.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009146/0.9576, allocations: 4.662 MB / 499.9 MB, free: 72.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.9712, allocations: 7.575 MB / 0.4956 GB, free: 63.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/0.9714, allocations: 59.45 kB / 0.4956 GB, free: 63.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005793/0.972, allocations: 28 kB / 0.4956 GB, free: 63.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001118/0.9731, allocations: 0.8131 MB / 0.4964 GB, free: 62.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03679/1.01, allocations: 38.11 MB / 0.5337 GB, free: 23.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002876/1.013, allocations: 2.338 MB / 0.5359 GB, free: 20.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/1.014, allocations: 1.057 MB / 0.537 GB, free: 19.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003682/1.015, allocations: 330.2 kB / 0.5373 GB, free: 19.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/1.015, allocations: 47.2 kB / 0.5373 GB, free: 19.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 5.694e-06/1.015, allocations: 0 / 0.5373 GB, free: 19.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02623/1.041, allocations: 10.48 MB / 0.5476 GB, free: 8.832 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/1.041, allocations: 204.7 kB / 0.5478 GB, free: 8.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004606/1.046, allocations: 2.785 MB / 0.5505 GB, free: 5.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002323/1.046, allocations: 25.7 kB / 0.5505 GB, free: 5.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001632/1.048, allocations: 2.727 MB / 0.5532 GB, free: 3.004 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/1.048, allocations: 0.5708 MB / 0.5537 GB, free: 2.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000284/1.049, allocations: 0 / 0.5537 GB, free: 2.426 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003271/1.049, allocations: 0.5541 MB / 0.5543 GB, free: 1.859 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/1.052, allocations: 1.553 MB / 0.5558 GB, free: 308 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006941/1.059, allocations: 5.118 MB / 0.5608 GB, free: 9.375 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005985/1.065, allocations: 2.825 MB / 0.5635 GB, free: 6.547 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/1.065, allocations: 36 kB / 0.5636 GB, free: 6.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01546/1.08, allocations: 5.939 MB / 0.5694 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001146/1.08, allocations: 60 kB / 0.5694 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001733/1.081, allocations: 128 kB / 0.5696 GB, free: 392 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/1.082, allocations: 353.2 kB / 0.5699 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005371/1.087, allocations: 1.31 MB / 0.5712 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004138/1.091, allocations: 2.605 MB / 0.5737 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005047/1.096, allocations: 183.4 kB / 0.5739 GB, free: 11.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001037/1.097, allocations: 352 kB / 0.5742 GB, free: 11.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * 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 (700): * Single equations (assignments): 696 * 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.0009697/1.098, allocations: 420.8 kB / 0.5746 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006904/1.099, allocations: 284.3 kB / 0.5749 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003982/1.103, allocations: 1.664 MB / 0.5765 GB, free: 9.105 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.472e-05/1.103, allocations: 20 kB / 0.5765 GB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-06/1.103, allocations: 0 / 0.5765 GB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.609e-05/1.103, allocations: 11.97 kB / 0.5766 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/1.116, allocations: 5.131 MB / 0.5816 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/1.116, allocations: 0 / 0.5816 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/1.118, allocations: 235.7 kB / 0.5818 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006779/1.119, allocations: 157 kB / 0.5819 GB, free: 3.473 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/1.119, allocations: 8 kB / 0.582 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003179/1.122, allocations: 2.052 MB / 0.584 GB, free: 1.305 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.154e-06/1.122, allocations: 8.016 kB / 0.584 GB, free: 1.297 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007245/1.129, allocations: 3.756 MB / 0.5876 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/1.131, allocations: 0.4972 MB / 0.5881 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004979/1.131, allocations: 4 kB / 0.5881 GB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/1.133, allocations: 43.92 kB / 0.5882 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/1.133, allocations: 84.62 kB / 0.5882 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001567/1.133, allocations: 39.98 kB / 0.5883 GB, free: 12.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004358/1.138, allocations: 1.852 MB / 0.5901 GB, free: 10.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.443e-06/1.138, allocations: 4.062 kB / 0.5901 GB, free: 10.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006105/1.144, allocations: 0.6874 MB / 0.5908 GB, free: 10.24 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 (121): * Single equations (assignments): 117 * 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.0005135/1.144, allocations: 135 kB / 0.5909 GB, free: 10.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008155/1.153, allocations: 3.767 MB / 0.5946 GB, free: 6.348 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.615e-06/1.153, allocations: 0 / 0.5946 GB, free: 6.348 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002048/1.155, allocations: 1.071 MB / 0.5956 GB, free: 5.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/1.157, allocations: 280.1 kB / 0.5959 GB, free: 4.996 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3331/1.49, allocations: 6.272 MB / 0.602 GB, free: 123 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004089/1.494, allocations: 2.832 MB / 0.6048 GB, free: 122.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.495, allocations: 252.4 kB / 0.605 GB, free: 122.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.732e-06/1.495, allocations: 0 / 0.605 GB, free: 122.2 MB / 426.7 MB Notification: Performance of Templates: time 0.0814/1.577, allocations: 59.04 MB / 0.6627 GB, free: 90.05 MB / 426.7 MB