Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadModel(ModelicaTest): time 2.275/2.275, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.666e-05/1.686e-05, allocations: 0 / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.275, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.4123, allocations: 79.75 MB / 437.8 MB, free: 15.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/0.4127, allocations: 63.97 kB / 437.8 MB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04455/0.4573, allocations: 8.171 MB / 446 MB, free: 6.816 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.996e-06/0.4574, allocations: 3.938 kB / 446 MB, free: 6.812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.4574, allocations: 4 kB / 446 MB, free: 6.809 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004168/0.4578, allocations: 334.5 kB / 446.4 MB, free: 6.438 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.4579, allocations: 12.03 kB / 446.4 MB, free: 6.426 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.519e-05/0.4579, allocations: 7.859 kB / 446.4 MB, free: 6.418 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.458, allocations: 167.1 kB / 446.5 MB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.4581, allocations: 0 / 446.5 MB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.891e-06/0.4581, allocations: 0 / 446.5 MB, free: 6.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.953e-05/0.4582, allocations: 8 kB / 446.5 MB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.32e-05/0.4583, allocations: 33.7 kB / 446.6 MB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.899e-06/0.4583, allocations: 3.938 kB / 446.6 MB, free: 6.164 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.4583, allocations: 0 / 446.6 MB, free: 6.164 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.793e-06/0.4583, allocations: 3.953 kB / 446.6 MB, free: 6.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.4587, allocations: 225.5 kB / 446.8 MB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.893e-05/0.4587, allocations: 14.58 kB / 446.8 MB, free: 5.879 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.023e-05/0.4588, allocations: 8.922 kB / 446.8 MB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.4588, allocations: 0 / 446.8 MB, free: 5.867 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.4588, allocations: 38.55 kB / 446.9 MB, free: 5.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.005e-06/0.4589, allocations: 0 / 446.9 MB, free: 5.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001917/0.4591, allocations: 45.58 kB / 446.9 MB, free: 5.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/0.4591, allocations: 55.44 kB / 447 MB, free: 5.703 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.813e-05/0.4592, allocations: 85 kB / 447 MB, free: 5.613 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.4592, allocations: 29.7 kB / 447.1 MB, free: 5.578 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.4593, allocations: 158.5 kB / 447.2 MB, free: 5.422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.8e-06/0.4594, allocations: 0 / 447.2 MB, free: 5.422 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.22e-06/0.4594, allocations: 0 / 447.2 MB, free: 5.422 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.4595, allocations: 310.8 kB / 447.5 MB, free: 5.109 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.591e-05/0.4596, allocations: 4.125 kB / 447.5 MB, free: 5.105 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.555e-05/0.4596, allocations: 26.56 kB / 447.6 MB, free: 5.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.784e-05/0.4597, allocations: 11.94 kB / 447.6 MB, free: 5.059 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.43e-06/0.4597, allocations: 0 / 447.6 MB, free: 5.059 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001291/0.4598, allocations: 45.62 kB / 447.6 MB, free: 5.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.4599, allocations: 4 kB / 447.6 MB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.4599, allocations: 8.094 kB / 447.6 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.4599, allocations: 0 / 447.6 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.222e-05/0.46, allocations: 4 kB / 447.6 MB, free: 4.992 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.46, allocations: 7.953 kB / 447.6 MB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.658e-05/0.46, allocations: 3.906 kB / 447.6 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.46, allocations: 4 kB / 447.6 MB, free: 4.977 MB / 378.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 9.56e-05/0.4601, allocations: 106.5 kB / 447.8 MB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.4602, allocations: 0 / 447.8 MB, free: 4.867 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.4603, allocations: 53.39 kB / 447.8 MB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.786e-06/0.4604, allocations: 7.938 kB / 447.8 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.72e-06/0.4604, allocations: 0 / 447.8 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.4604, allocations: 3.953 kB / 447.8 MB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.4606, allocations: 126.2 kB / 447.9 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.968e-06/0.4606, allocations: 0 / 447.9 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.617e-06/0.4606, allocations: 4 kB / 447.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.003e-06/0.4606, allocations: 0 / 447.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.4606, allocations: 0 / 447.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.297e-06/0.4606, allocations: 0 / 447.9 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.818e-06/0.4607, allocations: 4.031 kB / 447.9 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001513/0.4608, allocations: 135.5 kB / 448.1 MB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.288e-05/0.4609, allocations: 81.09 kB / 448.2 MB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.4609, allocations: 4 kB / 448.2 MB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.907e-05/0.461, allocations: 0 / 448.2 MB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.065e-05/0.461, allocations: 0 / 448.2 MB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-06/0.461, allocations: 0 / 448.2 MB, free: 4.383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.122e-05/0.4611, allocations: 83.31 kB / 448.2 MB, free: 4.301 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4611, allocations: 0 / 448.2 MB, free: 4.301 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004567/0.4616, allocations: 51.92 kB / 448.3 MB, free: 4.25 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: 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.0003726/0.462, allocations: 147.2 kB / 448.4 MB, free: 4.094 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001064/0.4621, allocations: 33.7 kB / 448.5 MB, free: 4.055 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.274e-06/0.4621, allocations: 7.875 kB / 448.5 MB, free: 4.047 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.301e-05/0.4621, allocations: 29.7 kB / 448.5 MB, free: 4.012 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.4623, allocations: 16.27 kB / 448.5 MB, free: 3.996 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002219/0.4626, allocations: 73.72 kB / 448.6 MB, free: 3.895 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.4629, allocations: 0.6768 MB / 449.3 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.406e-05/0.463, allocations: 7.438 kB / 449.3 MB, free: 3.184 MB / 378.7 MB Notification: Performance of SimCode: time 1.393e-06/0.463, allocations: 0 / 449.3 MB, free: 3.184 MB / 378.7 MB Notification: Performance of Templates: time 0.003213/0.4662, allocations: 1.024 MB / 450.3 MB, free: 2.164 MB / 378.7 MB