Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.319e-05/3.307e-05, allocations: 0 / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1376, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.4516/0.5892, allocations: 75.97 MB / 486.9 MB, free: 11.43 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06344/0.6527, allocations: 30.63 MB / 0.5054 GB, free: 12.94 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003615/0.6564, allocations: 95.31 kB / 0.5055 GB, free: 12.84 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004541/0.661, allocations: 1.023 MB / 0.5065 GB, free: 11.82 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02223/0.6833, allocations: 5.515 MB / 0.5119 GB, free: 6.285 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02343/0.7067, allocations: 6.262 MB / 0.518 GB, free: 16 kB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008656/0.7154, allocations: 3.034 MB / 0.5209 GB, free: 12.97 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002465/0.7179, allocations: 0.9958 MB / 0.5219 GB, free: 11.97 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005758/0.7238, allocations: 1.777 MB / 0.5236 GB, free: 10.19 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05315/0.777, allocations: 20.95 MB / 0.5441 GB, free: 5.234 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03376/0.8108, allocations: 9.591 MB / 0.5535 GB, free: 11.63 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005419/0.8163, allocations: 0.582 MB / 0.554 GB, free: 11.05 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002335/0.8186, allocations: 0.7402 MB / 0.5548 GB, free: 10.31 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.8204, allocations: 272 kB / 0.555 GB, free: 10.04 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02176/0.8422, allocations: 6.369 MB / 0.5612 GB, free: 3.66 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.8422, allocations: 0 / 0.5612 GB, free: 3.66 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.821e-06/0.8423, allocations: 3.984 kB / 0.5612 GB, free: 3.656 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001178/0.8424, 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.01341/0.8558, allocations: 3.361 MB / 0.5645 GB, free: 236 kB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.8559, allocations: 12.03 kB / 0.5645 GB, free: 224 kB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008516/0.8644, allocations: 0.8399 MB / 0.5654 GB, free: 15.38 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004926/0.8694, allocations: 1.559 MB / 0.5669 GB, free: 13.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003177/0.8697, allocations: 187.7 kB / 0.5671 GB, free: 13.58 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007136/0.8705, allocations: 199.9 kB / 0.5672 GB, free: 13.38 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/0.8833, allocations: 3.5 MB / 0.5707 GB, free: 9.723 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.021e-05/0.8835, allocations: 7.938 kB / 0.5707 GB, free: 9.715 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000401/0.8839, allocations: 83.97 kB / 0.5708 GB, free: 9.633 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004224/0.8843, allocations: 187.5 kB / 0.5709 GB, free: 9.449 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.8979, 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.03122/0.9292, allocations: 15.15 MB / 0.5889 GB, free: 5.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009729/0.939, allocations: 2.341 MB / 0.5912 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4279/1.367, allocations: 24.79 MB / 0.6154 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007569/1.375, allocations: 1.644 MB / 0.617 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 6.532e-06/1.375, allocations: 0 / 0.617 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=171): time 0.03462/1.409, allocations: 8.281 MB / 0.6251 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.409, allocations: 232 kB / 0.6253 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003299/1.413, allocations: 1.442 MB / 0.6268 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004217/1.413, allocations: 59.64 kB / 0.6268 GB, free: 164 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008893/1.414, allocations: 0.9252 MB / 0.6277 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000756/1.415, allocations: 0.589 MB / 0.6283 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/1.415, allocations: 40.19 kB / 0.6283 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001671/1.415, allocations: 391.1 kB / 0.6287 GB, free: 162.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003829/1.419, allocations: 1.156 MB / 0.6298 GB, free: 162 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004117/1.423, allocations: 1.647 MB / 0.6314 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004182/1.427, allocations: 1.385 MB / 0.6328 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.871e-05/1.427, allocations: 3.75 kB / 0.6328 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01214/1.44, allocations: 3.861 MB / 0.6366 GB, free: 159.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001118/1.441, allocations: 5.267 MB / 0.6417 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-05/1.441, allocations: 14.97 kB / 0.6417 GB, free: 153.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02798/1.469, allocations: 3.227 MB / 0.6449 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002292/1.471, allocations: 321.3 kB / 0.6452 GB, free: 153 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008922/1.48, allocations: 3.485 MB / 0.6486 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003837/1.484, allocations: 269.2 kB / 0.6488 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003445/1.484, allocations: 100.6 kB / 0.6489 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/1.484, allocations: 3.906 kB / 0.6489 GB, free: 150.8 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01176/1.496, allocations: 3.64 MB / 0.6525 GB, free: 149 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.189e-05/1.496, allocations: 16.78 kB / 0.6525 GB, free: 149 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01091/1.507, allocations: 1.679 MB / 0.6542 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002661/1.51, allocations: 370.8 kB / 0.6545 GB, free: 148.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006793/1.517, allocations: 2.757 MB / 0.6572 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003388/1.52, allocations: 259.5 kB / 0.6574 GB, free: 145.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003994/1.521, allocations: 102.3 kB / 0.6575 GB, free: 145.1 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.002/1.523, allocations: 0.6455 MB / 0.6582 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007015/1.523, allocations: 206.1 kB / 0.6584 GB, free: 144.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01555/1.539, allocations: 7.797 MB / 0.666 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.431e-05/1.539, allocations: 95.14 kB / 0.6661 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/1.539, allocations: 3.953 kB / 0.6661 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01265/1.552, allocations: 6.69 MB / 0.6726 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02143/1.573, allocations: 10.99 MB / 0.6833 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.858e-05/1.573, allocations: 3.938 kB / 0.6834 GB, free: 118.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003267/1.577, allocations: 407.5 kB / 0.6837 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/1.579, allocations: 350.9 kB / 0.6841 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003989/1.579, allocations: 63.97 kB / 0.6841 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/1.581, allocations: 2.572 MB / 0.6866 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.581, allocations: 3.984 kB / 0.6867 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01512/1.596, allocations: 7.234 MB / 0.6937 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002208/1.598, allocations: 0.765 MB / 0.6945 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009013/1.599, allocations: 51.98 kB / 0.6945 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003168/1.602, allocations: 195.6 kB / 0.6947 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004837/1.603, allocations: 153.8 kB / 0.6948 GB, free: 106.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000223/1.603, allocations: 70.27 kB / 0.6949 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002523/1.606, allocations: 1.289 MB / 0.6962 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.8e-07/1.606, allocations: 0 / 0.6962 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009002/1.615, allocations: 2.567 MB / 0.6987 GB, free: 102.5 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.009994/1.625, allocations: 2.134 MB / 0.7008 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01526/1.64, allocations: 5.402 MB / 0.706 GB, free: 95.34 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.64, allocations: 0 / 0.706 GB, free: 95.34 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005873/1.646, allocations: 2.47 MB / 0.7084 GB, free: 92.86 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008101/1.654, allocations: 0.9274 MB / 0.7094 GB, free: 91.94 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01824/1.672, allocations: 9.042 MB / 0.7182 GB, free: 82.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002608/1.675, allocations: 2.265 MB / 0.7204 GB, free: 80.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/1.676, allocations: 187.4 kB / 0.7206 GB, free: 80.42 MB / 0.5105 GB Notification: Performance of SimCode: time 1.663e-06/1.676, allocations: 0 / 0.7206 GB, free: 80.42 MB / 0.5105 GB Notification: Performance of Templates: time 0.5149/2.191, allocations: 95.36 MB / 0.8137 GB, free: 157.8 MB / 0.5105 GB