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_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.437/2.437, allocations: 269 MB / 284.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.037e-05/3.038e-05, allocations: 4 kB / 349 MB, free: 10.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.14, allocations: 61.89 MB / 410.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.467/0.607, allocations: 75.97 MB / 486.9 MB, free: 11.43 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06606/0.6731, allocations: 30.63 MB / 0.5054 GB, free: 12.93 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003732/0.6769, allocations: 99.31 kB / 0.5055 GB, free: 12.83 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004455/0.6814, allocations: 1.011 MB / 0.5065 GB, free: 11.82 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02224/0.7037, allocations: 5.522 MB / 0.5119 GB, free: 6.277 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0246/0.7283, allocations: 6.252 MB / 0.518 GB, free: 12 kB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008516/0.7369, allocations: 3.034 MB / 0.5209 GB, free: 12.96 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002407/0.7394, allocations: 0.9958 MB / 0.5219 GB, free: 11.97 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005706/0.7451, allocations: 1.773 MB / 0.5236 GB, free: 10.19 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05059/0.7958, allocations: 20.95 MB / 0.5441 GB, free: 5.227 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04048/0.8363, allocations: 9.583 MB / 0.5535 GB, free: 11.63 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00557/0.8419, allocations: 0.582 MB / 0.554 GB, free: 11.05 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002423/0.8444, allocations: 0.7402 MB / 0.5548 GB, free: 10.31 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001636/0.8461, allocations: 276 kB / 0.555 GB, free: 10.04 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02223/0.8683, allocations: 6.365 MB / 0.5612 GB, free: 3.66 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.8684, allocations: 0 / 0.5612 GB, free: 3.66 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.741e-06/0.8684, allocations: 3.984 kB / 0.5612 GB, free: 3.656 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001022/0.8685, allocations: 0 / 0.5612 GB, free: 3.656 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.01755/0.8861, allocations: 3.361 MB / 0.5645 GB, free: 236 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.8862, allocations: 8.031 kB / 0.5645 GB, free: 228 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009264/0.8954, allocations: 0.836 MB / 0.5653 GB, free: 15.38 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005/0.9005, allocations: 1.571 MB / 0.5669 GB, free: 13.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002871/0.9008, allocations: 183.7 kB / 0.567 GB, free: 13.58 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006632/0.9015, allocations: 195.9 kB / 0.5672 GB, free: 13.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/0.9143, allocations: 3.503 MB / 0.5707 GB, free: 9.723 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.99e-05/0.9145, allocations: 7.938 kB / 0.5707 GB, free: 9.715 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003718/0.9149, allocations: 87.97 kB / 0.5707 GB, free: 9.629 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004241/0.9153, allocations: 183.5 kB / 0.5709 GB, free: 9.449 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01356/0.9289, allocations: 3.289 MB / 0.5741 GB, free: 6.156 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.03278/0.9617, allocations: 15.15 MB / 0.5889 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009956/0.9717, allocations: 2.341 MB / 0.5912 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4796/1.451, allocations: 24.8 MB / 0.6154 GB, free: 168 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007556/1.459, allocations: 1.646 MB / 0.617 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.352e-06/1.459, allocations: 0 / 0.617 GB, free: 167.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.03602/1.495, allocations: 8.28 MB / 0.6251 GB, free: 165.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/1.495, allocations: 230.6 kB / 0.6253 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00367/1.499, allocations: 1.444 MB / 0.6268 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004813/1.499, allocations: 62.02 kB / 0.6268 GB, free: 164.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009678/1.5, allocations: 0.9264 MB / 0.6277 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009731/1.501, allocations: 0.5861 MB / 0.6283 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/1.502, allocations: 40.72 kB / 0.6283 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001782/1.502, allocations: 394.6 kB / 0.6287 GB, free: 162.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004099/1.506, allocations: 1.157 MB / 0.6298 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004532/1.511, allocations: 1.637 MB / 0.6314 GB, free: 161.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004513/1.515, allocations: 1.384 MB / 0.6328 GB, free: 161 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.407e-05/1.515, allocations: 3.594 kB / 0.6328 GB, free: 161 MB / 0.5105 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01302/1.528, allocations: 3.867 MB / 0.6366 GB, free: 159.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001103/1.529, allocations: 5.264 MB / 0.6417 GB, free: 154 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.26e-05/1.53, allocations: 18.38 kB / 0.6417 GB, free: 154 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02832/1.558, allocations: 3.227 MB / 0.6449 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/1.56, allocations: 318 kB / 0.6452 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009216/1.569, allocations: 3.488 MB / 0.6486 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003915/1.573, allocations: 271.4 kB / 0.6488 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004693/1.574, allocations: 98.84 kB / 0.6489 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/1.574, allocations: 3.969 kB / 0.6489 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0123/1.586, allocations: 3.636 MB / 0.6525 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-05/1.586, allocations: 18.92 kB / 0.6525 GB, free: 149.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01111/1.597, allocations: 1.681 MB / 0.6542 GB, free: 148.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002614/1.6, allocations: 359.8 kB / 0.6545 GB, free: 148.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0066/1.607, allocations: 2.762 MB / 0.6572 GB, free: 146 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003006/1.61, allocations: 260.3 kB / 0.6574 GB, free: 145.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003338/1.61, allocations: 95.98 kB / 0.6575 GB, free: 145.6 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 (164): * Single equations (assignments): 160 * 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.001911/1.612, allocations: 0.6477 MB / 0.6582 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007023/1.613, allocations: 204 kB / 0.6584 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/1.628, allocations: 7.816 MB / 0.666 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/1.629, allocations: 87.86 kB / 0.6661 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.629, allocations: 3.953 kB / 0.6661 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01264/1.641, allocations: 6.685 MB / 0.6726 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02172/1.663, allocations: 10.99 MB / 0.6833 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/1.663, allocations: 4 kB / 0.6833 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003356/1.666, allocations: 407.5 kB / 0.6837 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002072/1.669, allocations: 354.8 kB / 0.6841 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000503/1.669, allocations: 64.53 kB / 0.6841 GB, free: 118 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001773/1.671, allocations: 2.573 MB / 0.6866 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.671, allocations: 0 / 0.6866 GB, free: 115.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01638/1.687, allocations: 7.236 MB / 0.6937 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002125/1.69, allocations: 0.7654 MB / 0.6945 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000894/1.69, allocations: 51.98 kB / 0.6945 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003091/1.694, allocations: 187.6 kB / 0.6947 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005959/1.694, allocations: 157.8 kB / 0.6948 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/1.694, allocations: 75.89 kB / 0.6949 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002624/1.697, allocations: 1.286 MB / 0.6962 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.893e-06/1.697, allocations: 0 / 0.6962 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009273/1.706, allocations: 2.574 MB / 0.6987 GB, free: 103 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.01015/1.717, allocations: 2.124 MB / 0.7008 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01519/1.732, allocations: 5.408 MB / 0.706 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.517e-06/1.732, allocations: 0 / 0.706 GB, free: 95.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005839/1.738, allocations: 2.473 MB / 0.7085 GB, free: 93.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00802/1.746, allocations: 0.936 MB / 0.7094 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/1.763, allocations: 9.028 MB / 0.7182 GB, free: 83.32 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/1.765, allocations: 2.257 MB / 0.7204 GB, free: 81.03 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/1.766, allocations: 187.4 kB / 0.7206 GB, free: 80.85 MB / 0.5105 GB Notification: Performance of SimCode: time 1.212e-06/1.766, allocations: 0 / 0.7206 GB, free: 80.85 MB / 0.5105 GB Notification: Performance of Templates: time 0.4986/2.264, allocations: 95.36 MB / 0.8137 GB, free: 157.9 MB / 0.5105 GB