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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 1.838/1.838, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.782e-05/2.805e-05, allocations: 0 / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.08602, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8737/0.9598, allocations: 339.9 MB / 0.6509 GB, free: 28.06 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.96, allocations: 83.64 kB / 0.6509 GB, free: 28.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635/2.595, allocations: 302.6 MB / 0.9465 GB, free: 56.08 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.132e-06/2.595, allocations: 0 / 0.9465 GB, free: 56.08 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002217/2.595, allocations: 44.05 kB / 0.9465 GB, free: 56.07 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.007666/2.603, allocations: 2.058 MB / 0.9485 GB, free: 54.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/2.603, allocations: 10.41 kB / 0.9486 GB, free: 54.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00124/2.604, allocations: 205.4 kB / 0.9488 GB, free: 54.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003774/2.608, allocations: 1.264 MB / 0.95 GB, free: 53.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002073/2.608, allocations: 193 kB / 0.9502 GB, free: 53.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000485/2.609, allocations: 118.9 kB / 0.9503 GB, free: 53.13 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004373/2.613, allocations: 1.925 MB / 0.9522 GB, free: 51.13 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/2.613, allocations: 0 / 0.9522 GB, free: 51.13 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002628/2.614, allocations: 51.97 kB / 0.9522 GB, free: 51.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/2.614, allocations: 117.3 kB / 0.9523 GB, free: 50.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00418/2.618, allocations: 1.883 MB / 0.9542 GB, free: 49.07 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.01661/2.635, allocations: 7.026 MB / 0.961 GB, free: 41.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00269/2.637, allocations: 1.321 MB / 0.9623 GB, free: 40.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/2.639, allocations: 0.7773 MB / 0.9631 GB, free: 39.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007749/2.647, allocations: 4.514 MB / 0.9675 GB, free: 34.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/2.647, allocations: 55.44 kB / 0.9675 GB, free: 34.68 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001266/2.648, allocations: 223.5 kB / 0.9677 GB, free: 34.47 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 4.903e-06/2.648, allocations: 0 / 0.9677 GB, free: 34.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01187/2.66, allocations: 4.384 MB / 0.972 GB, free: 30.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.578e-05/2.66, allocations: 218.9 kB / 0.9722 GB, free: 29.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/2.662, allocations: 1.191 MB / 0.9734 GB, free: 28.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003612/2.663, allocations: 51.95 kB / 0.9735 GB, free: 28.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/2.663, allocations: 0.6116 MB / 0.974 GB, free: 27.93 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/2.664, allocations: 461.3 kB / 0.9745 GB, free: 27.47 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/2.664, allocations: 32 kB / 0.9745 GB, free: 27.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/2.664, allocations: 370.8 kB / 0.9749 GB, free: 27.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/2.666, allocations: 0.7363 MB / 0.9756 GB, free: 26.33 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/2.668, allocations: 1.061 MB / 0.9766 GB, free: 25.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/2.669, allocations: 0.8628 MB / 0.9775 GB, free: 24.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/2.669, allocations: 3.953 kB / 0.9775 GB, free: 24.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005386/2.675, allocations: 2.286 MB / 0.9797 GB, free: 21.99 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005794/2.675, allocations: 2.972 MB / 0.9826 GB, free: 18.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/2.675, allocations: 10.75 kB / 0.9826 GB, free: 18.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01081/2.686, allocations: 1.468 MB / 0.9841 GB, free: 17.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/2.688, allocations: 339.5 kB / 0.9844 GB, free: 16.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003317/2.692, allocations: 1.692 MB / 0.986 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002257/2.694, allocations: 111.7 kB / 0.9861 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003625/2.694, allocations: 79.95 kB / 0.9862 GB, free: 15.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/2.694, allocations: 4.625 kB / 0.9862 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004547/2.699, allocations: 1.972 MB / 0.9881 GB, free: 13.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.926e-05/2.699, allocations: 8 kB / 0.9881 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006148/2.705, allocations: 0.9129 MB / 0.989 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001998/2.707, allocations: 343.5 kB / 0.9894 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002018/2.709, allocations: 1.258 MB / 0.9906 GB, free: 10.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/2.711, allocations: 99.78 kB / 0.9907 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000286/2.711, allocations: 75.95 kB / 0.9908 GB, free: 10.39 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.0005451/2.712, allocations: 199.3 kB / 0.991 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/2.712, allocations: 162 kB / 0.9911 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006003/2.718, allocations: 2.479 MB / 0.9935 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.738e-05/2.719, allocations: 16 kB / 0.9935 GB, free: 7.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.608e-06/2.719, allocations: 0 / 0.9935 GB, free: 7.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.569e-05/2.719, allocations: 7.969 kB / 0.9936 GB, free: 7.512 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009057/2.728, allocations: 4.016 MB / 0.9975 GB, free: 3.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/2.728, allocations: 4 kB / 0.9975 GB, free: 3.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/2.729, allocations: 230.5 kB / 0.9977 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006889/2.736, allocations: 1.213 MB / 0.9989 GB, free: 2.004 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003521/2.737, allocations: 47.91 kB / 0.9989 GB, free: 1.957 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003209/2.74, allocations: 1.748 MB / 1.001 GB, free: 184 kB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.048e-06/2.74, allocations: 4 kB / 1.001 GB, free: 180 kB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008284/2.748, allocations: 3.275 MB / 1.004 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001673/2.75, allocations: 458.6 kB / 1.004 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006361/2.751, allocations: 28 kB / 1.004 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00211/2.753, allocations: 111.8 kB / 1.004 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004795/2.753, allocations: 117.1 kB / 1.005 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003072/2.754, allocations: 51.97 kB / 1.005 GB, free: 12.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00221/2.756, allocations: 0.9017 MB / 1.005 GB, free: 11.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.111e-06/2.756, allocations: 0 / 1.005 GB, free: 11.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006286/2.762, allocations: 1.428 MB / 1.007 GB, free: 9.777 MB / 442.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.004308/2.766, allocations: 1.22 MB / 1.008 GB, free: 8.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009462/2.776, allocations: 2.993 MB / 1.011 GB, free: 5.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/2.776, allocations: 0 / 1.011 GB, free: 5.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003237/2.779, allocations: 0.9924 MB / 1.012 GB, free: 4.578 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004751/2.784, allocations: 0.6837 MB / 1.013 GB, free: 3.91 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00876/2.793, allocations: 2.885 MB / 1.015 GB, free: 1.027 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2657/3.059, allocations: 1.397 MB / 1.017 GB, free: 69.39 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008992/3.059, allocations: 165.4 kB / 1.017 GB, free: 69.38 MB / 442.7 MB Notification: Performance of SimCode: time 1.992e-06/3.06, allocations: 0 / 1.017 GB, free: 69.38 MB / 442.7 MB Notification: Performance of Templates: time 0.07157/3.131, allocations: 41.19 MB / 1.057 GB, free: 67.44 MB / 442.7 MB