Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.292/2.292, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.463e-05/3.448e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3684, allocations: 54.86 MB / 362.9 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.1296/0.4981, allocations: 75.57 MB / 438.4 MB, free: 2.035 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06442/0.5626, allocations: 30.49 MB / 468.9 MB, free: 3.477 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003854/0.5665, allocations: 107.2 kB / 469 MB, free: 3.371 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004694/0.5712, allocations: 1.015 MB / 470.1 MB, free: 2.352 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03113/0.6024, allocations: 5.483 MB / 475.5 MB, free: 12.85 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0382/0.6406, allocations: 6.232 MB / 481.8 MB, free: 6.605 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01081/0.6515, allocations: 3.038 MB / 484.8 MB, free: 3.559 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002304/0.6538, allocations: 0.9996 MB / 485.8 MB, free: 2.559 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006236/0.6601, allocations: 1.757 MB / 487.6 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.439/1.099, allocations: 20.94 MB / 0.4966 GB, free: 26.02 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02954/1.129, allocations: 9.555 MB / 0.5059 GB, free: 26 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004485/1.133, allocations: 0.5811 MB / 0.5065 GB, free: 26 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001634/1.135, allocations: 0.7352 MB / 0.5072 GB, free: 26 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001012/1.136, allocations: 273.3 kB / 0.5075 GB, free: 26 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01621/1.152, allocations: 6.334 MB / 0.5136 GB, free: 25.59 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.152, allocations: 0 / 0.5136 GB, free: 25.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.574e-06/1.152, allocations: 0 / 0.5136 GB, free: 25.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001039/1.152, allocations: 0 / 0.5136 GB, free: 25.59 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01229/1.165, allocations: 3.354 MB / 0.5169 GB, free: 24.02 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/1.165, allocations: 10.62 kB / 0.5169 GB, free: 24.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008368/1.173, allocations: 0.8347 MB / 0.5178 GB, free: 23.88 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004638/1.178, allocations: 1.574 MB / 0.5193 GB, free: 23.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002312/1.178, allocations: 184 kB / 0.5195 GB, free: 23.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005095/1.179, allocations: 197.9 kB / 0.5197 GB, free: 23.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01129/1.19, allocations: 3.489 MB / 0.5231 GB, free: 23.01 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.978e-05/1.19, allocations: 5.344 kB / 0.5231 GB, free: 23.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003446/1.19, allocations: 84.45 kB / 0.5231 GB, free: 23.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003602/1.191, allocations: 188.7 kB / 0.5233 GB, free: 23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/1.203, allocations: 3.275 MB / 0.5265 GB, free: 22.97 MB / 426.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.02692/1.23, allocations: 14.99 MB / 0.5412 GB, free: 11.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008595/1.239, allocations: 2.297 MB / 0.5434 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06168/1.301, allocations: 19.04 MB / 0.562 GB, free: 4.562 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007113/1.308, allocations: 1.621 MB / 0.5636 GB, free: 3.305 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 6.181e-06/1.308, allocations: 0 / 0.5636 GB, free: 3.305 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.03441/1.342, allocations: 8.136 MB / 0.5715 GB, free: 13.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002204/1.342, allocations: 230.9 kB / 0.5717 GB, free: 12.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003762/1.346, allocations: 1.395 MB / 0.5731 GB, free: 11.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005609/1.347, allocations: 56.89 kB / 0.5732 GB, free: 11.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/1.348, allocations: 1.002 MB / 0.5741 GB, free: 11.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001128/1.349, allocations: 0.5876 MB / 0.5747 GB, free: 10.67 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002579/1.35, allocations: 41 kB / 0.5748 GB, free: 10.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002679/1.35, allocations: 390.5 kB / 0.5751 GB, free: 10.31 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003778/1.354, allocations: 1.14 MB / 0.5762 GB, free: 9.535 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004495/1.358, allocations: 1.673 MB / 0.5779 GB, free: 8.059 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00469/1.363, allocations: 1.381 MB / 0.5792 GB, free: 7.172 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.121e-05/1.363, allocations: 8 kB / 0.5792 GB, free: 7.164 MB / 458.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01348/1.376, allocations: 3.944 MB / 0.5831 GB, free: 4.473 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002717/1.379, allocations: 5.937 MB / 0.5889 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.041e-05/1.379, allocations: 19.94 kB / 0.5889 GB, free: 14.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02558/1.405, allocations: 2.956 MB / 0.5918 GB, free: 11.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002502/1.408, allocations: 329.5 kB / 0.5921 GB, free: 11.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/1.418, allocations: 3.488 MB / 0.5955 GB, free: 8.648 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003842/1.422, allocations: 261.5 kB / 0.5958 GB, free: 8.426 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005574/1.422, allocations: 112.9 kB / 0.5959 GB, free: 8.336 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/1.423, allocations: 4 kB / 0.5959 GB, free: 8.332 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01213/1.435, allocations: 3.554 MB / 0.5993 GB, free: 5.957 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.242e-05/1.435, allocations: 16 kB / 0.5993 GB, free: 5.941 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01237/1.447, allocations: 1.777 MB / 0.6011 GB, free: 4.426 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002865/1.45, allocations: 368 kB / 0.6014 GB, free: 4.105 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007938/1.458, allocations: 2.777 MB / 0.6041 GB, free: 2.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/1.462, allocations: 255.4 kB / 0.6044 GB, free: 1.801 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005829/1.463, allocations: 104.1 kB / 0.6045 GB, free: 1.719 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (169): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002137/1.465, allocations: 0.646 MB / 0.6051 GB, free: 1.281 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006628/1.465, allocations: 200.9 kB / 0.6053 GB, free: 1.086 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01823/1.484, allocations: 7.732 MB / 0.6129 GB, free: 11.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001305/1.484, allocations: 88.94 kB / 0.6129 GB, free: 11.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/1.484, allocations: 3.984 kB / 0.613 GB, free: 11.75 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01524/1.499, allocations: 6.633 MB / 0.6194 GB, free: 7.203 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02459/1.524, allocations: 10.86 MB / 0.63 GB, free: 88 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/1.524, allocations: 3.953 kB / 0.63 GB, free: 84 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003546/1.527, allocations: 405.3 kB / 0.6304 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002098/1.529, allocations: 352.1 kB / 0.6308 GB, free: 15.43 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004838/1.53, allocations: 66.34 kB / 0.6308 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002605/1.533, allocations: 2.579 MB / 0.6333 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/1.533, allocations: 0 / 0.6333 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01829/1.551, allocations: 7.15 MB / 0.6403 GB, free: 6.992 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.553, allocations: 0.7377 MB / 0.641 GB, free: 6.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008398/1.554, allocations: 47.98 kB / 0.6411 GB, free: 6.184 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002817/1.557, allocations: 199.6 kB / 0.6413 GB, free: 5.988 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004949/1.558, allocations: 149.7 kB / 0.6414 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002411/1.558, allocations: 63.97 kB / 0.6415 GB, free: 5.781 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002741/1.561, allocations: 1.163 MB / 0.6426 GB, free: 4.598 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.705e-06/1.561, allocations: 0 / 0.6426 GB, free: 4.598 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01051/1.571, allocations: 2.53 MB / 0.6451 GB, free: 2.066 MB / 0.4948 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 (197): * Single equations (assignments): 167 * 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.01155/1.583, allocations: 2.113 MB / 0.6472 GB, free: 144 kB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0177/1.6, allocations: 5.455 MB / 0.6525 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.186e-06/1.601, allocations: 0 / 0.6525 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006573/1.607, allocations: 2.459 MB / 0.6549 GB, free: 8.277 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007911/1.615, allocations: 0.8691 MB / 0.6557 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/1.637, allocations: 9.163 MB / 0.6647 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00356/1.641, allocations: 2.311 MB / 0.6669 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007464/1.648, allocations: 1.916 MB / 0.6688 GB, free: 10.07 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009466/1.649, allocations: 147.4 kB / 0.669 GB, free: 9.926 MB / 0.5261 GB Notification: Performance of SimCode: time 1.212e-06/1.649, allocations: 0 / 0.669 GB, free: 9.926 MB / 0.5261 GB Notification: Performance of Templates: time 0.5639/2.213, allocations: 85.79 MB / 0.7527 GB, free: 195.3 MB / 0.5417 GB