Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.482/2.482, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.315e-05/3.308e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1325, allocations: 61.88 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.4676/0.6001, allocations: 75.96 MB / 486.9 MB, free: 11.43 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06917/0.6694, allocations: 30.63 MB / 0.5054 GB, free: 12.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004139/0.6736, allocations: 95.31 kB / 0.5055 GB, free: 12.84 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00565/0.6793, allocations: 1.023 MB / 0.5065 GB, free: 11.81 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02735/0.7067, allocations: 5.518 MB / 0.5119 GB, free: 6.273 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02352/0.7302, allocations: 6.26 MB / 0.518 GB, free: 0 / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008181/0.7384, allocations: 2.995 MB / 0.5209 GB, free: 12.99 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002473/0.741, allocations: 0.9958 MB / 0.5219 GB, free: 12 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005748/0.7467, allocations: 1.781 MB / 0.5236 GB, free: 10.21 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05103/0.7978, allocations: 20.95 MB / 0.5441 GB, free: 5.25 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02824/0.8261, allocations: 9.587 MB / 0.5534 GB, free: 11.65 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004539/0.8307, allocations: 0.582 MB / 0.554 GB, free: 11.07 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00182/0.8326, allocations: 0.744 MB / 0.5547 GB, free: 10.32 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001453/0.8341, allocations: 272 kB / 0.555 GB, free: 10.06 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01711/0.8512, allocations: 6.369 MB / 0.5612 GB, free: 3.676 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.8513, allocations: 0 / 0.5612 GB, free: 3.676 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.8513, allocations: 3.938 kB / 0.5612 GB, free: 3.672 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001326/0.8514, allocations: 0 / 0.5612 GB, free: 3.672 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01324/0.8647, allocations: 3.361 MB / 0.5645 GB, free: 252 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.8647, allocations: 8.031 kB / 0.5645 GB, free: 244 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008832/0.8736, allocations: 0.8438 MB / 0.5653 GB, free: 15.39 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004979/0.8786, allocations: 1.559 MB / 0.5668 GB, free: 13.78 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.879, allocations: 179.7 kB / 0.567 GB, free: 13.6 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007297/0.8798, allocations: 199.9 kB / 0.5672 GB, free: 13.41 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/0.8926, allocations: 3.503 MB / 0.5706 GB, free: 9.742 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.773e-05/0.8928, allocations: 7.938 kB / 0.5706 GB, free: 9.734 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004041/0.8932, allocations: 87.95 kB / 0.5707 GB, free: 9.648 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004331/0.8936, allocations: 187.5 kB / 0.5709 GB, free: 9.465 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01366/0.9073, allocations: 3.293 MB / 0.5741 GB, free: 6.168 MB / 490.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.03364/0.941, allocations: 15.16 MB / 0.5889 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009887/0.9509, allocations: 2.338 MB / 0.5912 GB, free: 3.406 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4513/1.402, allocations: 24.79 MB / 0.6154 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00771/1.41, allocations: 1.654 MB / 0.617 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.983e-06/1.41, allocations: 1.078 kB / 0.617 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.0425/1.453, allocations: 8.961 MB / 0.6258 GB, free: 164.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/1.453, allocations: 233.9 kB / 0.626 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004309/1.457, allocations: 1.441 MB / 0.6274 GB, free: 164 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005999/1.458, allocations: 62.55 kB / 0.6275 GB, free: 164 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001236/1.459, allocations: 0.9256 MB / 0.6284 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001136/1.46, allocations: 0.587 MB / 0.6289 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002577/1.46, allocations: 41.28 kB / 0.629 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001925/1.461, allocations: 391.2 kB / 0.6294 GB, free: 162.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003927/1.465, allocations: 1.157 MB / 0.6305 GB, free: 162 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004436/1.469, allocations: 1.645 MB / 0.6321 GB, free: 161 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004443/1.474, allocations: 1.39 MB / 0.6334 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.18e-05/1.474, allocations: 4 kB / 0.6335 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01075/1.484, allocations: 3.244 MB / 0.6366 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001111/1.486, allocations: 5.26 MB / 0.6418 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.358e-05/1.486, allocations: 17.75 kB / 0.6418 GB, free: 153.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001462/1.487, allocations: 257.9 kB / 0.642 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00428/1.491, allocations: 0.5277 MB / 0.6425 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/1.493, allocations: 2.504 MB / 0.645 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004116/1.497, allocations: 263.1 kB / 0.6452 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005754/1.498, allocations: 100.9 kB / 0.6453 GB, free: 151.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.498, allocations: 3.938 kB / 0.6453 GB, free: 151.1 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01009/1.508, allocations: 3.101 MB / 0.6484 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.013e-05/1.508, allocations: 11.91 kB / 0.6484 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/1.51, allocations: 265.7 kB / 0.6486 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004183/1.514, allocations: 0.5205 MB / 0.6491 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/1.516, allocations: 2.492 MB / 0.6516 GB, free: 147.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/1.519, allocations: 266.9 kB / 0.6518 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/1.519, allocations: 104 kB / 0.6519 GB, free: 147.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (253): * Single equations (assignments): 246 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001801/1.521, allocations: 0.6533 MB / 0.6526 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006596/1.522, allocations: 202.1 kB / 0.6527 GB, free: 146.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01542/1.537, allocations: 7.794 MB / 0.6604 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.074e-05/1.537, allocations: 95.8 kB / 0.6604 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.537, allocations: 3.875 kB / 0.6605 GB, free: 141.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01173/1.549, allocations: 6.697 MB / 0.667 GB, free: 134.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02074/1.57, allocations: 11 MB / 0.6777 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/1.57, allocations: 0 / 0.6777 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003084/1.573, allocations: 403.5 kB / 0.6781 GB, free: 123.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001897/1.575, allocations: 358.8 kB / 0.6785 GB, free: 123 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/1.575, allocations: 59.97 kB / 0.6785 GB, free: 123 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/1.577, allocations: 2.574 MB / 0.681 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.577, allocations: 8.016 kB / 0.681 GB, free: 120.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01508/1.592, allocations: 7.225 MB / 0.6881 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002102/1.594, allocations: 0.765 MB / 0.6888 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007806/1.595, allocations: 51.98 kB / 0.6889 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002626/1.597, allocations: 202.3 kB / 0.6891 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003909/1.598, allocations: 153.7 kB / 0.6892 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.598, allocations: 71.97 kB / 0.6893 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002387/1.6, allocations: 1.286 MB / 0.6906 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.01e-07/1.6, allocations: 0 / 0.6906 GB, free: 110.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008961/1.609, allocations: 2.57 MB / 0.6931 GB, free: 108 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01039/1.62, allocations: 2.13 MB / 0.6951 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01454/1.634, allocations: 5.344 MB / 0.7004 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/1.634, allocations: 4.062 kB / 0.7004 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006099/1.641, allocations: 2.473 MB / 0.7028 GB, free: 98.39 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008239/1.649, allocations: 0.9244 MB / 0.7037 GB, free: 97.48 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/1.666, allocations: 9.018 MB / 0.7125 GB, free: 88.45 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002487/1.669, allocations: 2.261 MB / 0.7147 GB, free: 86.16 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001441/1.67, allocations: 215.4 kB / 0.7149 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of SimCode: time 1.854e-06/1.67, allocations: 0 / 0.7149 GB, free: 85.95 MB / 0.5105 GB Notification: Performance of Templates: time 0.5911/2.262, allocations: 115.1 MB / 0.8273 GB, free: 151.9 MB / 0.5105 GB