Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.577/2.577, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.183e-05/5.19e-05, allocations: 4.938 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4406/0.4407, allocations: 54.85 MB / 359.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.266/8.707, allocations: 2.655 GB / 3.007 GB, free: 102.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/8.707, allocations: 78.22 kB / 3.007 GB, free: 102.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276/11.98, allocations: 0.5733 GB / 3.58 GB, free: 44.78 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.815e-06/11.98, allocations: 2.406 kB / 3.58 GB, free: 44.78 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002867/11.98, allocations: 45.31 kB / 3.58 GB, free: 44.77 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.024/12.01, allocations: 2.848 MB / 3.583 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.077e-05/12.01, allocations: 14.47 kB / 3.583 GB, free: 43.29 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009506/12.01, allocations: 194.4 kB / 3.583 GB, free: 43.25 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02199/12.03, allocations: 0.5401 MB / 3.584 GB, free: 43.15 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01709/12.05, allocations: 1.444 MB / 3.585 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002949/12.05, allocations: 107.9 kB / 3.585 GB, free: 42.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007495/12.05, allocations: 127.8 kB / 3.586 GB, free: 42.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01932/12.07, allocations: 2.253 MB / 3.588 GB, free: 42.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-05/12.07, allocations: 9.094 kB / 3.588 GB, free: 42.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005074/12.07, allocations: 53.92 kB / 3.588 GB, free: 42.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003056/12.07, allocations: 100.3 kB / 3.588 GB, free: 42.39 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01102/12.08, allocations: 1.945 MB / 3.59 GB, free: 42.38 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.02787/12.11, allocations: 9.651 MB / 3.599 GB, free: 36.46 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007017/12.12, allocations: 1.311 MB / 3.6 GB, free: 36.43 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/12.12, allocations: 0.6098 MB / 3.601 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08416/12.2, allocations: 18.86 MB / 3.619 GB, free: 24.48 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00371/12.21, allocations: 1.034 MB / 3.62 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 6.192e-06/12.21, allocations: 0 / 3.62 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.0176/12.22, allocations: 4.368 MB / 3.625 GB, free: 23.66 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/12.22, allocations: 276.4 kB / 3.625 GB, free: 23.35 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002163/12.23, allocations: 0.9702 MB / 3.626 GB, free: 23.19 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003941/12.23, allocations: 45.7 kB / 3.626 GB, free: 23.16 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007297/12.23, allocations: 0.6561 MB / 3.627 GB, free: 22.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005628/12.23, allocations: 359.2 kB / 3.627 GB, free: 22.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/12.23, allocations: 27.47 kB / 3.627 GB, free: 22.65 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001185/12.23, allocations: 359.5 kB / 3.627 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001496/12.23, allocations: 0.6106 MB / 3.628 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/12.23, allocations: 0.922 MB / 3.629 GB, free: 21.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001911/12.23, allocations: 0.7733 MB / 3.63 GB, free: 21.92 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/12.23, allocations: 0 / 3.63 GB, free: 21.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.00523/12.24, allocations: 1.826 MB / 3.631 GB, free: 21.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007653/12.24, allocations: 3.283 MB / 3.635 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.965e-05/12.24, allocations: 7.094 kB / 3.635 GB, free: 18.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007287/12.24, allocations: 135.7 kB / 3.635 GB, free: 18.25 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/12.24, allocations: 321.2 kB / 3.635 GB, free: 18.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009822/12.24, allocations: 1.257 MB / 3.636 GB, free: 17.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00254/12.25, allocations: 155.5 kB / 3.636 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002805/12.25, allocations: 67 kB / 3.636 GB, free: 17.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/12.25, allocations: 7.469 kB / 3.636 GB, free: 17.05 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004809/12.25, allocations: 1.656 MB / 3.638 GB, free: 16.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.727e-05/12.25, allocations: 16 kB / 3.638 GB, free: 16.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006279/12.25, allocations: 136.6 kB / 3.638 GB, free: 16.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/12.25, allocations: 322.5 kB / 3.639 GB, free: 16.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009547/12.26, allocations: 1.247 MB / 3.64 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/12.26, allocations: 158.4 kB / 3.64 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002715/12.26, allocations: 74.19 kB / 3.64 GB, free: 15.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005621/12.26, allocations: 225.3 kB / 3.64 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003655/12.26, allocations: 135.1 kB / 3.64 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00823/12.27, allocations: 4.675 MB / 3.645 GB, free: 12.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.549e-05/12.27, allocations: 52.42 kB / 3.645 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.068e-06/12.27, allocations: 0 / 3.645 GB, free: 12.78 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006356/12.27, allocations: 3.909 MB / 3.649 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/12.29, allocations: 6.658 MB / 3.655 GB, free: 8.027 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/12.29, allocations: 0 / 3.655 GB, free: 8.027 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/12.29, allocations: 241.5 kB / 3.656 GB, free: 8.008 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009937/12.29, allocations: 182.1 kB / 3.656 GB, free: 7.945 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001882/12.29, allocations: 34.48 kB / 3.656 GB, free: 7.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008659/12.29, allocations: 1.286 MB / 3.657 GB, free: 6.781 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/12.29, allocations: 2.766 kB / 3.657 GB, free: 6.781 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008165/12.3, allocations: 4.153 MB / 3.661 GB, free: 4.922 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/12.3, allocations: 0.5388 MB / 3.662 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/12.3, allocations: 35.19 kB / 3.662 GB, free: 4.547 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001665/12.3, allocations: 115 kB / 3.662 GB, free: 4.504 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/12.3, allocations: 86.7 kB / 3.662 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/12.3, allocations: 43.31 kB / 3.662 GB, free: 4.418 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00166/12.3, allocations: 0.8561 MB / 3.663 GB, free: 3.645 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.31e-07/12.3, allocations: 0 / 3.663 GB, free: 3.645 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009736/12.31, allocations: 2.182 MB / 3.665 GB, free: 1.512 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * 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 (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02353/12.34, allocations: 6.998 MB / 3.672 GB, free: 11.37 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.008327/12.35, allocations: 3.058 MB / 3.675 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/12.35, allocations: 0 / 3.675 GB, free: 8.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003657/12.35, allocations: 1.412 MB / 3.676 GB, free: 7.195 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005759/12.36, allocations: 0.5728 MB / 3.677 GB, free: 6.777 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8273/13.18, allocations: 127.3 MB / 3.801 GB, free: 48.25 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/13.18, allocations: 1.722 MB / 3.803 GB, free: 47.48 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004854/13.19, allocations: 1.689 MB / 3.804 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/13.19, allocations: 0.8317 MB / 3.805 GB, free: 47.42 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/13.19, allocations: 0 / 3.805 GB, free: 47.42 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6372/13.83, allocations: 87.43 MB / 3.89 GB, free: 64.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002499/13.83, allocations: 226.5 kB / 3.891 GB, free: 63.88 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/20.95, allocations: 0 / 3.891 GB, free: 63.88 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat