Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") Notification: Performance of loadModel(ModelicaTest): time 2.032/2.032, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.667e-05/1.679e-05, allocations: 0 / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2672, allocations: 48.68 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8416/1.109, allocations: 339.3 MB / 0.6438 GB, free: 125.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/1.109, allocations: 86.91 kB / 0.6439 GB, free: 125.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.427/2.536, allocations: 300.7 MB / 0.9376 GB, free: 45.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.67e-06/2.536, allocations: 0 / 0.9376 GB, free: 45.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001812/2.536, allocations: 50.48 kB / 0.9376 GB, free: 45.25 MB / 426.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.007054/2.543, allocations: 2.062 MB / 0.9396 GB, free: 44.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/2.543, allocations: 13.08 kB / 0.9397 GB, free: 44.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001218/2.545, allocations: 196.9 kB / 0.9398 GB, free: 44.38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003958/2.549, allocations: 1.261 MB / 0.9411 GB, free: 44.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/2.549, allocations: 145.2 kB / 0.9412 GB, free: 43.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003954/2.549, allocations: 65.78 kB / 0.9413 GB, free: 43.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004157/2.553, allocations: 1.749 MB / 0.943 GB, free: 43.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004363/2.558, allocations: 1.756 MB / 0.9447 GB, free: 43.74 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.401e-05/2.558, allocations: 6.281 kB / 0.9447 GB, free: 43.74 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002496/2.558, allocations: 5.125 kB / 0.9447 GB, free: 43.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001828/2.558, allocations: 117.7 kB / 0.9448 GB, free: 43.73 MB / 426.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.01673/2.575, allocations: 6.754 MB / 0.9514 GB, free: 41.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/2.578, allocations: 1.266 MB / 0.9527 GB, free: 41.57 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001582/2.579, allocations: 0.7729 MB / 0.9534 GB, free: 41.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008863/2.588, allocations: 4.424 MB / 0.9577 GB, free: 39.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/2.588, allocations: 45.59 kB / 0.9578 GB, free: 39.2 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00125/2.59, allocations: 171.5 kB / 0.9579 GB, free: 39.17 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 5.877e-06/2.59, allocations: 2.469 kB / 0.9579 GB, free: 39.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.02229/2.612, allocations: 5 MB / 0.9628 GB, free: 38.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/2.612, allocations: 224.7 kB / 0.963 GB, free: 38.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001717/2.614, allocations: 0.8967 MB / 0.9639 GB, free: 38.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003915/2.614, allocations: 36.8 kB / 0.9639 GB, free: 38.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000412/2.615, allocations: 0.6548 MB / 0.9646 GB, free: 37.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004896/2.615, allocations: 440.9 kB / 0.965 GB, free: 37.49 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/2.615, allocations: 0 / 0.965 GB, free: 37.49 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001198/2.615, allocations: 371.5 kB / 0.9654 GB, free: 37.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/2.617, allocations: 0.72 MB / 0.9661 GB, free: 37.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/2.619, allocations: 1.036 MB / 0.9671 GB, free: 36.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01598/2.635, allocations: 2.544 MB / 0.9696 GB, free: 36.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.136e-05/2.635, allocations: 3.781 kB / 0.9696 GB, free: 36.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.01824/2.653, allocations: 3.891 MB / 0.9734 GB, free: 36.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006225/2.654, allocations: 2.97 MB / 0.9763 GB, free: 33.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-05/2.654, allocations: 7.781 kB / 0.9763 GB, free: 33.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006729/2.661, allocations: 1.15 MB / 0.9774 GB, free: 33.63 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001863/2.662, allocations: 328.8 kB / 0.9777 GB, free: 33.63 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00606/2.669, allocations: 2.111 MB / 0.9798 GB, free: 33.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/2.671, allocations: 68.19 kB / 0.9798 GB, free: 33.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004071/2.671, allocations: 77.55 kB / 0.9799 GB, free: 33.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/2.671, allocations: 6.438 kB / 0.9799 GB, free: 33.08 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01619/2.687, allocations: 3.254 MB / 0.9831 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.4e-05/2.688, allocations: 7.688 kB / 0.9831 GB, free: 33.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006616/2.694, allocations: 0.884 MB / 0.984 GB, free: 33.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0019/2.696, allocations: 351.4 kB / 0.9843 GB, free: 33.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/2.698, allocations: 1.311 MB / 0.9856 GB, free: 32.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/2.7, allocations: 67.47 kB / 0.9856 GB, free: 32.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000266/2.7, allocations: 74.25 kB / 0.9857 GB, free: 32.48 MB / 426.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.0005332/2.701, allocations: 143.6 kB / 0.9859 GB, free: 32.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004729/2.701, allocations: 148.9 kB / 0.986 GB, free: 32.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009192/2.711, allocations: 2.632 MB / 0.9886 GB, free: 32.17 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-05/2.711, allocations: 21.44 kB / 0.9886 GB, free: 32.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/2.711, allocations: 3.062 kB / 0.9886 GB, free: 32.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.362e-05/2.711, allocations: 6.703 kB / 0.9886 GB, free: 32.17 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/2.723, allocations: 4.072 MB / 0.9926 GB, free: 31.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/2.723, allocations: 0 / 0.9926 GB, free: 31.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/2.724, allocations: 228.7 kB / 0.9928 GB, free: 31.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003948/2.728, allocations: 0.9169 MB / 0.9937 GB, free: 31.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003225/2.729, allocations: 27.53 kB / 0.9937 GB, free: 31.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/2.734, allocations: 2.092 MB / 0.9958 GB, free: 31.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/2.734, allocations: 1.875 kB / 0.9958 GB, free: 31.26 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009969/2.744, allocations: 3.452 MB / 0.9991 GB, free: 30.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/2.746, allocations: 433.7 kB / 0.9995 GB, free: 30.81 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004877/2.746, allocations: 5.406 kB / 0.9995 GB, free: 30.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/2.748, allocations: 81.11 kB / 0.9996 GB, free: 30.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/2.748, allocations: 117.8 kB / 0.9997 GB, free: 30.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002095/2.749, allocations: 64.83 kB / 0.9998 GB, free: 30.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001256/2.75, allocations: 0.6643 MB / 1 GB, free: 30.69 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.049e-06/2.75, allocations: 0 / 1 GB, free: 30.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005455/2.755, allocations: 1.328 MB / 1.002 GB, free: 30.45 MB / 426.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.004048/2.759, allocations: 1.213 MB / 1.003 GB, free: 30.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007594/2.767, allocations: 2.875 MB / 1.006 GB, free: 29.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.912e-06/2.767, allocations: 2.344 kB / 1.006 GB, free: 29.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00275/2.77, allocations: 0.9522 MB / 1.007 GB, free: 29.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003804/2.774, allocations: 0.6157 MB / 1.007 GB, free: 29.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00748/2.781, allocations: 2.762 MB / 1.01 GB, free: 29.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001751/2.783, allocations: 1.407 MB / 1.011 GB, free: 44.63 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008742/2.784, allocations: 155.1 kB / 1.011 GB, free: 44.62 MB / 442.7 MB Notification: Performance of SimCode: time 1.843e-06/2.784, allocations: 0 / 1.011 GB, free: 44.62 MB / 442.7 MB Notification: Performance of Templates: time 0.06316/2.847, allocations: 40.13 MB / 1.051 GB, free: 36.22 MB / 442.7 MB