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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.575/2.575, allocations: 234.9 MB / 250.1 MB, free: 9.934 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.616e-05/2.618e-05, allocations: 0 / 308 MB, free: 15.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3905, allocations: 54.87 MB / 362.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.1307/0.5212, allocations: 75.56 MB / 438.4 MB, free: 2.117 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06672/0.588, allocations: 30.48 MB / 468.9 MB, free: 3.57 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004085/0.5921, allocations: 99.31 kB / 469 MB, free: 3.473 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004799/0.597, allocations: 1.019 MB / 470 MB, free: 2.449 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02454/0.6216, allocations: 5.499 MB / 475.5 MB, free: 12.93 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02465/0.6463, allocations: 6.224 MB / 481.7 MB, free: 6.695 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008509/0.6548, allocations: 2.983 MB / 484.7 MB, free: 3.703 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.6574, allocations: 1.004 MB / 485.7 MB, free: 2.699 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005827/0.6633, allocations: 1.761 MB / 487.5 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.437/1.1, allocations: 20.93 MB / 0.4965 GB, free: 25.81 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02863/1.129, allocations: 9.556 MB / 0.5058 GB, free: 25.79 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005754/1.135, allocations: 0.5798 MB / 0.5064 GB, free: 25.79 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001975/1.137, allocations: 0.739 MB / 0.5071 GB, free: 25.79 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/1.139, allocations: 276.1 kB / 0.5074 GB, free: 25.79 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01736/1.156, allocations: 6.335 MB / 0.5136 GB, free: 25.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/1.156, allocations: 0 / 0.5136 GB, free: 25.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.156, allocations: 0 / 0.5136 GB, free: 25.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001467/1.156, allocations: 0 / 0.5136 GB, free: 25.38 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01405/1.17, allocations: 3.355 MB / 0.5168 GB, free: 23.82 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/1.17, allocations: 10.72 kB / 0.5169 GB, free: 23.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008783/1.179, allocations: 0.8287 MB / 0.5177 GB, free: 23.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005173/1.184, allocations: 1.582 MB / 0.5192 GB, free: 23.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003805/1.185, allocations: 179.1 kB / 0.5194 GB, free: 23.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009752/1.186, allocations: 196.1 kB / 0.5196 GB, free: 23.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01323/1.199, allocations: 3.489 MB / 0.523 GB, free: 22.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.59e-05/1.199, allocations: 10.47 kB / 0.523 GB, free: 22.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004044/1.2, allocations: 81.91 kB / 0.5231 GB, free: 22.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004042/1.2, allocations: 192.9 kB / 0.5232 GB, free: 22.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01379/1.214, allocations: 3.277 MB / 0.5264 GB, free: 22.76 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.03144/1.245, allocations: 15 MB / 0.5411 GB, free: 11.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009336/1.255, allocations: 2.301 MB / 0.5433 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06384/1.319, allocations: 19.03 MB / 0.5619 GB, free: 4.555 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007268/1.326, allocations: 1.625 MB / 0.5635 GB, free: 3.293 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 5.931e-06/1.326, allocations: 0 / 0.5635 GB, free: 3.293 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.04378/1.37, allocations: 8.834 MB / 0.5721 GB, free: 12.5 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/1.37, allocations: 229.1 kB / 0.5724 GB, free: 12.23 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003474/1.373, allocations: 1.397 MB / 0.5737 GB, free: 11.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005326/1.374, allocations: 57.89 kB / 0.5738 GB, free: 11.14 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001155/1.375, allocations: 0.9464 MB / 0.5747 GB, free: 10.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001216/1.376, allocations: 0.583 MB / 0.5753 GB, free: 9.996 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/1.377, allocations: 40.56 kB / 0.5753 GB, free: 9.988 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002849/1.377, allocations: 396.8 kB / 0.5757 GB, free: 9.625 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004308/1.381, allocations: 1.138 MB / 0.5768 GB, free: 8.848 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004902/1.386, allocations: 1.673 MB / 0.5784 GB, free: 7.375 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004649/1.391, allocations: 1.388 MB / 0.5798 GB, free: 6.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.659e-05/1.391, allocations: 4 kB / 0.5798 GB, free: 6.477 MB / 458.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01142/1.403, allocations: 3.216 MB / 0.5829 GB, free: 4.266 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002774/1.405, allocations: 5.791 MB / 0.5886 GB, free: 14.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.674e-05/1.406, allocations: 16 kB / 0.5886 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001509/1.407, allocations: 261.4 kB / 0.5889 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004592/1.412, allocations: 0.5324 MB / 0.5894 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002719/1.415, allocations: 2.502 MB / 0.5918 GB, free: 11.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/1.419, allocations: 271 kB / 0.5921 GB, free: 10.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006554/1.419, allocations: 102.7 kB / 0.5922 GB, free: 10.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/1.419, allocations: 4 kB / 0.5922 GB, free: 10.69 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01076/1.43, allocations: 3.089 MB / 0.5952 GB, free: 8.613 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-05/1.43, allocations: 16 kB / 0.5952 GB, free: 8.598 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/1.432, allocations: 264.9 kB / 0.5955 GB, free: 8.383 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/1.436, allocations: 0.5187 MB / 0.596 GB, free: 7.914 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/1.439, allocations: 2.501 MB / 0.5984 GB, free: 5.488 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003296/1.442, allocations: 257.3 kB / 0.5987 GB, free: 5.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004416/1.443, allocations: 99.84 kB / 0.5988 GB, free: 5.191 MB / 474.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: 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 (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.00226/1.445, allocations: 0.6656 MB / 0.5994 GB, free: 4.742 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007194/1.446, allocations: 201.5 kB / 0.5996 GB, free: 4.543 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01807/1.464, allocations: 7.716 MB / 0.6071 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001185/1.464, allocations: 90.23 kB / 0.6072 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/1.464, allocations: 3.938 kB / 0.6072 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01511/1.479, allocations: 6.64 MB / 0.6137 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02623/1.505, allocations: 10.87 MB / 0.6243 GB, free: 3.547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/1.505, allocations: 0 / 0.6243 GB, free: 3.547 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003535/1.509, allocations: 394.4 kB / 0.6247 GB, free: 3.188 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002118/1.511, allocations: 357.9 kB / 0.625 GB, free: 2.898 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005287/1.512, allocations: 61.09 kB / 0.6251 GB, free: 2.867 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/1.514, allocations: 2.569 MB / 0.6276 GB, free: 420 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.514, allocations: 0 / 0.6276 GB, free: 420 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0184/1.533, allocations: 7.162 MB / 0.6346 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002474/1.535, allocations: 0.7356 MB / 0.6353 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000852/1.536, allocations: 51.98 kB / 0.6354 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/1.539, allocations: 191.3 kB / 0.6356 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005826/1.54, allocations: 144.6 kB / 0.6357 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000236/1.54, allocations: 70.53 kB / 0.6358 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002818/1.543, allocations: 1.167 MB / 0.6369 GB, free: 9.703 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.62e-07/1.543, allocations: 0 / 0.6369 GB, free: 9.703 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01178/1.555, allocations: 2.533 MB / 0.6394 GB, free: 7.332 MB / 0.4948 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 (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.01234/1.567, allocations: 2.103 MB / 0.6414 GB, free: 5.469 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01792/1.585, allocations: 5.376 MB / 0.6467 GB, free: 0.6992 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.338e-06/1.585, allocations: 0 / 0.6467 GB, free: 0.6992 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006613/1.592, allocations: 2.46 MB / 0.6491 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007957/1.6, allocations: 0.8645 MB / 0.6499 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02149/1.621, allocations: 9.185 MB / 0.6589 GB, free: 4.309 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003074/1.625, allocations: 2.265 MB / 0.6611 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/1.626, allocations: 211.4 kB / 0.6613 GB, free: 1.805 MB / 0.5105 GB Notification: Performance of SimCode: time 1.653e-06/1.626, allocations: 6.75 kB / 0.6613 GB, free: 1.801 MB / 0.5105 GB Notification: Performance of Templates: time 0.5412/2.167, allocations: 114.2 MB / 0.7729 GB, free: 173.2 MB / 0.5417 GB