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.35/2.35, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.000434, allocations: 12 kB / 314.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2757, allocations: 54.87 MB / 369.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4013, allocations: 80.5 MB / 449.8 MB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.4016, allocations: 71.95 kB / 449.8 MB, free: 10 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03828/0.4399, allocations: 8.202 MB / 458 MB, free: 1.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.452e-06/0.4399, allocations: 0 / 458 MB, free: 1.781 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.978e-06/0.44, allocations: 0 / 458 MB, free: 1.781 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.0003897/0.4404, allocations: 343.4 kB / 458.4 MB, free: 1.398 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.4404, allocations: 12.03 kB / 458.4 MB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.475e-05/0.4405, allocations: 7.859 kB / 458.4 MB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.4406, allocations: 163.1 kB / 458.6 MB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.4406, allocations: 8 kB / 458.6 MB, free: 1.172 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4406, allocations: 7.938 kB / 458.6 MB, free: 1.164 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.4408, allocations: 37.64 kB / 458.6 MB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.653e-06/0.4408, allocations: 3.938 kB / 458.6 MB, free: 1.117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.4408, allocations: 0 / 458.6 MB, free: 1.117 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4408, allocations: 3.984 kB / 458.6 MB, free: 1.113 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.139e-05/0.4409, allocations: 7.953 kB / 458.6 MB, free: 1.105 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003618/0.4412, allocations: 236.9 kB / 458.9 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.941e-05/0.4413, allocations: 30.61 kB / 458.9 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.4413, allocations: 3.938 kB / 458.9 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.89e-05/0.4414, allocations: 30.56 kB / 458.9 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 2.096e-06/0.4414, allocations: 0 / 458.9 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001586/0.4416, allocations: 37.72 kB / 459 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.4416, allocations: 51.41 kB / 459 MB, free: 0.6367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.472e-05/0.4417, allocations: 97.12 kB / 459.1 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.4417, allocations: 25.7 kB / 459.1 MB, free: 0.5039 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.53e-05/0.4418, allocations: 158.5 kB / 459.3 MB, free: 356 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.405e-06/0.4418, allocations: 0 / 459.3 MB, free: 356 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-06/0.4419, allocations: 0 / 459.3 MB, free: 356 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.442, allocations: 314.8 kB / 459.6 MB, free: 32 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.161e-05/0.4421, allocations: 4 kB / 459.6 MB, free: 28 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.799e-05/0.4421, allocations: 22.64 kB / 459.6 MB, free: 16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.599e-05/0.4422, allocations: 11.98 kB / 459.6 MB, free: 15.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.389e-06/0.4422, allocations: 0 / 459.6 MB, free: 15.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001038/0.4423, allocations: 45.64 kB / 459.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.4423, allocations: 4 kB / 459.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.4423, allocations: 4 kB / 459.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.4424, allocations: 0 / 459.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.924e-05/0.4424, allocations: 11.94 kB / 459.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.4424, allocations: 4.094 kB / 459.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.854e-05/0.4425, allocations: 7.906 kB / 459.7 MB, free: 15.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.4425, allocations: 0 / 459.7 MB, free: 15.9 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 9.102e-05/0.4426, allocations: 109.8 kB / 459.8 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.433e-05/0.4426, allocations: 4 kB / 459.8 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.4428, allocations: 44.75 kB / 459.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.186e-06/0.4428, allocations: 4.125 kB / 459.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.4428, allocations: 7.938 kB / 459.9 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.542e-06/0.4428, allocations: 3.938 kB / 459.9 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000193/0.443, allocations: 149.7 kB / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.002e-06/0.443, allocations: 3.984 kB / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.24e-06/0.4431, allocations: 0 / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.707e-06/0.4431, allocations: 0 / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.573e-06/0.4431, allocations: 0 / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.905e-06/0.4431, allocations: 0 / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.421e-06/0.4431, allocations: 0 / 460 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.4432, allocations: 139.4 kB / 460.2 MB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.287e-05/0.4433, allocations: 81.11 kB / 460.2 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.4433, allocations: 3.984 kB / 460.2 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.888e-05/0.4434, allocations: 4 kB / 460.2 MB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.4434, allocations: 4 kB / 460.3 MB, free: 15.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.803e-06/0.4435, allocations: 4 kB / 460.3 MB, free: 15.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.753e-05/0.4435, allocations: 75.28 kB / 460.3 MB, free: 15.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.59e-07/0.4435, allocations: 4.125 kB / 460.3 MB, free: 15.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000448/0.444, allocations: 51.89 kB / 460.4 MB, free: 15.12 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.0003532/0.4444, allocations: 155.1 kB / 460.5 MB, free: 14.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.4445, allocations: 37.64 kB / 460.6 MB, free: 14.92 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4445, allocations: 0 / 460.6 MB, free: 14.92 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.063e-05/0.4445, allocations: 29.69 kB / 460.6 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001619/0.4447, allocations: 4 kB / 460.6 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002535/0.445, allocations: 120.6 kB / 460.7 MB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.4453, allocations: 0.677 MB / 461.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.443e-05/0.4454, allocations: 7.438 kB / 461.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.368e-06/0.4454, allocations: 0 / 461.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of Templates: time 0.003046/0.4484, allocations: 0.9795 MB / 462.4 MB, free: 13.04 MB / 394.7 MB