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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.147/2.147, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.128e-05/2.142e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2778, allocations: 54.86 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9149/1.193, allocations: 345.5 MB / 0.6871 GB, free: 105.7 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/1.193, allocations: 83.3 kB / 0.6872 GB, free: 105.7 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.196/2.39, allocations: 300.7 MB / 0.9808 GB, free: 6.441 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.364e-06/2.39, allocations: 3.938 kB / 0.9808 GB, free: 6.438 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001701/2.39, allocations: 40 kB / 0.9809 GB, free: 6.398 MB / 474.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.006832/2.397, allocations: 2.049 MB / 0.9829 GB, free: 4.312 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/2.397, allocations: 12.03 kB / 0.9829 GB, free: 4.301 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/2.398, allocations: 201.8 kB / 0.9831 GB, free: 4.102 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003936/2.402, allocations: 1.271 MB / 0.9843 GB, free: 2.801 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001815/2.402, allocations: 139.2 kB / 0.9844 GB, free: 2.645 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004448/2.403, allocations: 68 kB / 0.9845 GB, free: 2.578 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004167/2.407, allocations: 1.75 MB / 0.9862 GB, free: 0.8242 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2981/2.705, allocations: 1.752 MB / 0.9879 GB, free: 56.88 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.083e-05/2.705, allocations: 2.406 kB / 0.9879 GB, free: 56.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002477/2.705, allocations: 2.812 kB / 0.9879 GB, free: 56.88 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002466/2.705, allocations: 118.6 kB / 0.9881 GB, free: 56.88 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01828/2.724, allocations: 6.761 MB / 0.9947 GB, free: 54.81 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002668/2.726, allocations: 1.266 MB / 0.9959 GB, free: 54.79 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/2.728, allocations: 0.766 MB / 0.9966 GB, free: 54.77 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008267/2.736, allocations: 4.417 MB / 1.001 GB, free: 52.46 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/2.736, allocations: 47.94 kB / 1.001 GB, free: 52.43 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001188/2.738, allocations: 172.3 kB / 1.001 GB, free: 52.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=117): time 6.567e-06/2.738, allocations: 7.109 kB / 1.001 GB, free: 52.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=132): time 0.02371/2.761, allocations: 4.995 MB / 1.006 GB, free: 51.81 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/2.761, allocations: 221.3 kB / 1.006 GB, free: 51.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00177/2.763, allocations: 0.8979 MB / 1.007 GB, free: 51.41 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000406/2.764, allocations: 29.67 kB / 1.007 GB, free: 51.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004206/2.764, allocations: 0.6504 MB / 1.008 GB, free: 51.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000504/2.765, allocations: 444.7 kB / 1.008 GB, free: 50.86 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/2.765, allocations: 2.906 kB / 1.008 GB, free: 50.86 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/2.765, allocations: 375.4 kB / 1.009 GB, free: 50.54 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/2.767, allocations: 0.7194 MB / 1.009 GB, free: 50.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/2.768, allocations: 1.042 MB / 1.01 GB, free: 50.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01644/2.785, allocations: 2.546 MB / 1.013 GB, free: 50.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-05/2.785, allocations: 0 / 1.013 GB, free: 50.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.02019/2.805, allocations: 3.894 MB / 1.017 GB, free: 50.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006106/2.806, allocations: 2.965 MB / 1.019 GB, free: 47.02 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.6e-05/2.806, allocations: 10.33 kB / 1.019 GB, free: 47.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007886/2.814, allocations: 1.139 MB / 1.021 GB, free: 47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/2.816, allocations: 330.7 kB / 1.021 GB, free: 47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009668/2.825, allocations: 2.108 MB / 1.023 GB, free: 46.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003503/2.829, allocations: 69.33 kB / 1.023 GB, free: 46.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006229/2.83, allocations: 74.45 kB / 1.023 GB, free: 46.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/2.83, allocations: 8.531 kB / 1.023 GB, free: 46.45 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02518/2.855, allocations: 3.252 MB / 1.026 GB, free: 46.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.292e-05/2.855, allocations: 11.06 kB / 1.026 GB, free: 46.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009333/2.864, allocations: 0.8883 MB / 1.027 GB, free: 46.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003146/2.868, allocations: 346.2 kB / 1.028 GB, free: 46.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/2.871, allocations: 1.323 MB / 1.029 GB, free: 45.86 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/2.874, allocations: 75.2 kB / 1.029 GB, free: 45.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005024/2.874, allocations: 76.11 kB / 1.029 GB, free: 45.86 MB / 474.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 () * 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.0008262/2.875, allocations: 145.8 kB / 1.029 GB, free: 45.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007759/2.876, allocations: 147.3 kB / 1.029 GB, free: 45.68 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01824/2.894, allocations: 2.634 MB / 1.032 GB, free: 45.56 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.868e-05/2.894, allocations: 15.59 kB / 1.032 GB, free: 45.56 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/2.894, allocations: 0 / 1.032 GB, free: 45.56 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.684e-05/2.895, allocations: 7.734 kB / 1.032 GB, free: 45.56 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01356/2.908, allocations: 4.062 MB / 1.036 GB, free: 45.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/2.908, allocations: 5.781 kB / 1.036 GB, free: 45.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/2.91, allocations: 234.7 kB / 1.036 GB, free: 45.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004065/2.914, allocations: 0.9205 MB / 1.037 GB, free: 45.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003264/2.914, allocations: 22.05 kB / 1.037 GB, free: 45.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005455/2.92, allocations: 2.097 MB / 1.039 GB, free: 44.65 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.153e-06/2.92, allocations: 6.75 kB / 1.039 GB, free: 44.65 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01008/2.93, allocations: 3.45 MB / 1.042 GB, free: 44.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/2.931, allocations: 439.2 kB / 1.043 GB, free: 44.21 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004301/2.932, allocations: 2 kB / 1.043 GB, free: 44.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001723/2.933, allocations: 78.27 kB / 1.043 GB, free: 44.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003122/2.934, allocations: 115.4 kB / 1.043 GB, free: 44.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002221/2.934, allocations: 61.84 kB / 1.043 GB, free: 44.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00124/2.935, allocations: 0.6593 MB / 1.044 GB, free: 44.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.65e-07/2.935, allocations: 0 / 1.044 GB, free: 44.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005451/2.941, allocations: 1.33 MB / 1.045 GB, free: 44.1 MB / 474.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 () * 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.00416/2.945, allocations: 1.204 MB / 1.046 GB, free: 43.98 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007953/2.953, allocations: 2.882 MB / 1.049 GB, free: 43.88 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.445e-06/2.953, allocations: 0 / 1.049 GB, free: 43.88 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/2.956, allocations: 0.9557 MB / 1.05 GB, free: 43.86 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/2.96, allocations: 0.6258 MB / 1.051 GB, free: 43.84 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00739/2.967, allocations: 2.762 MB / 1.053 GB, free: 43.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/2.968, allocations: 1.409 MB / 1.055 GB, free: 42.51 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009062/2.969, allocations: 155.5 kB / 1.055 GB, free: 42.5 MB / 474.7 MB Notification: Performance of SimCode: time 2.024e-06/2.969, allocations: 0 / 1.055 GB, free: 42.5 MB / 474.7 MB Notification: Performance of Templates: time 0.0646/3.034, allocations: 40.12 MB / 1.094 GB, free: 39.89 MB / 474.7 MB