Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.98/1.98, allocations: 209.3 MB / 224.4 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.078e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.363, allocations: 48.7 MB / 324.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.1332/0.4962, allocations: 74.97 MB / 399.8 MB, free: 4.457 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06517/0.5615, allocations: 30.33 MB / 430.2 MB, free: 6.066 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003336/0.5648, allocations: 103.2 kB / 430.3 MB, free: 5.965 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004189/0.5691, allocations: 1.011 MB / 431.3 MB, free: 4.949 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02255/0.5917, allocations: 5.436 MB / 436.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02428/0.616, allocations: 6.176 MB / 442.9 MB, free: 9.305 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00816/0.6242, allocations: 2.936 MB / 445.8 MB, free: 6.359 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002474/0.6267, allocations: 0.992 MB / 446.8 MB, free: 5.363 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005631/0.6324, allocations: 1.742 MB / 448.5 MB, free: 3.617 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05255/0.685, allocations: 20.71 MB / 469.3 MB, free: 14.89 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0284/0.7135, allocations: 9.404 MB / 478.7 MB, free: 5.48 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004548/0.7181, allocations: 0.5664 MB / 479.2 MB, free: 4.914 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001874/0.72, allocations: 0.7323 MB / 480 MB, free: 4.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.7215, allocations: 276 kB / 480.2 MB, free: 3.91 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.4171/1.139, allocations: 6.265 MB / 486.5 MB, free: 38.35 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/1.139, allocations: 0.7812 kB / 486.5 MB, free: 38.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.998e-06/1.139, allocations: 0 / 486.5 MB, free: 38.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001773/1.139, allocations: 0 / 486.5 MB, free: 38.35 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.02037/1.159, allocations: 3.286 MB / 489.8 MB, free: 36.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/1.159, allocations: 10.69 kB / 489.8 MB, free: 36.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009213/1.169, allocations: 0.8074 MB / 490.6 MB, free: 36.69 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005885/1.175, allocations: 1.568 MB / 492.2 MB, free: 36.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004553/1.175, allocations: 176.7 kB / 492.3 MB, free: 36.28 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001106/1.176, allocations: 199.6 kB / 492.5 MB, free: 36.28 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/1.191, allocations: 3.484 MB / 496 MB, free: 35.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/1.191, allocations: 6.672 kB / 496 MB, free: 35.87 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000558/1.191, allocations: 88.58 kB / 496.1 MB, free: 35.87 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004792/1.192, allocations: 187.5 kB / 496.3 MB, free: 35.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01496/1.207, allocations: 3.273 MB / 499.6 MB, free: 35.85 MB / 410.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.03235/1.239, allocations: 14.99 MB / 0.5025 GB, free: 26.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009462/1.249, allocations: 2.303 MB / 0.5047 GB, free: 26.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0584/1.307, allocations: 19 MB / 0.5233 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008948/1.316, allocations: 1.611 MB / 0.5249 GB, free: 14.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 9.958e-06/1.316, allocations: 3.938 kB / 0.5249 GB, free: 14.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.0452/1.362, allocations: 8.827 MB / 0.5335 GB, free: 11.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.773e-05/1.362, allocations: 236.1 kB / 0.5337 GB, free: 11.55 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003121/1.365, allocations: 1.387 MB / 0.5351 GB, free: 10.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005796/1.365, allocations: 56.17 kB / 0.5351 GB, free: 10.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009526/1.366, allocations: 0.9515 MB / 0.5361 GB, free: 9.824 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/1.367, allocations: 0.5802 MB / 0.5366 GB, free: 9.328 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002665/1.368, allocations: 39.3 kB / 0.5367 GB, free: 9.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/1.368, allocations: 400.1 kB / 0.537 GB, free: 8.957 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00378/1.372, allocations: 1.131 MB / 0.5382 GB, free: 8.184 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004323/1.376, allocations: 1.664 MB / 0.5398 GB, free: 6.715 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004359/1.381, allocations: 1.378 MB / 0.5411 GB, free: 5.828 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.907e-05/1.381, allocations: 7.5 kB / 0.5411 GB, free: 5.824 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01074/1.391, allocations: 3.228 MB / 0.5443 GB, free: 3.602 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001988/1.393, allocations: 5.786 MB / 0.5499 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.91e-05/1.394, allocations: 16 kB / 0.5499 GB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001534/1.395, allocations: 256.6 kB / 0.5502 GB, free: 13.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004696/1.4, allocations: 0.533 MB / 0.5507 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/1.402, allocations: 2.503 MB / 0.5532 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/1.407, allocations: 267.2 kB / 0.5534 GB, free: 10.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007491/1.408, allocations: 104.6 kB / 0.5535 GB, free: 10.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/1.408, allocations: 4 kB / 0.5535 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01113/1.419, allocations: 3.086 MB / 0.5565 GB, free: 7.949 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-05/1.419, allocations: 16 kB / 0.5565 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001329/1.42, allocations: 262.3 kB / 0.5568 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00449/1.425, allocations: 0.5269 MB / 0.5573 GB, free: 7.246 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/1.427, allocations: 2.504 MB / 0.5598 GB, free: 4.812 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003346/1.431, allocations: 250.8 kB / 0.56 GB, free: 4.602 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005328/1.431, allocations: 104.8 kB / 0.5601 GB, free: 4.52 MB / 426.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: 22 (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,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 (258): * Single equations (assignments): 251 * 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: 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 prepare postOptimizeDAE: time 0.002375/1.434, allocations: 0.6526 MB / 0.5607 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007235/1.434, allocations: 197.6 kB / 0.5609 GB, free: 3.887 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0194/1.454, allocations: 7.736 MB / 0.5685 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001286/1.454, allocations: 92.38 kB / 0.5686 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/1.454, allocations: 0 / 0.5686 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01491/1.469, allocations: 6.641 MB / 0.575 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02575/1.495, allocations: 10.85 MB / 0.5856 GB, free: 2.887 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/1.495, allocations: 3.984 kB / 0.5856 GB, free: 2.883 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003592/1.498, allocations: 396.4 kB / 0.586 GB, free: 2.523 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.501, allocations: 357.9 kB / 0.5864 GB, free: 2.234 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005568/1.501, allocations: 62.84 kB / 0.5864 GB, free: 2.203 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002645/1.504, allocations: 2.574 MB / 0.5889 GB, free: 15.74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/1.504, allocations: 3.953 kB / 0.5889 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01861/1.523, allocations: 7.148 MB / 0.5959 GB, free: 10.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002599/1.525, allocations: 0.7322 MB / 0.5966 GB, free: 10.28 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009613/1.526, allocations: 53.42 kB / 0.5967 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004264/1.531, allocations: 194.7 kB / 0.5969 GB, free: 10.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007363/1.531, allocations: 145.3 kB / 0.597 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.532, allocations: 66.53 kB / 0.5971 GB, free: 9.922 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0028/1.534, allocations: 1.162 MB / 0.5982 GB, free: 9.043 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.92e-07/1.535, allocations: 0 / 0.5982 GB, free: 9.043 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01147/1.546, allocations: 2.516 MB / 0.6007 GB, free: 6.688 MB / 458.7 MB 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: 53 ($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,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.01116/1.557, allocations: 2.1 MB / 0.6027 GB, free: 4.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01704/1.574, allocations: 5.282 MB / 0.6079 GB, free: 1.145 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/1.574, allocations: 3.938 kB / 0.6079 GB, free: 1.141 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006475/1.581, allocations: 2.423 MB / 0.6102 GB, free: 15.67 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008111/1.589, allocations: 0.8688 MB / 0.6111 GB, free: 14.97 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/1.611, allocations: 9.161 MB / 0.62 GB, free: 6.652 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003397/1.615, allocations: 2.261 MB / 0.6222 GB, free: 4.359 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001555/1.616, allocations: 207.4 kB / 0.6224 GB, free: 4.156 MB / 474.7 MB Notification: Performance of SimCode: time 1.422e-06/1.616, allocations: 0 / 0.6224 GB, free: 4.156 MB / 474.7 MB Notification: Performance of Templates: time 0.4918/2.108, allocations: 113.9 MB / 0.7337 GB, free: 160 MB / 0.4948 GB