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.337/2.337, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.861e-05/2.874e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3187, allocations: 54.86 MB / 364.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1207/0.4394, allocations: 79.71 MB / 444.2 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/0.4396, allocations: 57.92 kB / 444.3 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006232/0.4459, allocations: 1.663 MB / 446 MB, free: 15.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.41e-06/0.4459, allocations: 0 / 446 MB, free: 15.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.474e-06/0.446, allocations: 0.6562 kB / 446 MB, free: 15.06 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.0003232/0.4463, allocations: 352.3 kB / 446.3 MB, free: 14.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4464, allocations: 8.688 kB / 446.3 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.058e-05/0.4464, allocations: 3.953 kB / 446.3 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.4465, allocations: 163.1 kB / 446.5 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.4465, allocations: 0.875 kB / 446.5 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.4466, allocations: 7.438 kB / 446.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.209e-05/0.4467, allocations: 37.69 kB / 446.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.4467, allocations: 0 / 446.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.072e-06/0.4467, allocations: 0.75 kB / 446.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-06/0.4467, allocations: 0 / 446.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.229e-05/0.4467, allocations: 3.953 kB / 446.5 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.4469, allocations: 141.7 kB / 446.7 MB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.438e-05/0.447, allocations: 22.58 kB / 446.7 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.963e-05/0.447, allocations: 12.8 kB / 446.7 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.14e-06/0.447, allocations: 0 / 446.7 MB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/0.4471, allocations: 64.31 kB / 446.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.124e-06/0.4471, allocations: 1.219 kB / 446.8 MB, free: 14.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001601/0.4473, allocations: 59.39 kB / 446.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.4473, allocations: 81.11 kB / 446.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.797e-05/0.4474, allocations: 89 kB / 447 MB, free: 13.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.4474, allocations: 25.7 kB / 447 MB, free: 13.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.707e-05/0.4475, allocations: 154.6 kB / 447.2 MB, free: 13.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.536e-05/0.4475, allocations: 0 / 447.2 MB, free: 13.65 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.4476, allocations: 0 / 447.2 MB, free: 13.65 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4477, allocations: 318.8 kB / 447.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.258e-05/0.4477, allocations: 4 kB / 447.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.113e-05/0.4478, allocations: 3.938 kB / 447.5 MB, free: 13.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.553e-05/0.4478, allocations: 25.7 kB / 447.5 MB, free: 13.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.197e-06/0.4478, allocations: 0 / 447.5 MB, free: 13.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001007/0.4479, allocations: 64.22 kB / 447.6 MB, free: 13.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.448, allocations: 33.7 kB / 447.6 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.639e-06/0.448, allocations: 3.984 kB / 447.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.448, allocations: 2.875 kB / 447.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.718e-06/0.448, allocations: 0 / 447.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.318e-06/0.4481, allocations: 0 / 447.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.671e-05/0.4481, allocations: 0 / 447.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.4481, allocations: 4 kB / 447.6 MB, free: 13.17 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 () * 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 9.892e-05/0.4482, allocations: 139.4 kB / 447.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.068e-05/0.4482, allocations: 4.031 kB / 447.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.441e-05/0.4483, allocations: 7.078 kB / 447.8 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4483, allocations: 0 / 447.8 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.689e-06/0.4483, allocations: 0 / 447.8 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.464e-06/0.4483, allocations: 4 kB / 447.8 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.4484, allocations: 149.6 kB / 447.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.4485, allocations: 0 / 447.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.193e-06/0.4485, allocations: 0 / 447.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.72e-06/0.4485, allocations: 3.938 kB / 447.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.118e-06/0.4485, allocations: 0 / 447.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.768e-06/0.4485, allocations: 4 kB / 447.9 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.781e-06/0.4485, allocations: 7.984 kB / 447.9 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.4487, allocations: 90.78 kB / 448 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.302e-05/0.4487, allocations: 85.09 kB / 448.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.4488, allocations: 0 / 448.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.28e-05/0.4488, allocations: 1.031 kB / 448.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.109e-05/0.4488, allocations: 0 / 448.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.181e-06/0.4488, allocations: 0.875 kB / 448.1 MB, free: 12.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.945e-05/0.4489, allocations: 79.31 kB / 448.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.45e-07/0.4489, allocations: 4 kB / 448.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003025/0.4492, allocations: 31.98 kB / 448.2 MB, free: 12.47 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) * 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.0006926/0.4499, allocations: 280.5 kB / 448.5 MB, free: 12.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.45, allocations: 63.41 kB / 448.6 MB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4501, allocations: 0 / 448.6 MB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.627e-05/0.4501, allocations: 55.41 kB / 448.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.606e-05/0.4502, allocations: 3.953 kB / 448.6 MB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001619/0.4504, allocations: 74.69 kB / 448.7 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.4507, allocations: 0.6731 MB / 449.4 MB, free: 11.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.117e-05/0.4508, allocations: 11.56 kB / 449.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of SimCode: time 4.501e-06/0.4508, allocations: 0 / 449.4 MB, free: 11.3 MB / 378.7 MB Notification: Performance of Templates: time 0.002819/0.4536, allocations: 0.9792 MB / 450.3 MB, free: 10.32 MB / 378.7 MB