Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.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.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|valveDelayed.filter.x.1.|valveDelayed.filter.x.2.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 234.9 MB / 251.1 MB, free: 10.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005892/0.0005894, allocations: 8 kB / 314.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3538, allocations: 54.88 MB / 369.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.154/1.507, allocations: 346.3 MB / 0.6993 GB, free: 118.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/1.508, allocations: 96.17 kB / 0.6994 GB, free: 118.1 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.446/2.954, allocations: 303.6 MB / 0.9959 GB, free: 32.6 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.835e-06/2.954, allocations: 4 kB / 0.9959 GB, free: 32.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002729/2.954, allocations: 47.86 kB / 0.9959 GB, free: 32.55 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.01037/2.964, allocations: 2.282 MB / 0.9981 GB, free: 30.21 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/2.964, allocations: 11.97 kB / 0.9982 GB, free: 30.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001545/2.966, allocations: 209.8 kB / 0.9984 GB, free: 29.99 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004981/2.971, allocations: 1.274 MB / 0.9996 GB, free: 28.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003068/2.971, allocations: 183.2 kB / 0.9998 GB, free: 28.46 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007919/2.972, allocations: 112 kB / 0.9999 GB, free: 28.35 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006334/2.978, allocations: 1.971 MB / 1.002 GB, free: 26.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.2e-05/2.979, allocations: 3.906 kB / 1.002 GB, free: 26.29 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003112/2.979, allocations: 55.92 kB / 1.002 GB, free: 26.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002497/2.979, allocations: 110.2 kB / 1.002 GB, free: 26.12 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006425/2.986, allocations: 1.957 MB / 1.004 GB, free: 24.16 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02264/3.008, allocations: 7.03 MB / 1.011 GB, free: 16.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003859/3.012, allocations: 1.344 MB / 1.012 GB, free: 15.45 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/3.023, allocations: 4.463 MB / 1.016 GB, free: 10.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.272e-05/3.023, allocations: 47.56 kB / 1.016 GB, free: 10.51 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001827/3.025, allocations: 214.5 kB / 1.017 GB, free: 10.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 7.545e-06/3.025, allocations: 4 kB / 1.017 GB, free: 10.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.0373/3.062, allocations: 6.533 MB / 1.023 GB, free: 3.695 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.857e-05/3.062, allocations: 226.9 kB / 1.023 GB, free: 3.426 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/3.065, allocations: 1.367 MB / 1.025 GB, free: 2.047 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005456/3.066, allocations: 53.7 kB / 1.025 GB, free: 1.988 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005088/3.066, allocations: 0.6116 MB / 1.025 GB, free: 1.371 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006877/3.067, allocations: 461.4 kB / 1.026 GB, free: 0.9141 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/3.067, allocations: 36 kB / 1.026 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/3.067, allocations: 366.8 kB / 1.026 GB, free: 0.5117 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3773/3.445, allocations: 0.762 MB / 1.027 GB, free: 70.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00339/3.448, allocations: 1.1 MB / 1.028 GB, free: 69.94 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003201/3.451, allocations: 0.8896 MB / 1.029 GB, free: 69.93 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.601e-05/3.451, allocations: 2.312 kB / 1.029 GB, free: 69.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.00844/3.46, allocations: 2.356 MB / 1.031 GB, free: 69.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002335/3.46, allocations: 319.1 kB / 1.031 GB, free: 69.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-05/3.46, allocations: 10.53 kB / 1.031 GB, free: 69.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01412/3.474, allocations: 1.504 MB / 1.033 GB, free: 69.49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002827/3.477, allocations: 333.3 kB / 1.033 GB, free: 69.49 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004666/3.482, allocations: 1.702 MB / 1.035 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003108/3.485, allocations: 102 kB / 1.035 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005785/3.486, allocations: 77.16 kB / 1.035 GB, free: 68.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/3.486, allocations: 3.062 kB / 1.035 GB, free: 68.96 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006478/3.492, allocations: 2.038 MB / 1.037 GB, free: 68.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-05/3.492, allocations: 12.14 kB / 1.037 GB, free: 68.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009823/3.502, allocations: 0.9234 MB / 1.038 GB, free: 68.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/3.505, allocations: 347.3 kB / 1.038 GB, free: 68.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002748/3.508, allocations: 1.256 MB / 1.039 GB, free: 68.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/3.51, allocations: 99.05 kB / 1.04 GB, free: 68.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003337/3.51, allocations: 81 kB / 1.04 GB, free: 68.39 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.001537/3.512, allocations: 484.6 kB / 1.04 GB, free: 68.21 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005729/3.513, allocations: 169.7 kB / 1.04 GB, free: 68.21 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008394/3.521, allocations: 2.525 MB / 1.043 GB, free: 68.11 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.014e-05/3.521, allocations: 14.91 kB / 1.043 GB, free: 68.11 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/3.521, allocations: 0 / 1.043 GB, free: 68.11 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.686e-05/3.521, allocations: 7.453 kB / 1.043 GB, free: 68.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01366/3.535, allocations: 4.08 MB / 1.047 GB, free: 67.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/3.535, allocations: 0 / 1.047 GB, free: 67.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/3.537, allocations: 226.8 kB / 1.047 GB, free: 67.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008284/3.546, allocations: 1.234 MB / 1.048 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004128/3.546, allocations: 51.34 kB / 1.048 GB, free: 67.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003767/3.55, allocations: 1.758 MB / 1.05 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/3.55, allocations: 0 / 1.05 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00909/3.559, allocations: 3.358 MB / 1.053 GB, free: 66.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001705/3.561, allocations: 455.2 kB / 1.054 GB, free: 66.78 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006754/3.562, allocations: 35.94 kB / 1.054 GB, free: 66.78 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002621/3.564, allocations: 104.9 kB / 1.054 GB, free: 66.77 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/3.565, allocations: 114.9 kB / 1.054 GB, free: 66.77 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002559/3.565, allocations: 60.58 kB / 1.054 GB, free: 66.77 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002074/3.567, allocations: 0.9141 MB / 1.055 GB, free: 66.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.092e-06/3.567, allocations: 0 / 1.055 GB, free: 66.66 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006447/3.574, allocations: 1.428 MB / 1.056 GB, free: 66.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.004787/3.578, allocations: 1.232 MB / 1.057 GB, free: 66.56 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01153/3.59, allocations: 3.081 MB / 1.06 GB, free: 66.45 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/3.59, allocations: 0 / 1.06 GB, free: 66.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003896/3.594, allocations: 1.028 MB / 1.061 GB, free: 66.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006168/3.6, allocations: 0.68 MB / 1.062 GB, free: 66.42 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/3.611, allocations: 4.18 MB / 1.066 GB, free: 64.94 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/3.613, allocations: 1.404 MB / 1.068 GB, free: 64.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/3.614, allocations: 164.6 kB / 1.068 GB, free: 64.21 MB / 490.7 MB Notification: Performance of SimCode: time 2.865e-06/3.614, allocations: 0 / 1.068 GB, free: 64.21 MB / 490.7 MB Notification: Performance of Templates: time 0.08338/3.697, allocations: 41.27 MB / 1.108 GB, free: 61.72 MB / 490.7 MB