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.TestComponents.Valves.TestDelayedValve.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.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.124/2.124, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004713/0.0004714, allocations: 12 kB / 314.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2775/0.278, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.33, allocations: 346.3 MB / 0.6988 GB, free: 118.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/1.33, allocations: 83.95 kB / 0.6989 GB, free: 118.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.251/2.581, allocations: 303.6 MB / 0.9954 GB, free: 34.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.625e-06/2.581, allocations: 0 / 0.9954 GB, free: 34.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001833/2.581, allocations: 44 kB / 0.9954 GB, free: 34.27 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.007678/2.589, allocations: 2.286 MB / 0.9976 GB, free: 31.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/2.589, allocations: 12.03 kB / 0.9977 GB, free: 31.92 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/2.59, allocations: 201.8 kB / 0.9978 GB, free: 31.72 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003754/2.594, allocations: 1.266 MB / 0.9991 GB, free: 30.39 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002036/2.594, allocations: 187.2 kB / 0.9993 GB, free: 30.19 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004871/2.595, allocations: 115.9 kB / 0.9994 GB, free: 30.08 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004634/2.6, allocations: 1.954 MB / 1.001 GB, free: 28.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/2.6, allocations: 15.78 kB / 1.001 GB, free: 28.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002626/2.6, allocations: 55.91 kB / 1.001 GB, free: 27.96 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/2.6, allocations: 114.2 kB / 1.001 GB, free: 27.85 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004705/2.605, allocations: 1.957 MB / 1.003 GB, free: 25.89 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.0163/2.621, allocations: 7.022 MB / 1.01 GB, free: 18.54 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002875/2.624, allocations: 1.349 MB / 1.012 GB, free: 17.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007837/2.632, allocations: 4.462 MB / 1.016 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/2.632, allocations: 47.56 kB / 1.016 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001336/2.633, allocations: 226.5 kB / 1.016 GB, free: 12.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 5.61e-06/2.634, allocations: 0 / 1.016 GB, free: 12.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.0238/2.657, allocations: 6.38 MB / 1.022 GB, free: 5.578 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/2.657, allocations: 222.9 kB / 1.023 GB, free: 5.312 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/2.66, allocations: 1.208 MB / 1.024 GB, free: 4.098 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003638/2.66, allocations: 57.7 kB / 1.024 GB, free: 4.035 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004216/2.66, allocations: 0.6155 MB / 1.024 GB, free: 3.414 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000478/2.661, allocations: 449.4 kB / 1.025 GB, free: 2.969 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/2.661, allocations: 35.98 kB / 1.025 GB, free: 2.934 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/2.661, allocations: 374.8 kB / 1.025 GB, free: 2.559 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/2.663, allocations: 0.7613 MB / 1.026 GB, free: 1.797 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002231/2.665, allocations: 1.098 MB / 1.027 GB, free: 0.5781 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2975/2.963, allocations: 0.8827 MB / 1.028 GB, free: 69.12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.685e-05/2.963, allocations: 2.906 kB / 1.028 GB, free: 69.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.006833/2.97, allocations: 2.361 MB / 1.03 GB, free: 69.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005904/2.971, allocations: 2.974 MB / 1.033 GB, free: 65.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.541e-05/2.971, allocations: 10.45 kB / 1.033 GB, free: 65.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01041/2.981, allocations: 1.487 MB / 1.035 GB, free: 65.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/2.983, allocations: 334.3 kB / 1.035 GB, free: 65.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/2.987, allocations: 1.698 MB / 1.037 GB, free: 65.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/2.989, allocations: 109 kB / 1.037 GB, free: 65.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002789/2.989, allocations: 79.78 kB / 1.037 GB, free: 65.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/2.989, allocations: 3.312 kB / 1.037 GB, free: 65.43 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005096/2.994, allocations: 2.042 MB / 1.039 GB, free: 65.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-05/2.994, allocations: 7.531 kB / 1.039 GB, free: 65.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006544/3.001, allocations: 0.9201 MB / 1.04 GB, free: 65.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/3.003, allocations: 349.1 kB / 1.04 GB, free: 65.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/3.005, allocations: 1.257 MB / 1.041 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/3.007, allocations: 104.4 kB / 1.041 GB, free: 64.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002148/3.007, allocations: 68.84 kB / 1.041 GB, free: 64.86 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.00126/3.008, allocations: 493 kB / 1.042 GB, free: 64.67 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005087/3.009, allocations: 165.3 kB / 1.042 GB, free: 64.67 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00661/3.015, allocations: 2.519 MB / 1.044 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.168e-05/3.015, allocations: 16.19 kB / 1.045 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.965e-06/3.015, allocations: 7.141 kB / 1.045 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.639e-05/3.015, allocations: 9.75 kB / 1.045 GB, free: 64.57 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008979/3.024, allocations: 4.08 MB / 1.049 GB, free: 64.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.912e-06/3.024, allocations: 0 / 1.049 GB, free: 64.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/3.026, allocations: 232.7 kB / 1.049 GB, free: 64.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006976/3.033, allocations: 1.232 MB / 1.05 GB, free: 64.2 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003231/3.033, allocations: 43.08 kB / 1.05 GB, free: 64.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003063/3.036, allocations: 1.757 MB / 1.052 GB, free: 63.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.17e-06/3.036, allocations: 0 / 1.052 GB, free: 63.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007432/3.044, allocations: 3.363 MB / 1.055 GB, free: 63.42 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001412/3.045, allocations: 459.8 kB / 1.055 GB, free: 63.23 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004888/3.046, allocations: 31.41 kB / 1.055 GB, free: 63.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/3.048, allocations: 106 kB / 1.056 GB, free: 63.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003467/3.048, allocations: 116.3 kB / 1.056 GB, free: 63.23 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002373/3.048, allocations: 59.42 kB / 1.056 GB, free: 63.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001724/3.05, allocations: 0.9178 MB / 1.057 GB, free: 63.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.85e-07/3.05, allocations: 0 / 1.057 GB, free: 63.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005057/3.055, allocations: 1.425 MB / 1.058 GB, free: 63.12 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.003427/3.059, allocations: 1.221 MB / 1.059 GB, free: 63.01 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008689/3.067, allocations: 3.08 MB / 1.062 GB, free: 62.91 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.289e-06/3.067, allocations: 0 / 1.062 GB, free: 62.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003009/3.07, allocations: 1.024 MB / 1.063 GB, free: 62.89 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004251/3.075, allocations: 0.6889 MB / 1.064 GB, free: 62.87 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008919/3.084, allocations: 4.167 MB / 1.068 GB, free: 61.39 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/3.085, allocations: 1.411 MB / 1.069 GB, free: 60.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008231/3.086, allocations: 161.2 kB / 1.069 GB, free: 60.66 MB / 490.7 MB Notification: Performance of SimCode: time 3.202e-06/3.086, allocations: 0 / 1.069 GB, free: 60.66 MB / 490.7 MB Notification: Performance of Templates: time 0.0654/3.151, allocations: 41.27 MB / 1.11 GB, free: 58.19 MB / 490.7 MB