Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadModel(ModelicaTest): time 2.176/2.176, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004327, allocations: 16 kB / 314.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2754, allocations: 54.86 MB / 369.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1188/0.3942, allocations: 79.8 MB / 449.1 MB, free: 10.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.3944, allocations: 67.84 kB / 449.1 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005932/0.4004, allocations: 1.665 MB / 450.8 MB, free: 9.047 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.391e-06/0.4004, allocations: 0 / 450.8 MB, free: 9.047 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.952e-06/0.4004, allocations: 0 / 450.8 MB, free: 9.047 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003294/0.4008, allocations: 353.1 kB / 451.1 MB, free: 8.648 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.4008, allocations: 8.031 kB / 451.1 MB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.606e-05/0.4009, allocations: 11.95 kB / 451.2 MB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001132/0.401, allocations: 159.1 kB / 451.3 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.401, allocations: 0 / 451.3 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.32e-06/0.4011, allocations: 0 / 451.3 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.915e-05/0.4011, allocations: 45.67 kB / 451.4 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.839e-06/0.4012, allocations: 0 / 451.4 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.559e-06/0.4012, allocations: 0 / 451.4 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.731e-06/0.4012, allocations: 0 / 451.4 MB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.16e-05/0.4012, allocations: 7.891 kB / 451.4 MB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.4014, allocations: 141.7 kB / 451.5 MB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.976e-05/0.4014, allocations: 18.58 kB / 451.5 MB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.899e-06/0.4015, allocations: 0 / 451.5 MB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.543e-05/0.4015, allocations: 68.25 kB / 451.6 MB, free: 8.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.743e-06/0.4015, allocations: 0 / 451.6 MB, free: 8.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001702/0.4017, allocations: 63.41 kB / 451.6 MB, free: 8.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.4018, allocations: 81.11 kB / 451.7 MB, free: 7.906 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.708e-05/0.4018, allocations: 88.91 kB / 451.8 MB, free: 7.812 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.4019, allocations: 25.7 kB / 451.8 MB, free: 7.781 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.874e-05/0.402, allocations: 150.6 kB / 452 MB, free: 7.633 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.402, allocations: 0 / 452 MB, free: 7.633 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-06/0.402, allocations: 4.125 kB / 452 MB, free: 7.629 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4022, allocations: 322.8 kB / 452.3 MB, free: 7.305 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.4022, allocations: 0 / 452.3 MB, free: 7.305 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.4022, allocations: 4 kB / 452.3 MB, free: 7.301 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.356e-05/0.4022, allocations: 25.7 kB / 452.3 MB, free: 7.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.071e-06/0.4023, allocations: 0 / 452.3 MB, free: 7.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.995e-05/0.4024, allocations: 63.34 kB / 452.4 MB, free: 7.195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.402e-05/0.4024, allocations: 33.69 kB / 452.4 MB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.502e-06/0.4024, allocations: 96 / 452.4 MB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.4024, allocations: 8 kB / 452.4 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.519e-06/0.4025, allocations: 0 / 452.4 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.167e-06/0.4025, allocations: 0 / 452.4 MB, free: 7.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.566e-05/0.4025, allocations: 3.938 kB / 452.4 MB, free: 7.145 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-06/0.4025, allocations: 0 / 452.4 MB, free: 7.145 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001077/0.4026, allocations: 143.5 kB / 452.6 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.736e-06/0.4026, allocations: 0 / 452.6 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.4027, allocations: 7.062 kB / 452.6 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-06/0.4027, allocations: 0 / 452.6 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.925e-06/0.4027, allocations: 7.984 kB / 452.6 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.96e-06/0.4027, allocations: 0 / 452.6 MB, free: 6.973 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.4028, allocations: 153.6 kB / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-06/0.4028, allocations: 0 / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.16e-06/0.4029, allocations: 0 / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.459e-06/0.4029, allocations: 0 / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.651e-06/0.4029, allocations: 0 / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.721e-06/0.4029, allocations: 0 / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.381e-06/0.4029, allocations: 0 / 452.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/0.403, allocations: 102.7 kB / 452.8 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.482e-05/0.4031, allocations: 77.11 kB / 452.9 MB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.4031, allocations: 4 kB / 452.9 MB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.4031, allocations: 0 / 452.9 MB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.075e-05/0.4032, allocations: 0 / 452.9 MB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.982e-06/0.4032, allocations: 7.984 kB / 452.9 MB, free: 6.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.717e-05/0.4032, allocations: 75.28 kB / 453 MB, free: 6.469 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.13e-07/0.4032, allocations: 0 / 453 MB, free: 6.469 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002887/0.4035, allocations: 28 kB / 453 MB, free: 6.441 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006697/0.4042, allocations: 282.2 kB / 453.3 MB, free: 6.211 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001061/0.4043, allocations: 59.41 kB / 453.4 MB, free: 6.141 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.236e-06/0.4044, allocations: 12 kB / 453.4 MB, free: 6.129 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.748e-05/0.4044, allocations: 59.33 kB / 453.4 MB, free: 6.059 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.505e-05/0.4045, allocations: 7.938 kB / 453.4 MB, free: 6.051 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001763/0.4047, allocations: 100.4 kB / 453.5 MB, free: 5.918 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.4051, allocations: 0.677 MB / 454.2 MB, free: 5.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.365e-05/0.4051, allocations: 7.438 kB / 454.2 MB, free: 5.207 MB / 378.7 MB Notification: Performance of SimCode: time 1.239e-06/0.4051, allocations: 0 / 454.2 MB, free: 5.207 MB / 378.7 MB Notification: Performance of Templates: time 0.002742/0.4078, allocations: 0.9693 MB / 455.2 MB, free: 4.238 MB / 378.7 MB