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.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadModel(ModelicaTest): time 1.963/1.963, allocations: 209.3 MB / 222.4 MB, free: 7.715 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.819e-05/2.836e-05, allocations: 4 kB / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08621/0.08626, allocations: 48.71 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.4233, allocations: 74.03 MB / 400.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.4236, allocations: 68.95 kB / 400.6 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03579/0.4594, allocations: 8.194 MB / 408.8 MB, free: 7.543 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.929e-06/0.4595, allocations: 3.984 kB / 408.8 MB, free: 7.539 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.414e-06/0.4595, allocations: 0 / 408.8 MB, free: 7.539 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000267/0.4598, allocations: 337.1 kB / 409.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.4598, allocations: 11.53 kB / 409.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.229e-05/0.4599, allocations: 0 / 409.2 MB, free: 7.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.149e-05/0.4599, allocations: 159.1 kB / 409.3 MB, free: 6.984 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.913e-06/0.4599, allocations: 7.891 kB / 409.3 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.46, allocations: 3.844 kB / 409.3 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.4601, allocations: 40.91 kB / 409.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.926e-06/0.4601, allocations: 0 / 409.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.4601, allocations: 0 / 409.4 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.706e-06/0.4601, allocations: 11.73 kB / 409.4 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.717e-05/0.4602, allocations: 3.875 kB / 409.4 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002696/0.4605, allocations: 248 kB / 409.6 MB, free: 6.652 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.545e-05/0.4605, allocations: 18.52 kB / 409.7 MB, free: 6.625 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.675e-05/0.4605, allocations: 12.73 kB / 409.7 MB, free: 6.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.4606, allocations: 0 / 409.7 MB, free: 6.613 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.4606, allocations: 30.56 kB / 409.7 MB, free: 6.574 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.803e-06/0.4606, allocations: 0 / 409.7 MB, free: 6.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001321/0.4607, allocations: 36.39 kB / 409.7 MB, free: 6.543 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.036e-05/0.4608, allocations: 51.41 kB / 409.8 MB, free: 6.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.008e-05/0.4608, allocations: 92.88 kB / 409.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.487e-06/0.4609, allocations: 25.7 kB / 409.9 MB, free: 6.355 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.478e-05/0.4609, allocations: 161.9 kB / 410.1 MB, free: 6.199 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.855e-06/0.4609, allocations: 3.906 kB / 410.1 MB, free: 6.195 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-06/0.4609, allocations: 3.938 kB / 410.1 MB, free: 6.191 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.512e-05/0.461, allocations: 314.8 kB / 410.4 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.364e-05/0.461, allocations: 3.875 kB / 410.4 MB, free: 5.875 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.235e-05/0.461, allocations: 22.11 kB / 410.4 MB, free: 5.852 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.063e-05/0.4611, allocations: 7.938 kB / 410.4 MB, free: 5.848 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.42e-06/0.4611, allocations: 3.938 kB / 410.4 MB, free: 5.844 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.8e-05/0.4612, allocations: 47.97 kB / 410.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.4612, allocations: 7.688 kB / 410.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.4612, allocations: 0 / 410.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4613, allocations: 3.969 kB / 410.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.042e-05/0.4613, allocations: 96 / 410.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.474e-06/0.4613, allocations: 11.86 kB / 410.5 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.478e-05/0.4614, allocations: 0 / 410.5 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.4614, allocations: 3.844 kB / 410.5 MB, free: 5.797 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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 4.898e-05/0.4614, allocations: 108.9 kB / 410.6 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.312e-05/0.4615, allocations: 0 / 410.6 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.4616, allocations: 43.64 kB / 410.6 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.512e-06/0.4616, allocations: 8.016 kB / 410.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.456e-06/0.4616, allocations: 0 / 410.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.4617, allocations: 3.75 kB / 410.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001303/0.4618, allocations: 149.2 kB / 410.8 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.4618, allocations: 0 / 410.8 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.545e-06/0.4618, allocations: 3.938 kB / 410.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.954e-06/0.4618, allocations: 3.875 kB / 410.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.166e-06/0.4619, allocations: 0 / 410.8 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.936e-06/0.4619, allocations: 3.984 kB / 410.8 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.816e-06/0.4619, allocations: 0 / 410.8 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.271e-05/0.462, allocations: 138.9 kB / 410.9 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.022e-05/0.462, allocations: 77.11 kB / 411 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.462, allocations: 3.875 kB / 411 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.005e-05/0.4621, allocations: 3.984 kB / 411 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.309e-05/0.4621, allocations: 0 / 411 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.849e-06/0.4622, allocations: 0 / 411 MB, free: 5.203 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.486e-05/0.4622, allocations: 78.97 kB / 411.1 MB, free: 5.129 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.4622, allocations: 4.125 kB / 411.1 MB, free: 5.125 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000445/0.4627, allocations: 46.06 kB / 411.2 MB, free: 5.113 MB / 314.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.0003026/0.463, allocations: 153.1 kB / 411.3 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.186e-05/0.4631, allocations: 41.17 kB / 411.3 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.153e-06/0.4631, allocations: 0 / 411.3 MB, free: 4.973 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.879e-05/0.4631, allocations: 25.7 kB / 411.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001599/0.4633, allocations: 3.969 kB / 411.4 MB, free: 4.941 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001899/0.4635, allocations: 94.48 kB / 411.5 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.4636, allocations: 0.673 MB / 412.1 MB, free: 4.137 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.161e-05/0.4637, allocations: 7.438 kB / 412.1 MB, free: 4.129 MB / 314.7 MB Notification: Performance of SimCode: time 2.197e-06/0.4637, allocations: 3.938 kB / 412.1 MB, free: 4.125 MB / 314.7 MB Notification: Performance of Templates: time 0.002682/0.4664, allocations: 0.9864 MB / 413.1 MB, free: 3.594 MB / 314.7 MB