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.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadModel(ModelicaTest): time 1.924/1.924, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.779e-05/2.798e-05, allocations: 0 / 277.8 MB, free: 15.31 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08901, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3438/0.4329, allocations: 72.8 MB / 399.3 MB, free: 10.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.4331, allocations: 64.7 kB / 399.4 MB, free: 10.35 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0033/0.4365, allocations: 0.8987 MB / 400.3 MB, free: 9.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.977e-06/0.4365, allocations: 3.844 kB / 400.3 MB, free: 9.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.039e-06/0.4365, allocations: 0 / 400.3 MB, free: 9.996 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0001789/0.4367, allocations: 328.9 kB / 400.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.4368, allocations: 10.31 kB / 400.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.62e-05/0.4368, allocations: 3.875 kB / 400.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.588e-05/0.4369, allocations: 166.8 kB / 400.8 MB, free: 9.445 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.4369, allocations: 7.797 kB / 400.8 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.4369, allocations: 6.969 kB / 400.8 MB, free: 9.441 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.4371, allocations: 58.17 kB / 400.9 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.78e-06/0.4371, allocations: 0 / 400.9 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.4371, allocations: 6.562 kB / 400.9 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.4371, allocations: 0.875 kB / 400.9 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001004/0.4372, allocations: 49.27 kB / 400.9 MB, free: 9.402 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001433/0.4374, allocations: 166.1 kB / 401.1 MB, free: 9.211 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001261/0.4375, allocations: 81.08 kB / 401.2 MB, free: 9.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.435e-05/0.4376, allocations: 31.08 kB / 401.2 MB, free: 9.168 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002744/0.4379, allocations: 252.8 kB / 401.4 MB, free: 8.883 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.4379, allocations: 39.33 kB / 401.5 MB, free: 8.844 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 2.387e-06/0.4379, allocations: 0 / 401.5 MB, free: 8.844 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002142/0.4382, allocations: 75.28 kB / 401.6 MB, free: 8.809 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.4382, allocations: 55.09 kB / 401.6 MB, free: 8.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.9e-05/0.4383, allocations: 92.84 kB / 401.7 MB, free: 8.652 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.4383, allocations: 25.7 kB / 401.7 MB, free: 8.621 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.098e-05/0.4383, allocations: 150.6 kB / 401.9 MB, free: 8.473 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.4384, allocations: 33.73 kB / 401.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.306e-06/0.4384, allocations: 3.688 kB / 401.9 MB, free: 8.449 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.811e-05/0.4384, allocations: 311.1 kB / 402.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.204e-05/0.4385, allocations: 18.41 kB / 402.2 MB, free: 8.137 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.684e-05/0.4385, allocations: 21.11 kB / 402.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.321e-05/0.4386, allocations: 21.77 kB / 402.3 MB, free: 8.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4386, allocations: 4.125 kB / 402.3 MB, free: 8.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000146/0.4388, allocations: 80.59 kB / 402.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.4388, allocations: 4.125 kB / 402.4 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.336e-06/0.4388, allocations: 6.25 kB / 402.4 MB, free: 8.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4388, allocations: 0 / 402.4 MB, free: 8.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.439, allocations: 18.05 kB / 402.4 MB, free: 8.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.711e-06/0.439, allocations: 3.938 kB / 402.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.214e-05/0.439, allocations: 3.906 kB / 402.4 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.4391, allocations: 3.906 kB / 402.4 MB, free: 8.078 MB / 314.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 (10): * Single equations (assignments): 10 * 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 5.119e-05/0.4391, allocations: 111 kB / 402.5 MB, free: 7.969 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.634e-05/0.4391, allocations: 7.766 kB / 402.5 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002072/0.4394, allocations: 99.16 kB / 402.6 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.4394, allocations: 0 / 402.6 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.77e-06/0.4394, allocations: 0 / 402.6 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.095e-06/0.4394, allocations: 0 / 402.6 MB, free: 7.926 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.4395, allocations: 178.1 kB / 402.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.944e-06/0.4395, allocations: 2.688 kB / 402.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.743e-05/0.4396, allocations: 18.52 kB / 402.8 MB, free: 7.727 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.853e-06/0.4396, allocations: 7.844 kB / 402.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-06/0.4397, allocations: 3.953 kB / 402.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.803e-06/0.4397, allocations: 0 / 402.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.74e-06/0.4397, allocations: 0 / 402.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.4398, allocations: 103.1 kB / 402.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.959e-05/0.4399, allocations: 83.75 kB / 403 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.4399, allocations: 3.812 kB / 403 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.343e-05/0.4399, allocations: 3.953 kB / 403 MB, free: 7.555 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.944e-05/0.44, allocations: 10.97 kB / 403 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.363e-06/0.44, allocations: 3.844 kB / 403 MB, free: 7.551 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.218e-05/0.44, allocations: 79.22 kB / 403.1 MB, free: 7.477 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.44, allocations: 0 / 403.1 MB, free: 7.477 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002776/0.4403, allocations: 19.31 kB / 403.1 MB, free: 7.469 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 (10): * Single equations (assignments): 10 * 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.0001472/0.4405, allocations: 116.5 kB / 403.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.4406, allocations: 53.56 kB / 403.3 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.4407, allocations: 4.094 kB / 403.3 MB, free: 7.367 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.34e-05/0.4407, allocations: 34.06 kB / 403.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001153/0.4408, allocations: 2.719 kB / 403.3 MB, free: 7.359 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002884/0.4411, allocations: 119.4 kB / 403.4 MB, free: 7.258 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.4413, allocations: 0.6903 MB / 404.1 MB, free: 6.555 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.096e-05/0.4413, allocations: 11.41 kB / 404.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of SimCode: time 1.61e-06/0.4413, allocations: 0 / 404.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of Templates: time 0.002352/0.4437, allocations: 0.8212 MB / 405 MB, free: 6.336 MB / 314.7 MB