Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.284/2.284, allocations: 234.9 MB / 250.1 MB, free: 9.949 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.029e-05/3.027e-05, allocations: 4 kB / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3748, allocations: 54.85 MB / 362.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization): time 0.06186/0.4367, allocations: 39.14 MB / 402 MB, free: 6.5 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04119/0.478, allocations: 21.05 MB / 423 MB, free: 1.406 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001417/0.4795, allocations: 35.69 kB / 423.1 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.4812, allocations: 485.7 kB / 423.5 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01557/0.4967, allocations: 4.046 MB / 427.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01364/0.5104, allocations: 3.644 MB / 431.2 MB, free: 9.184 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004725/0.5152, allocations: 2.135 MB / 433.4 MB, free: 7.047 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001296/0.5165, allocations: 0.6666 MB / 434 MB, free: 6.379 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1243/0.6408, allocations: 50.3 MB / 484.3 MB, free: 4.059 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04882/0.6897, allocations: 19.99 MB / 0.4925 GB, free: 56 kB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3441/1.034, allocations: 7.739 MB / 0.5001 GB, free: 74.97 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004169/1.038, allocations: 0.5069 MB / 0.5006 GB, free: 74.97 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001186/1.039, allocations: 0.6265 MB / 0.5012 GB, free: 74.97 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009499/1.04, allocations: 239.3 kB / 0.5014 GB, free: 74.97 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0122/1.053, allocations: 5.085 MB / 0.5064 GB, free: 74.67 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/1.053, allocations: 4.375 kB / 0.5064 GB, free: 74.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.053, allocations: 0 / 0.5064 GB, free: 74.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.655e-05/1.053, allocations: 2.844 kB / 0.5064 GB, free: 74.67 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01371/1.066, allocations: 2.956 MB / 0.5093 GB, free: 73.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/1.066, allocations: 9.906 kB / 0.5093 GB, free: 73.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007266/1.074, allocations: 0.6857 MB / 0.5099 GB, free: 73.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/1.077, allocations: 1.175 MB / 0.5111 GB, free: 73.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/1.078, allocations: 164.4 kB / 0.5112 GB, free: 73.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006076/1.078, allocations: 174.1 kB / 0.5114 GB, free: 73.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/1.089, allocations: 3.555 MB / 0.5149 GB, free: 71.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-05/1.09, allocations: 10.91 kB / 0.5149 GB, free: 71.97 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003406/1.09, allocations: 72.47 kB / 0.515 GB, free: 71.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000319/1.09, allocations: 227.7 kB / 0.5152 GB, free: 71.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01283/1.103, allocations: 3.534 MB / 0.5186 GB, free: 69.86 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.02779/1.131, allocations: 14.13 MB / 0.5324 GB, free: 57.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008808/1.14, allocations: 2.29 MB / 0.5347 GB, free: 55.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2115/1.351, allocations: 64.31 MB / 0.5975 GB, free: 0.7617 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007469/1.359, allocations: 1.72 MB / 0.5991 GB, free: 15.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=154): time 6.522e-06/1.359, allocations: 0 / 0.5991 GB, free: 15.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=174): time 0.03896/1.398, allocations: 9.479 MB / 0.6084 GB, free: 8.109 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001968/1.398, allocations: 280.6 kB / 0.6087 GB, free: 7.781 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002795/1.401, allocations: 1.185 MB / 0.6098 GB, free: 6.887 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005416/1.402, allocations: 57.39 kB / 0.6099 GB, free: 6.848 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009339/1.403, allocations: 0.8256 MB / 0.6107 GB, free: 6.223 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/1.404, allocations: 0.5943 MB / 0.6113 GB, free: 5.715 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002872/1.404, allocations: 44.19 kB / 0.6113 GB, free: 5.707 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00026/1.404, allocations: 399.4 kB / 0.6117 GB, free: 5.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004565/1.409, allocations: 1.285 MB / 0.6129 GB, free: 4.461 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005316/1.414, allocations: 1.871 MB / 0.6148 GB, free: 2.809 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005204/1.419, allocations: 1.517 MB / 0.6162 GB, free: 1.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.777e-05/1.42, allocations: 7.938 kB / 0.6163 GB, free: 1.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.01547/1.435, allocations: 4.288 MB / 0.6204 GB, free: 14.94 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00322/1.438, allocations: 6.71 MB / 0.627 GB, free: 7.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.072e-05/1.438, allocations: 16 kB / 0.627 GB, free: 7.824 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02914/1.468, allocations: 3.728 MB / 0.6307 GB, free: 4.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/1.47, allocations: 345.2 kB / 0.631 GB, free: 4.199 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01273/1.483, allocations: 4.055 MB / 0.6349 GB, free: 1.227 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004067/1.487, allocations: 277.9 kB / 0.6352 GB, free: 0.9883 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006147/1.488, allocations: 108.6 kB / 0.6353 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/1.488, allocations: 4 kB / 0.6353 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.015/1.503, allocations: 3.984 MB / 0.6392 GB, free: 13.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.061e-05/1.503, allocations: 16 kB / 0.6392 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01651/1.52, allocations: 2.363 MB / 0.6415 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002996/1.523, allocations: 379 kB / 0.6419 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/1.533, allocations: 3.344 MB / 0.6452 GB, free: 7.336 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003496/1.536, allocations: 271.5 kB / 0.6454 GB, free: 7.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006477/1.537, allocations: 104 kB / 0.6455 GB, free: 6.969 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.002322/1.539, allocations: 0.6199 MB / 0.6461 GB, free: 6.363 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006341/1.54, allocations: 174 kB / 0.6463 GB, free: 6.191 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01897/1.559, allocations: 6.83 MB / 0.653 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001257/1.559, allocations: 75.89 kB / 0.653 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.637e-05/1.559, allocations: 3.875 kB / 0.653 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01424/1.573, allocations: 5.498 MB / 0.6584 GB, free: 9.664 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02516/1.599, allocations: 9.527 MB / 0.6677 GB, free: 108 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/1.599, allocations: 0 / 0.6677 GB, free: 108 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003938/1.603, allocations: 433.1 kB / 0.6681 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002662/1.605, allocations: 439.7 kB / 0.6685 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005368/1.606, allocations: 67.95 kB / 0.6686 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003338/1.609, allocations: 3.216 MB / 0.6717 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.609, allocations: 0 / 0.6717 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01954/1.629, allocations: 7.108 MB / 0.6787 GB, free: 4.664 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/1.631, allocations: 0.7579 MB / 0.6794 GB, free: 3.883 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009022/1.632, allocations: 55.97 kB / 0.6795 GB, free: 3.828 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005232/1.638, allocations: 203.6 kB / 0.6797 GB, free: 3.629 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001318/1.639, allocations: 189.7 kB / 0.6799 GB, free: 3.441 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008005/1.64, allocations: 63.97 kB / 0.6799 GB, free: 3.379 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005123/1.645, allocations: 1.233 MB / 0.6811 GB, free: 2.152 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.883e-06/1.645, allocations: 0 / 0.6811 GB, free: 2.152 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.3231/1.968, allocations: 2.16 MB / 0.6832 GB, free: 214.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse34.phase,$cse34.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01022/1.979, allocations: 1.543 MB / 0.6847 GB, free: 214.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01779/1.996, allocations: 5.518 MB / 0.6901 GB, free: 213.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/1.997, allocations: 3.938 kB / 0.6901 GB, free: 213.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006197/2.003, allocations: 2.38 MB / 0.6924 GB, free: 212.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006644/2.009, allocations: 0.7797 MB / 0.6932 GB, free: 212.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01712/2.027, allocations: 8.227 MB / 0.7012 GB, free: 208.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002721/2.029, allocations: 2.048 MB / 0.7032 GB, free: 207.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001623/2.031, allocations: 169.1 kB / 0.7034 GB, free: 207.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.333e-06/2.031, allocations: 0 / 0.7034 GB, free: 207.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.1617/2.193, allocations: 85.15 MB / 0.7866 GB, free: 123 MB / 0.5105 GB