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_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.845/1.845, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.119e-05, allocations: 4 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3415, allocations: 48.71 MB / 324.9 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.1371/0.4787, allocations: 74.97 MB / 399.8 MB, free: 4.363 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07255/0.5513, allocations: 30.33 MB / 430.2 MB, free: 5.969 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003803/0.5552, allocations: 99.25 kB / 430.3 MB, free: 5.871 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005388/0.5606, allocations: 1.007 MB / 431.3 MB, free: 4.859 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0305/0.5912, allocations: 5.437 MB / 436.7 MB, free: 15.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02442/0.6156, allocations: 6.179 MB / 442.9 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009511/0.6252, allocations: 2.94 MB / 445.8 MB, free: 6.27 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002822/0.628, allocations: 0.9919 MB / 446.8 MB, free: 5.273 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005427/0.6335, allocations: 1.742 MB / 448.6 MB, free: 3.527 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05267/0.6862, allocations: 20.71 MB / 469.3 MB, free: 14.81 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02964/0.7159, allocations: 9.404 MB / 478.7 MB, free: 5.395 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005003/0.721, allocations: 0.5664 MB / 479.3 MB, free: 4.828 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001838/0.7229, allocations: 0.7362 MB / 480 MB, free: 4.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001154/0.7241, allocations: 272 kB / 480.3 MB, free: 3.824 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3403/1.064, allocations: 6.265 MB / 486.5 MB, free: 38.58 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/1.064, allocations: 0 / 486.5 MB, free: 38.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.966e-06/1.064, allocations: 0 / 486.5 MB, free: 38.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001522/1.065, allocations: 1.062 kB / 486.5 MB, free: 38.58 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.01371/1.078, allocations: 3.28 MB / 489.8 MB, free: 37.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/1.078, allocations: 9.594 kB / 489.8 MB, free: 37.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009883/1.088, allocations: 0.812 MB / 490.6 MB, free: 36.92 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005588/1.094, allocations: 1.568 MB / 492.2 MB, free: 36.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003067/1.094, allocations: 180.5 kB / 492.4 MB, free: 36.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007857/1.095, allocations: 196.6 kB / 492.6 MB, free: 36.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/1.108, allocations: 3.487 MB / 496 MB, free: 36.1 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-05/1.108, allocations: 6.062 kB / 496.1 MB, free: 36.1 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003908/1.109, allocations: 87.06 kB / 496.1 MB, free: 36.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004422/1.109, allocations: 184.4 kB / 496.3 MB, free: 36.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01499/1.124, allocations: 3.277 MB / 499.6 MB, free: 36.08 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.03053/1.155, allocations: 14.98 MB / 0.5025 GB, free: 27.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00928/1.164, allocations: 2.309 MB / 0.5048 GB, free: 27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05923/1.223, allocations: 19 MB / 0.5233 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00704/1.23, allocations: 1.613 MB / 0.5249 GB, free: 14.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 5.891e-06/1.23, allocations: 2.953 kB / 0.5249 GB, free: 14.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.04135/1.272, allocations: 8.823 MB / 0.5335 GB, free: 11.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.597e-05/1.272, allocations: 230.2 kB / 0.5337 GB, free: 11.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003256/1.275, allocations: 1.386 MB / 0.5351 GB, free: 10.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006197/1.276, allocations: 58.2 kB / 0.5352 GB, free: 10.57 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/1.277, allocations: 0.9999 MB / 0.5361 GB, free: 9.926 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/1.278, allocations: 0.5799 MB / 0.5367 GB, free: 9.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002809/1.278, allocations: 44.44 kB / 0.5367 GB, free: 9.418 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/1.279, allocations: 386 kB / 0.5371 GB, free: 9.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004236/1.283, allocations: 1.14 MB / 0.5382 GB, free: 8.289 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004611/1.288, allocations: 1.67 MB / 0.5399 GB, free: 6.816 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004243/1.292, allocations: 1.369 MB / 0.5412 GB, free: 5.934 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/1.292, allocations: 7.719 kB / 0.5412 GB, free: 5.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01024/1.302, allocations: 3.339 MB / 0.5445 GB, free: 3.598 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002/1.304, allocations: 5.927 MB / 0.5502 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.888e-05/1.304, allocations: 16 kB / 0.5503 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/1.306, allocations: 265.7 kB / 0.5505 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004608/1.31, allocations: 0.5313 MB / 0.551 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002476/1.313, allocations: 2.5 MB / 0.5535 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004887/1.318, allocations: 265.3 kB / 0.5537 GB, free: 9.863 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009643/1.319, allocations: 104.8 kB / 0.5538 GB, free: 9.781 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/1.319, allocations: 6.906 kB / 0.5538 GB, free: 9.777 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01164/1.331, allocations: 3.09 MB / 0.5569 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.433e-05/1.331, allocations: 17 kB / 0.5569 GB, free: 7.672 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001282/1.332, allocations: 267.7 kB / 0.5571 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004385/1.336, allocations: 0.5217 MB / 0.5576 GB, free: 6.984 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/1.339, allocations: 2.497 MB / 0.5601 GB, free: 4.559 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0039/1.343, allocations: 263.4 kB / 0.5603 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004604/1.343, allocations: 102 kB / 0.5604 GB, free: 4.258 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.002167/1.345, allocations: 0.6562 MB / 0.5611 GB, free: 3.816 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006741/1.346, allocations: 193.7 kB / 0.5612 GB, free: 3.625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01967/1.366, allocations: 7.736 MB / 0.5688 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001544/1.366, allocations: 90.67 kB / 0.5689 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/1.366, allocations: 0 / 0.5689 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01501/1.381, allocations: 6.642 MB / 0.5754 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02515/1.406, allocations: 10.85 MB / 0.586 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.328e-05/1.406, allocations: 0 / 0.586 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003593/1.41, allocations: 399 kB / 0.5863 GB, free: 2.258 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/1.412, allocations: 357.6 kB / 0.5867 GB, free: 1.965 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005521/1.413, allocations: 67.34 kB / 0.5868 GB, free: 1.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002729/1.416, allocations: 2.561 MB / 0.5893 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.179e-05/1.416, allocations: 8.219 kB / 0.5893 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/1.435, allocations: 7.151 MB / 0.5962 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002477/1.437, allocations: 0.7339 MB / 0.597 GB, free: 10.02 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008501/1.438, allocations: 43.69 kB / 0.597 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002993/1.441, allocations: 207.5 kB / 0.5972 GB, free: 9.828 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004594/1.442, allocations: 141.1 kB / 0.5973 GB, free: 9.707 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002347/1.442, allocations: 67.03 kB / 0.5974 GB, free: 9.656 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002745/1.445, allocations: 1.167 MB / 0.5985 GB, free: 8.773 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.445, allocations: 0 / 0.5985 GB, free: 8.773 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01208/1.457, allocations: 2.511 MB / 0.601 GB, free: 6.422 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.01132/1.468, allocations: 2.094 MB / 0.603 GB, free: 4.574 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01834/1.487, allocations: 5.342 MB / 0.6083 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/1.487, allocations: 128 / 0.6083 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007063/1.494, allocations: 2.424 MB / 0.6106 GB, free: 15.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007998/1.502, allocations: 0.8685 MB / 0.6115 GB, free: 14.67 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02187/1.524, allocations: 9.131 MB / 0.6204 GB, free: 6.195 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004003/1.528, allocations: 2.305 MB / 0.6226 GB, free: 3.855 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01081/1.539, allocations: 2.828 MB / 0.6254 GB, free: 1.043 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/1.54, allocations: 171.4 kB / 0.6256 GB, free: 0.875 MB / 474.7 MB Notification: Performance of SimCode: time 1.453e-06/1.54, allocations: 0 / 0.6256 GB, free: 0.875 MB / 474.7 MB Notification: Performance of Templates: time 0.467/2.007, allocations: 75.38 MB / 0.6992 GB, free: 196.7 MB / 0.4948 GB