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.162/2.162, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.701e-05/2.72e-05, allocations: 4 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4024, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7071/1.11, allocations: 346.2 MB / 0.6941 GB, free: 4.992 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/1.11, allocations: 86.02 kB / 0.6942 GB, free: 4.949 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.711/2.821, allocations: 302.6 MB / 0.9897 GB, free: 81.99 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.267e-06/2.821, allocations: 0 / 0.9897 GB, free: 81.99 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001954/2.822, allocations: 45.19 kB / 0.9898 GB, free: 81.98 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.007294/2.829, allocations: 2.065 MB / 0.9918 GB, free: 80.91 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/2.829, allocations: 7.844 kB / 0.9918 GB, free: 80.91 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/2.83, allocations: 202.7 kB / 0.992 GB, free: 80.82 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003745/2.834, allocations: 1.262 MB / 0.9932 GB, free: 80.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/2.834, allocations: 184.4 kB / 0.9934 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004587/2.835, allocations: 115.6 kB / 0.9935 GB, free: 80.35 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004355/2.839, allocations: 1.934 MB / 0.9954 GB, free: 80.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.177e-05/2.839, allocations: 0 / 0.9954 GB, free: 80.11 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002582/2.839, allocations: 49.39 kB / 0.9954 GB, free: 80.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001909/2.84, allocations: 119.9 kB / 0.9955 GB, free: 80.11 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004455/2.844, allocations: 1.895 MB / 0.9974 GB, free: 80.09 MB / 490.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.01608/2.86, allocations: 7.028 MB / 1.004 GB, free: 77.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002906/2.863, allocations: 1.3 MB / 1.006 GB, free: 77.76 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/2.865, allocations: 0.7882 MB / 1.006 GB, free: 77.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008552/2.874, allocations: 4.507 MB / 1.011 GB, free: 74.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/2.874, allocations: 50.12 kB / 1.011 GB, free: 74.83 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001481/2.875, allocations: 224.1 kB / 1.011 GB, free: 74.74 MB / 490.7 MB Notification: Performance of pre-optimization done (n=117): time 5.304e-06/2.875, allocations: 3.375 kB / 1.011 GB, free: 74.74 MB / 490.7 MB Notification: Performance of matching and sorting (n=132): time 0.01265/2.888, allocations: 4.371 MB / 1.015 GB, free: 73.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.59e-05/2.888, allocations: 227.2 kB / 1.015 GB, free: 72.76 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002223/2.89, allocations: 1.184 MB / 1.017 GB, free: 72.29 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003305/2.89, allocations: 52.14 kB / 1.017 GB, free: 72.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004271/2.891, allocations: 0.6187 MB / 1.017 GB, free: 71.69 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000535/2.891, allocations: 458.6 kB / 1.018 GB, free: 71.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/2.892, allocations: 27.91 kB / 1.018 GB, free: 71.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/2.892, allocations: 380.5 kB / 1.018 GB, free: 70.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001743/2.894, allocations: 0.7355 MB / 1.019 GB, free: 70.71 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/2.896, allocations: 1.055 MB / 1.02 GB, free: 70.07 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00199/2.898, allocations: 0.8632 MB / 1.021 GB, free: 69.77 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.031e-06/2.898, allocations: 0 / 1.021 GB, free: 69.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005432/2.903, allocations: 2.288 MB / 1.023 GB, free: 68.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005913/2.904, allocations: 2.967 MB / 1.026 GB, free: 65.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.253e-05/2.904, allocations: 15.28 kB / 1.026 GB, free: 65.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/2.914, allocations: 1.464 MB / 1.027 GB, free: 65.65 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002023/2.916, allocations: 335.3 kB / 1.028 GB, free: 65.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003488/2.919, allocations: 1.696 MB / 1.029 GB, free: 64.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00239/2.922, allocations: 105 kB / 1.029 GB, free: 64.64 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005106/2.922, allocations: 76.09 kB / 1.029 GB, free: 64.63 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/2.922, allocations: 8.656 kB / 1.029 GB, free: 64.63 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005511/2.928, allocations: 1.981 MB / 1.031 GB, free: 63.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.149e-05/2.928, allocations: 11.78 kB / 1.031 GB, free: 63.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00753/2.936, allocations: 0.9188 MB / 1.032 GB, free: 63.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/2.938, allocations: 336.9 kB / 1.033 GB, free: 63.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/2.94, allocations: 1.251 MB / 1.034 GB, free: 62.99 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/2.942, allocations: 103.3 kB / 1.034 GB, free: 62.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/2.942, allocations: 77.91 kB / 1.034 GB, free: 62.95 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 () * 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.0005626/2.943, allocations: 191.3 kB / 1.034 GB, free: 62.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005092/2.943, allocations: 168.7 kB / 1.034 GB, free: 62.69 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006594/2.95, allocations: 2.466 MB / 1.037 GB, free: 61.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-05/2.95, allocations: 15.84 kB / 1.037 GB, free: 61.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.767e-06/2.95, allocations: 0 / 1.037 GB, free: 61.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.262e-05/2.95, allocations: 13.84 kB / 1.037 GB, free: 61.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008933/2.959, allocations: 4.031 MB / 1.041 GB, free: 58.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/2.959, allocations: 0 / 1.041 GB, free: 58.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001595/2.961, allocations: 232.7 kB / 1.041 GB, free: 58.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006768/2.968, allocations: 1.206 MB / 1.042 GB, free: 57.47 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003569/2.968, allocations: 43.69 kB / 1.042 GB, free: 57.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002958/2.971, allocations: 1.748 MB / 1.044 GB, free: 55.85 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.033e-06/2.971, allocations: 2.25 kB / 1.044 GB, free: 55.85 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006704/2.978, allocations: 3.268 MB / 1.047 GB, free: 52.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/2.979, allocations: 457.9 kB / 1.047 GB, free: 52.51 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004562/2.98, allocations: 39.23 kB / 1.048 GB, free: 52.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/2.981, allocations: 101.2 kB / 1.048 GB, free: 52.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003166/2.982, allocations: 113.4 kB / 1.048 GB, free: 52.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/2.982, allocations: 68.97 kB / 1.048 GB, free: 52.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001639/2.984, allocations: 0.9012 MB / 1.049 GB, free: 51.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.024e-06/2.984, allocations: 0 / 1.049 GB, free: 51.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005163/2.989, allocations: 1.423 MB / 1.05 GB, free: 50.06 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 () * 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.003588/2.992, allocations: 1.224 MB / 1.051 GB, free: 49.09 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007796/3, allocations: 2.991 MB / 1.054 GB, free: 46.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.554e-06/3, allocations: 0 / 1.054 GB, free: 46.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002644/3.003, allocations: 0.9877 MB / 1.055 GB, free: 45.49 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004321/3.007, allocations: 0.6937 MB / 1.056 GB, free: 45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007423/3.015, allocations: 2.899 MB / 1.059 GB, free: 42.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009711/3.016, allocations: 1.407 MB / 1.06 GB, free: 41.37 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00083/3.017, allocations: 165.2 kB / 1.06 GB, free: 41.23 MB / 490.7 MB Notification: Performance of SimCode: time 1.858e-06/3.017, allocations: 0 / 1.06 GB, free: 41.23 MB / 490.7 MB Notification: Performance of Templates: time 0.06032/3.077, allocations: 41.17 MB / 1.1 GB, free: 1.461 MB / 490.7 MB