Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 1.95/1.95, allocations: 209.3 MB / 223.8 MB, free: 432 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.066e-05, allocations: 0 / 276.2 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3556, allocations: 48.7 MB / 324.9 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03948/0.3951, allocations: 22.77 MB / 347.6 MB, free: 3.875 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0218/0.417, allocations: 10.57 MB / 358.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006146/0.4176, allocations: 15.91 kB / 358.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008412/0.4185, allocations: 183.6 kB / 358.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.4293, allocations: 2.507 MB / 360.9 MB, free: 9.293 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007183/0.4365, allocations: 1.647 MB / 362.6 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.4379, allocations: 425 kB / 363 MB, free: 7.617 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004718/0.4384, allocations: 156.2 kB / 363.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.4396, allocations: 359.6 kB / 363.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004683/0.4401, allocations: 185.7 kB / 363.7 MB, free: 7.195 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01985/0.46, allocations: 6.432 MB / 370.1 MB, free: 2.191 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003042/0.4631, allocations: 388 kB / 370.5 MB, free: 1.812 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002635/0.4634, allocations: 83.67 kB / 370.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002844/0.4637, allocations: 44 kB / 370.6 MB, free: 1.688 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008537/0.4722, allocations: 2.709 MB / 373.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4723, allocations: 4 kB / 373.3 MB, free: 14.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.833e-06/0.4723, allocations: 4 kB / 373.3 MB, free: 14.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.19e-05/0.4723, allocations: 0 / 373.3 MB, free: 14.96 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004297/0.4766, allocations: 1.107 MB / 374.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.4767, allocations: 8.031 kB / 374.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00262/0.4793, allocations: 207.2 kB / 374.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009483/0.4803, allocations: 370.1 kB / 375 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.964e-05/0.4804, allocations: 24.61 kB / 375 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.487e-05/0.4805, allocations: 35.98 kB / 375.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002647/0.4832, allocations: 0.5901 MB / 375.6 MB, free: 12.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.4832, allocations: 0 / 375.6 MB, free: 12.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.4833, allocations: 16 kB / 375.7 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.4833, allocations: 8 kB / 375.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002797/0.4862, allocations: 0.5601 MB / 376.2 MB, free: 11.92 MB / 314.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.004495/0.4907, allocations: 2.559 MB / 378.8 MB, free: 9.129 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.4932, allocations: 482.2 kB / 379.3 MB, free: 8.648 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1982/0.6914, allocations: 51.95 MB / 431.2 MB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.934e-05/0.6914, allocations: 30.56 kB / 431.2 MB, free: 15.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 2.605e-06/0.6915, allocations: 0 / 431.2 MB, free: 15.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004327/0.6958, allocations: 0.8247 MB / 432.1 MB, free: 14.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.6959, allocations: 102.8 kB / 432.2 MB, free: 14.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004363/0.6964, allocations: 255.6 kB / 432.4 MB, free: 13.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.6964, allocations: 33.64 kB / 432.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002063/0.6966, allocations: 223.9 kB / 432.7 MB, free: 13.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.6968, allocations: 82.84 kB / 432.8 MB, free: 13.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.213e-05/0.6968, allocations: 12 kB / 432.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.697, allocations: 338.8 kB / 433.1 MB, free: 13.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007061/0.6977, allocations: 152.5 kB / 433.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007864/0.6985, allocations: 272.6 kB / 433.5 MB, free: 12.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007328/0.6993, allocations: 171.9 kB / 433.7 MB, free: 12.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.6993, allocations: 4 kB / 433.7 MB, free: 12.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001787/0.7011, allocations: 473.5 kB / 434.1 MB, free: 12.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.7011, allocations: 12.06 kB / 434.2 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.7011, allocations: 11.94 kB / 434.2 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.7012, allocations: 7.938 kB / 434.2 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006752/0.7019, allocations: 91.89 kB / 434.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-05/0.7019, allocations: 7.984 kB / 434.3 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005733/0.7025, allocations: 63.72 kB / 434.3 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/0.7026, allocations: 20 kB / 434.4 MB, free: 11.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002965/0.7029, allocations: 169.6 kB / 434.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.703, allocations: 31.62 kB / 434.6 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004106/0.7071, allocations: 1.927 MB / 436.5 MB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.673e-05/0.7072, allocations: 27.95 kB / 436.5 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.7072, allocations: 0 / 436.5 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.7072, allocations: 7.984 kB / 436.5 MB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.7089, allocations: 0.9843 MB / 437.5 MB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.546e-05/0.709, allocations: 7.984 kB / 437.5 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006056/0.7096, allocations: 83.88 kB / 437.6 MB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.7096, allocations: 3.938 kB / 437.6 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.7096, allocations: 8 kB / 437.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.7097, allocations: 0 / 437.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.7097, allocations: 0 / 437.6 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/0.7121, allocations: 1.096 MB / 438.7 MB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.7125, allocations: 211.5 kB / 438.9 MB, free: 7.301 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.7126, allocations: 4 kB / 438.9 MB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005115/0.7131, allocations: 43.88 kB / 438.9 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.7132, allocations: 35.94 kB / 439 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.192e-05/0.7133, allocations: 12 kB / 439 MB, free: 7.207 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004413/0.7138, allocations: 259.1 kB / 439.2 MB, free: 6.953 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7138, allocations: 0 / 439.2 MB, free: 6.953 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003375/0.7172, allocations: 0.9369 MB / 440.2 MB, free: 6.016 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006458/0.7237, allocations: 1.162 MB / 441.3 MB, free: 4.848 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.7258, allocations: 0.6149 MB / 442 MB, free: 4.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7258, allocations: 0 / 442 MB, free: 4.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.7271, allocations: 0.5211 MB / 442.5 MB, free: 3.711 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.7289, allocations: 181 kB / 442.7 MB, free: 3.539 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.7328, allocations: 1.971 MB / 444.6 MB, free: 1.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008047/0.7336, allocations: 0.9797 MB / 445.6 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000843/0.7345, allocations: 278.8 kB / 445.9 MB, free: 268 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.7347, allocations: 39.44 kB / 445.9 MB, free: 228 kB / 378.7 MB Notification: Performance of SimCode: time 2.895e-06/0.7347, allocations: 0 / 445.9 MB, free: 228 kB / 378.7 MB Notification: Performance of Templates: time 0.06985/0.8045, allocations: 28.52 MB / 474.4 MB, free: 3.727 MB / 410.7 MB