Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.262/2.262, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006196/0.0006197, allocations: 8 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3414, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.4871, allocations: 80.5 MB / 450.3 MB, free: 10.13 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.4874, allocations: 67.97 kB / 450.4 MB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04474/0.5322, allocations: 8.207 MB / 458.6 MB, free: 1.844 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5323, allocations: 0 / 458.6 MB, free: 1.844 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.5323, allocations: 4 kB / 458.6 MB, free: 1.84 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.0003894/0.5327, allocations: 347.3 kB / 458.9 MB, free: 1.453 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.5327, allocations: 8.031 kB / 458.9 MB, free: 1.445 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.5328, allocations: 7.859 kB / 458.9 MB, free: 1.438 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.5329, allocations: 167 kB / 459.1 MB, free: 1.234 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.5329, allocations: 0 / 459.1 MB, free: 1.234 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.5329, allocations: 3.938 kB / 459.1 MB, free: 1.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.5331, allocations: 37.69 kB / 459.1 MB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.5331, allocations: 8 kB / 459.1 MB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.5331, allocations: 0 / 459.1 MB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.5331, allocations: 0 / 459.1 MB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.558e-05/0.5332, allocations: 11.95 kB / 459.1 MB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003694/0.5336, allocations: 240.9 kB / 459.4 MB, free: 0.8828 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.952e-05/0.5336, allocations: 18.52 kB / 459.4 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.5337, allocations: 0 / 459.4 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.5337, allocations: 38.62 kB / 459.4 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.5337, allocations: 0 / 459.4 MB, free: 0.8086 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001595/0.5339, allocations: 37.66 kB / 459.5 MB, free: 0.7656 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.5339, allocations: 55.41 kB / 459.5 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.823e-05/0.534, allocations: 93.84 kB / 459.6 MB, free: 0.5977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.5341, allocations: 29.64 kB / 459.6 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.596e-05/0.5341, allocations: 158.5 kB / 459.8 MB, free: 416 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.205e-06/0.5342, allocations: 4.25 kB / 459.8 MB, free: 412 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.5342, allocations: 4 kB / 459.8 MB, free: 408 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.5343, allocations: 310.8 kB / 460.1 MB, free: 88 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.122e-05/0.5343, allocations: 7.984 kB / 460.1 MB, free: 80 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.141e-05/0.5344, allocations: 18.58 kB / 460.1 MB, free: 52 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.713e-05/0.5344, allocations: 4 kB / 460.1 MB, free: 48 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5344, allocations: 8 kB / 460.2 MB, free: 40 kB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001126/0.5346, allocations: 45.62 kB / 460.2 MB, free: 15.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.5346, allocations: 4 kB / 460.2 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.93e-05/0.5346, allocations: 8 kB / 460.2 MB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.5346, allocations: 3.953 kB / 460.2 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.592e-05/0.5347, allocations: 4 kB / 460.2 MB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.5347, allocations: 3.984 kB / 460.2 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.713e-05/0.5347, allocations: 7.906 kB / 460.2 MB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.5348, allocations: 4 kB / 460.2 MB, free: 15.95 MB / 394.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 () * Number of clocked 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 8.164e-05/0.5349, allocations: 117.8 kB / 460.3 MB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.5349, allocations: 0 / 460.3 MB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.535, allocations: 44.81 kB / 460.4 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.5351, allocations: 0 / 460.4 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.5351, allocations: 7.953 kB / 460.4 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.5351, allocations: 3.938 kB / 460.4 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.5353, allocations: 145.7 kB / 460.5 MB, free: 15.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.5353, allocations: 4.125 kB / 460.5 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.5353, allocations: 4 kB / 460.6 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5353, allocations: 3.984 kB / 460.6 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-06/0.5353, allocations: 0 / 460.6 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.5353, allocations: 0 / 460.6 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5353, allocations: 0 / 460.6 MB, free: 15.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001202/0.5355, allocations: 139.4 kB / 460.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.5355, allocations: 77.11 kB / 460.8 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.5355, allocations: 4.031 kB / 460.8 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.465e-05/0.5356, allocations: 4 kB / 460.8 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.22e-05/0.5357, allocations: 0 / 460.8 MB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.5357, allocations: 0 / 460.8 MB, free: 15.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.359e-05/0.5357, allocations: 83.23 kB / 460.9 MB, free: 15.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5357, allocations: 0 / 460.9 MB, free: 15.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004673/0.5362, allocations: 55.92 kB / 460.9 MB, free: 15.18 MB / 394.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 () * Number of clocked 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.0003951/0.5366, allocations: 143.2 kB / 461.1 MB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001232/0.5368, allocations: 49.62 kB / 461.1 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5368, allocations: 0 / 461.1 MB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.618e-05/0.5368, allocations: 29.7 kB / 461.1 MB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.537, allocations: 0 / 461.1 MB, free: 14.94 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002668/0.5372, allocations: 122.4 kB / 461.2 MB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.5375, allocations: 0.6731 MB / 461.9 MB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.412e-05/0.5375, allocations: 7.688 kB / 461.9 MB, free: 14.08 MB / 394.7 MB Notification: Performance of SimCode: time 7.22e-07/0.5375, allocations: 4 kB / 461.9 MB, free: 14.07 MB / 394.7 MB Notification: Performance of Templates: time 0.003413/0.541, allocations: 0.993 MB / 462.9 MB, free: 13.08 MB / 394.7 MB