Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.372/2.372, allocations: 269 MB / 284.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.162e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1381, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.4057/0.5439, allocations: 54.33 MB / 465.3 MB, free: 12.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06537/0.6094, allocations: 24.34 MB / 489.6 MB, free: 8.941 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0029/0.6123, allocations: 67.5 kB / 489.7 MB, free: 8.875 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00363/0.616, allocations: 0.7232 MB / 490.4 MB, free: 8.148 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02331/0.6394, allocations: 4.517 MB / 494.9 MB, free: 3.617 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01954/0.6589, allocations: 4.923 MB / 499.8 MB, free: 14.69 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.005754/0.6647, allocations: 1.993 MB / 0.4901 GB, free: 12.7 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.6663, allocations: 0.6479 MB / 0.4907 GB, free: 12.05 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00383/0.6702, allocations: 1.2 MB / 0.4919 GB, free: 10.84 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02952/0.6997, allocations: 12.14 MB / 0.5037 GB, free: 14.7 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02571/0.7255, allocations: 8.736 MB / 0.5122 GB, free: 5.949 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003813/0.7294, allocations: 0.5234 MB / 0.5128 GB, free: 5.426 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.7306, allocations: 486.7 kB / 0.5132 GB, free: 4.949 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007328/0.7314, allocations: 179.9 kB / 0.5134 GB, free: 4.773 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.7454, allocations: 5.06 MB / 0.5183 GB, free: 15.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7455, allocations: 4 kB / 0.5183 GB, free: 15.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.7455, allocations: 0 / 0.5183 GB, free: 15.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.249e-05/0.7456, allocations: 0 / 0.5183 GB, free: 15.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.009347/0.7549, allocations: 2.494 MB / 0.5208 GB, free: 13.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.755, allocations: 8.031 kB / 0.5208 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00569/0.7607, allocations: 0.5404 MB / 0.5213 GB, free: 12.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003326/0.7641, allocations: 1.086 MB / 0.5224 GB, free: 11.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.7643, allocations: 118.3 kB / 0.5225 GB, free: 11.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003618/0.7647, allocations: 127.9 kB / 0.5226 GB, free: 11.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007712/0.7724, allocations: 2.228 MB / 0.5248 GB, free: 8.875 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.29e-05/0.7725, allocations: 7.844 kB / 0.5248 GB, free: 8.867 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002361/0.7727, allocations: 55.97 kB / 0.5248 GB, free: 8.812 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002757/0.773, allocations: 114.2 kB / 0.525 GB, free: 8.699 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008218/0.7813, allocations: 2.054 MB / 0.527 GB, free: 6.637 MB / 442.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.02212/0.8034, allocations: 9.737 MB / 0.5365 GB, free: 12.08 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0115/0.815, allocations: 1.415 MB / 0.5378 GB, free: 10.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09407/0.9091, allocations: 24.77 MB / 0.562 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004812/0.914, allocations: 1.06 MB / 0.5631 GB, free: 13.86 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 5.891e-06/0.9141, allocations: 0 / 0.5631 GB, free: 13.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=104): time 0.02399/0.9381, allocations: 5.258 MB / 0.5682 GB, free: 8.512 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/0.9383, allocations: 230.6 kB / 0.5684 GB, free: 8.238 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002307/0.9406, allocations: 0.9985 MB / 0.5694 GB, free: 7.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/0.9409, allocations: 41.7 kB / 0.5694 GB, free: 7.184 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008066/0.9418, allocations: 0.6461 MB / 0.5701 GB, free: 6.531 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006769/0.9425, allocations: 366.8 kB / 0.5704 GB, free: 6.168 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.9426, allocations: 28 kB / 0.5704 GB, free: 6.141 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.9429, allocations: 358.8 kB / 0.5708 GB, free: 5.781 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.9454, allocations: 0.6896 MB / 0.5715 GB, free: 5.09 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002978/0.9484, allocations: 0.9977 MB / 0.5724 GB, free: 3.965 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002929/0.9514, allocations: 0.8322 MB / 0.5733 GB, free: 3.125 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.438e-05/0.9515, allocations: 4 kB / 0.5733 GB, free: 3.121 MB / 490.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007007/0.9585, allocations: 1.961 MB / 0.5752 GB, free: 1.141 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00151/0.9601, allocations: 3.256 MB / 0.5783 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.871e-05/0.9601, allocations: 8 kB / 0.5784 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008211/0.961, allocations: 133.6 kB / 0.5785 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002825/0.9638, allocations: 327.6 kB / 0.5788 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/0.9652, allocations: 1.257 MB / 0.58 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/0.9683, allocations: 155.7 kB / 0.5802 GB, free: 11.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003644/0.9687, allocations: 67.98 kB / 0.5802 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.9687, allocations: 11.92 kB / 0.5802 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008776/0.9775, allocations: 1.869 MB / 0.5821 GB, free: 9.738 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.281e-05/0.9776, allocations: 12 kB / 0.5821 GB, free: 9.727 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009309/0.9786, allocations: 138.2 kB / 0.5822 GB, free: 9.586 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003715/0.9823, allocations: 315.6 kB / 0.5825 GB, free: 9.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.9841, allocations: 1.261 MB / 0.5837 GB, free: 7.965 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/0.9868, allocations: 159.8 kB / 0.5839 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/0.9871, allocations: 67.91 kB / 0.584 GB, free: 7.742 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001638/0.9888, allocations: 468.7 kB / 0.5844 GB, free: 7.27 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005532/0.9893, allocations: 134.4 kB / 0.5845 GB, free: 7.137 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/1.004, allocations: 4.779 MB / 0.5892 GB, free: 2.293 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/1.005, allocations: 59.91 kB / 0.5893 GB, free: 2.234 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/1.005, allocations: 0 / 0.5893 GB, free: 2.234 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01215/1.017, allocations: 4.006 MB / 0.5932 GB, free: 14.16 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.038, allocations: 6.813 MB / 0.5998 GB, free: 7.246 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/1.038, allocations: 3.938 kB / 0.5998 GB, free: 7.242 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002821/1.04, allocations: 259.7 kB / 0.6001 GB, free: 6.988 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/1.042, allocations: 177.4 kB / 0.6003 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003066/1.042, allocations: 43.97 kB / 0.6003 GB, free: 6.766 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001596/1.044, allocations: 1.284 MB / 0.6015 GB, free: 5.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/1.044, allocations: 7.984 kB / 0.6016 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01338/1.057, allocations: 4.391 MB / 0.6058 GB, free: 0.9688 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/1.059, allocations: 0.5441 MB / 0.6064 GB, free: 412 kB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005007/1.059, allocations: 36 kB / 0.6064 GB, free: 376 kB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/1.061, allocations: 123.7 kB / 0.6065 GB, free: 252 kB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002892/1.062, allocations: 92.86 kB / 0.6066 GB, free: 156 kB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001559/1.062, allocations: 43.92 kB / 0.6067 GB, free: 112 kB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.33/1.392, allocations: 0.9637 MB / 0.6076 GB, free: 175 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.112e-06/1.392, allocations: 1.125 kB / 0.6076 GB, free: 175 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008061/1.4, allocations: 2.031 MB / 0.6096 GB, free: 175 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * 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 (119): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01075/1.411, allocations: 1.868 MB / 0.6114 GB, free: 174.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.421, allocations: 3.273 MB / 0.6146 GB, free: 174.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.915e-06/1.421, allocations: 1.75 kB / 0.6146 GB, free: 174.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003816/1.425, allocations: 1.492 MB / 0.6161 GB, free: 173.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005874/1.431, allocations: 0.6374 MB / 0.6167 GB, free: 173.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.444, allocations: 5.73 MB / 0.6223 GB, free: 170.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002009/1.446, allocations: 1.694 MB / 0.6239 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009062/1.447, allocations: 141.5 kB / 0.6241 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.202e-06/1.447, allocations: 3.062 kB / 0.6241 GB, free: 169.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.1188/1.566, allocations: 67.25 MB / 0.6898 GB, free: 113 MB / 0.5105 GB