Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadModel(ModelicaTest): time 1.753/1.753, allocations: 209.3 MB / 222.4 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.676e-05/2.681e-05, allocations: 4 kB / 277.8 MB, free: 12.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08553/0.08558, allocations: 48.7 MB / 326.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.321/0.4066, allocations: 74.03 MB / 400.6 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4069, allocations: 75.89 kB / 400.6 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04153/0.4485, allocations: 8.195 MB / 408.8 MB, free: 4.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.273e-06/0.4485, allocations: 4 kB / 408.8 MB, free: 4.938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.288e-06/0.4485, allocations: 0 / 408.8 MB, free: 4.938 MB / 330.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.0003838/0.4489, allocations: 334.5 kB / 409.2 MB, free: 4.566 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.449, allocations: 8.031 kB / 409.2 MB, free: 4.559 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.334e-05/0.449, allocations: 4 kB / 409.2 MB, free: 4.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.4492, allocations: 163 kB / 409.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.4492, allocations: 4 kB / 409.3 MB, free: 4.352 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.4492, allocations: 0 / 409.3 MB, free: 4.352 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.4493, allocations: 41.62 kB / 409.4 MB, free: 4.305 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.603e-06/0.4493, allocations: 3.938 kB / 409.4 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.4494, allocations: 0 / 409.4 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.658e-06/0.4494, allocations: 3.984 kB / 409.4 MB, free: 4.297 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.093e-05/0.4494, allocations: 4 kB / 409.4 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/0.4496, allocations: 153.6 kB / 409.5 MB, free: 4.094 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.516e-05/0.4497, allocations: 18.61 kB / 409.6 MB, free: 4.066 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.006e-05/0.4497, allocations: 4.859 kB / 409.6 MB, free: 4.059 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.4497, allocations: 8.062 kB / 409.6 MB, free: 4.051 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.4498, allocations: 34.5 kB / 409.6 MB, free: 4.008 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 2.024e-06/0.4498, allocations: 0 / 409.6 MB, free: 4.008 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001226/0.4499, allocations: 29.7 kB / 409.6 MB, free: 3.973 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.45, allocations: 55.41 kB / 409.7 MB, free: 3.906 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.335e-05/0.4501, allocations: 89 kB / 409.8 MB, free: 3.812 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.4501, allocations: 29.69 kB / 409.8 MB, free: 3.777 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.137e-05/0.4502, allocations: 154.7 kB / 410 MB, free: 3.625 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.4502, allocations: 7.938 kB / 410 MB, free: 3.617 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-06/0.4502, allocations: 0 / 410 MB, free: 3.617 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.4504, allocations: 310.8 kB / 410.3 MB, free: 3.305 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.335e-05/0.4504, allocations: 0 / 410.3 MB, free: 3.305 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.48e-05/0.4504, allocations: 4 kB / 410.3 MB, free: 3.301 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.682e-05/0.4505, allocations: 0 / 410.3 MB, free: 3.301 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.163e-06/0.4505, allocations: 0 / 410.3 MB, free: 3.301 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.337e-05/0.4506, allocations: 49.66 kB / 410.3 MB, free: 3.246 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.4506, allocations: 4.625 kB / 410.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4506, allocations: 0 / 410.3 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.4507, allocations: 7.984 kB / 410.3 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.614e-06/0.4507, allocations: 0 / 410.3 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.356e-06/0.4507, allocations: 0 / 410.3 MB, free: 3.234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.753e-05/0.4507, allocations: 3.906 kB / 410.3 MB, free: 3.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-06/0.4507, allocations: 0 / 410.3 MB, free: 3.23 MB / 330.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 8.231e-05/0.4508, allocations: 104.4 kB / 410.4 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.4509, allocations: 15.92 kB / 410.5 MB, free: 3.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.451, allocations: 44.75 kB / 410.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.551e-06/0.451, allocations: 0 / 410.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.451, allocations: 0 / 410.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.846e-06/0.4511, allocations: 0 / 410.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.4512, allocations: 153.6 kB / 410.6 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.808e-06/0.4512, allocations: 3.984 kB / 410.6 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.394e-06/0.4512, allocations: 4 kB / 410.7 MB, free: 2.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.4513, allocations: 7.984 kB / 410.7 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.4513, allocations: 0 / 410.7 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4513, allocations: 0 / 410.7 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.711e-06/0.4513, allocations: 0 / 410.7 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001036/0.4514, allocations: 57.14 kB / 410.7 MB, free: 2.773 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.338e-05/0.4515, allocations: 85.09 kB / 410.8 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.508e-05/0.4515, allocations: 3.953 kB / 410.8 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.184e-05/0.4516, allocations: 4.031 kB / 410.8 MB, free: 2.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.4516, allocations: 4 kB / 410.8 MB, free: 2.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.371e-06/0.4516, allocations: 0 / 410.8 MB, free: 2.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.14e-05/0.4517, allocations: 79.22 kB / 410.9 MB, free: 2.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.9e-07/0.4517, allocations: 4 kB / 410.9 MB, free: 2.578 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003971/0.4521, allocations: 47.92 kB / 410.9 MB, free: 2.531 MB / 330.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003617/0.4525, allocations: 151.2 kB / 411.1 MB, free: 2.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.465e-05/0.4526, allocations: 33.8 kB / 411.1 MB, free: 2.336 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.198e-06/0.4526, allocations: 0 / 411.1 MB, free: 2.336 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.324e-05/0.4526, allocations: 29.7 kB / 411.1 MB, free: 2.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.4528, allocations: 4 kB / 411.2 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002402/0.453, allocations: 82.28 kB / 411.2 MB, free: 2.191 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.4534, allocations: 0.677 MB / 411.9 MB, free: 1.488 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.4534, allocations: 7.438 kB / 411.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.816e-06/0.4534, allocations: 7.938 kB / 411.9 MB, free: 1.473 MB / 330.7 MB Notification: Performance of Templates: time 0.00297/0.4564, allocations: 0.9785 MB / 412.9 MB, free: 0.4961 MB / 330.7 MB