Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestNonlinear.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.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="//possible continuous states|//possible discrete states",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004326/0.0004327, allocations: 12 kB / 314.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2785, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.4055, allocations: 83.45 MB / 452.7 MB, free: 7.148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.4057, allocations: 63.97 kB / 452.8 MB, free: 7.086 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05877/0.4645, allocations: 12.95 MB / 465.7 MB, free: 10.11 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.359e-06/0.4646, allocations: 3.938 kB / 465.7 MB, free: 10.11 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.737e-06/0.4646, allocations: 0 / 465.7 MB, free: 10.11 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006496/0.4653, allocations: 448.8 kB / 466.2 MB, free: 9.617 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.4653, allocations: 12.03 kB / 466.2 MB, free: 9.605 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.769e-05/0.4654, allocations: 79.23 kB / 466.3 MB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.4655, allocations: 246.3 kB / 466.5 MB, free: 9.246 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.846e-05/0.4656, allocations: 162.5 kB / 466.7 MB, free: 9.086 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.059e-05/0.4657, allocations: 154.5 kB / 466.8 MB, free: 8.934 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.615e-05/0.4658, allocations: 101 kB / 466.9 MB, free: 8.828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.026e-05/0.4659, allocations: 79.28 kB / 467 MB, free: 8.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.363e-05/0.4659, allocations: 150.6 kB / 467.1 MB, free: 8.602 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-05/0.466, allocations: 154.6 kB / 467.3 MB, free: 8.449 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.891e-05/0.4661, allocations: 154.5 kB / 467.4 MB, free: 8.297 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000341/0.4665, allocations: 445.9 kB / 467.9 MB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.939e-05/0.4666, allocations: 169.1 kB / 468 MB, free: 7.637 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.4666, allocations: 79.28 kB / 468.1 MB, free: 7.559 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.916e-05/0.4667, allocations: 139.5 kB / 468.2 MB, free: 7.406 MB / 394.7 MB Notification: Performance of pre-optimization done (n=0): time 1.796e-06/0.4668, allocations: 0 / 468.2 MB, free: 7.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=0): time 8.716e-05/0.4668, allocations: 33.64 kB / 468.3 MB, free: 7.367 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.467, allocations: 152.4 kB / 468.4 MB, free: 7.199 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.467e-05/0.467, allocations: 89 kB / 468.5 MB, free: 7.105 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.872e-05/0.467, allocations: 29.7 kB / 468.5 MB, free: 7.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.4671, allocations: 150.6 kB / 468.7 MB, free: 6.922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-06/0.4671, allocations: 0 / 468.7 MB, free: 6.922 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.47e-07/0.4671, allocations: 0 / 468.7 MB, free: 6.922 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4673, allocations: 318.8 kB / 469 MB, free: 6.602 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.447e-06/0.4673, allocations: 0 / 469 MB, free: 6.602 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.211e-05/0.4674, allocations: 48 / 469 MB, free: 6.602 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.802e-05/0.4674, allocations: 79.28 kB / 469.1 MB, free: 6.523 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.582e-05/0.4675, allocations: 75.28 kB / 469.1 MB, free: 6.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 8.161e-05/0.4676, allocations: 41.66 kB / 469.2 MB, free: 6.402 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.95e-05/0.4676, allocations: 79.28 kB / 469.3 MB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.186e-05/0.4677, allocations: 79.28 kB / 469.3 MB, free: 6.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.051e-05/0.4678, allocations: 150.6 kB / 469.5 MB, free: 6.098 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.081e-05/0.4678, allocations: 79.22 kB / 469.6 MB, free: 6.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.18e-05/0.4679, allocations: 154.6 kB / 469.7 MB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.468, allocations: 87.22 kB / 469.8 MB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.4681, allocations: 75.28 kB / 469.9 MB, free: 5.707 MB / 394.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001608/0.4682, allocations: 268.3 kB / 470.1 MB, free: 5.434 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.103e-05/0.4683, allocations: 101 kB / 470.2 MB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.134e-05/0.4684, allocations: 115.8 kB / 470.4 MB, free: 5.203 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.755e-05/0.4685, allocations: 180.3 kB / 470.5 MB, free: 5.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.004e-05/0.4686, allocations: 188.1 kB / 470.7 MB, free: 4.828 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.301e-05/0.4687, allocations: 176.3 kB / 470.9 MB, free: 4.648 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.469, allocations: 402.6 kB / 471.3 MB, free: 4.199 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-05/0.4691, allocations: 108.9 kB / 471.4 MB, free: 4.086 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.257e-05/0.4691, allocations: 105 kB / 471.5 MB, free: 3.977 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.135e-05/0.4692, allocations: 188.2 kB / 471.7 MB, free: 3.785 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.989e-05/0.4693, allocations: 180.3 kB / 471.8 MB, free: 3.602 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.966e-05/0.4694, allocations: 184.2 kB / 472 MB, free: 3.414 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.565e-05/0.4695, allocations: 180.2 kB / 472.2 MB, free: 3.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.4697, allocations: 315.7 kB / 472.5 MB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.866e-05/0.4699, allocations: 178.1 kB / 472.7 MB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.47, allocations: 184.2 kB / 472.9 MB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.4701, allocations: 101.4 kB / 473 MB, free: 2.406 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.168e-05/0.4702, allocations: 180.3 kB / 473.1 MB, free: 2.223 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.77e-05/0.4703, allocations: 108.9 kB / 473.2 MB, free: 2.109 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.96e-05/0.4703, allocations: 83.33 kB / 473.3 MB, free: 2.027 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.7e-07/0.4703, allocations: 0 / 473.3 MB, free: 2.027 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008982/0.4713, allocations: 163.7 kB / 473.5 MB, free: 1.867 MB / 394.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001232/0.4725, allocations: 474 kB / 474 MB, free: 1.406 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.82e-05/0.4726, allocations: 4 kB / 474 MB, free: 1.402 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.723e-06/0.4726, allocations: 0 / 474 MB, free: 1.402 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.021e-06/0.4726, allocations: 0 / 474 MB, free: 1.402 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003935/0.473, allocations: 0.5301 MB / 474.5 MB, free: 0.8672 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001877/0.4732, allocations: 175.7 kB / 474.7 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2406/0.7138, allocations: 0.6731 MB / 475.3 MB, free: 96.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.824e-05/0.7139, allocations: 7.438 kB / 475.3 MB, free: 96.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.646e-06/0.7139, allocations: 0 / 475.3 MB, free: 96.7 MB / 394.7 MB Notification: Performance of Templates: time 0.007014/0.7209, allocations: 2.872 MB / 478.2 MB, free: 96.46 MB / 394.7 MB