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/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.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.233/2.233, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.446e-05/2.471e-05, allocations: 0 / 309.7 MB, free: 1.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3195, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1272/0.4468, allocations: 80.41 MB / 445 MB, free: 72 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.4471, allocations: 71.95 kB / 445 MB, free: 0 / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03964/0.4867, allocations: 8.202 MB / 453.2 MB, free: 7.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4868, allocations: 0 / 453.2 MB, free: 7.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.4868, allocations: 0 / 453.2 MB, free: 7.82 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.000373/0.4872, allocations: 338.5 kB / 453.6 MB, free: 7.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.4872, allocations: 8.031 kB / 453.6 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.4873, allocations: 7.891 kB / 453.6 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.4874, allocations: 160 kB / 453.7 MB, free: 7.234 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.4874, allocations: 4 kB / 453.7 MB, free: 7.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.4874, allocations: 4 kB / 453.7 MB, free: 7.227 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.4876, allocations: 37.69 kB / 453.8 MB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.799e-06/0.4876, allocations: 4 kB / 453.8 MB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.4876, allocations: 0 / 453.8 MB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.989e-06/0.4876, allocations: 0 / 453.8 MB, free: 7.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.557e-05/0.4877, allocations: 11.95 kB / 453.8 MB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003846/0.4881, allocations: 240.8 kB / 454 MB, free: 6.883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.465e-05/0.4881, allocations: 18.52 kB / 454 MB, free: 6.855 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.115e-05/0.4882, allocations: 14 kB / 454.1 MB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.4882, allocations: 3.984 kB / 454.1 MB, free: 6.836 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.4882, allocations: 38.52 kB / 454.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.4882, allocations: 0 / 454.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.4884, allocations: 33.7 kB / 454.1 MB, free: 6.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.4885, allocations: 55.34 kB / 454.2 MB, free: 6.684 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.031e-05/0.4885, allocations: 93.03 kB / 454.3 MB, free: 6.586 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.4886, allocations: 25.7 kB / 454.3 MB, free: 6.555 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.06e-05/0.4887, allocations: 166.4 kB / 454.5 MB, free: 6.391 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.287e-06/0.4887, allocations: 3.906 kB / 454.5 MB, free: 6.387 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.39e-06/0.4887, allocations: 0 / 454.5 MB, free: 6.387 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.4889, allocations: 312.2 kB / 454.8 MB, free: 6.074 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.714e-05/0.4889, allocations: 4 kB / 454.8 MB, free: 6.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.4889, allocations: 18.58 kB / 454.8 MB, free: 6.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.536e-05/0.489, allocations: 12.12 kB / 454.8 MB, free: 6.031 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.46e-06/0.489, allocations: 0 / 454.8 MB, free: 6.031 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001084/0.4891, allocations: 45.62 kB / 454.8 MB, free: 5.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.4891, allocations: 9.406 kB / 454.9 MB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.4892, allocations: 0 / 454.9 MB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.4892, allocations: 7.953 kB / 454.9 MB, free: 5.965 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.113e-05/0.4893, allocations: 4 kB / 454.9 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.503e-06/0.4893, allocations: 4.094 kB / 454.9 MB, free: 5.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.784e-05/0.4893, allocations: 7.938 kB / 454.9 MB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.811e-06/0.4893, allocations: 0 / 454.9 MB, free: 5.949 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.24e-05/0.4894, allocations: 113 kB / 455 MB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.316e-05/0.4895, allocations: 0 / 455 MB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.4896, allocations: 48.8 kB / 455 MB, free: 5.777 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.986e-06/0.4896, allocations: 3.953 kB / 455 MB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.235e-06/0.4897, allocations: 4.031 kB / 455 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.88e-06/0.4897, allocations: 0 / 455 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001936/0.4899, allocations: 153.7 kB / 455.2 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.4899, allocations: 0 / 455.2 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.408e-06/0.4899, allocations: 0 / 455.2 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.784e-06/0.4899, allocations: 0 / 455.2 MB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.308e-06/0.4899, allocations: 3.938 kB / 455.2 MB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.019e-06/0.4899, allocations: 0 / 455.2 MB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.109e-06/0.49, allocations: 7.891 kB / 455.2 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001286/0.4901, allocations: 135.5 kB / 455.3 MB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.085e-05/0.4902, allocations: 81.11 kB / 455.4 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.4902, allocations: 0 / 455.4 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.46e-05/0.4903, allocations: 0 / 455.4 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.4903, allocations: 0 / 455.4 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.4903, allocations: 11.94 kB / 455.4 MB, free: 5.301 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.94e-05/0.4904, allocations: 75.28 kB / 455.5 MB, free: 5.227 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.49e-07/0.4904, allocations: 0 / 455.5 MB, free: 5.227 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004384/0.4908, allocations: 52.06 kB / 455.6 MB, free: 5.176 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.0003476/0.4912, allocations: 151.2 kB / 455.7 MB, free: 5.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.4913, allocations: 37.64 kB / 455.7 MB, free: 4.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.221e-06/0.4913, allocations: 0 / 455.7 MB, free: 4.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.137e-05/0.4914, allocations: 29.7 kB / 455.8 MB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.4915, allocations: 0 / 455.8 MB, free: 4.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002187/0.4918, allocations: 86.94 kB / 455.9 MB, free: 4.828 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.4921, allocations: 0.6731 MB / 456.5 MB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.616e-05/0.4922, allocations: 7.438 kB / 456.5 MB, free: 4.121 MB / 378.7 MB Notification: Performance of SimCode: time 1.675e-06/0.4922, allocations: 0 / 456.5 MB, free: 4.121 MB / 378.7 MB Notification: Performance of Templates: time 0.002903/0.4951, allocations: 0.9782 MB / 457.5 MB, free: 3.148 MB / 378.7 MB