Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.666/2.666, allocations: 270 MB / 282.6 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.789e-05/4.795e-05, allocations: 4 kB / 347.1 MB, free: 3.113 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.449/0.4491, allocations: 61.86 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.819/9.268, allocations: 2.83 GB / 3.229 GB, free: 72.49 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/9.268, allocations: 77.08 kB / 3.229 GB, free: 72.45 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.409/12.68, allocations: 0.583 GB / 3.812 GB, free: 56.73 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.775e-06/12.68, allocations: 5.766 kB / 3.812 GB, free: 56.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001876/12.68, allocations: 44.47 kB / 3.812 GB, free: 56.72 MB / 0.5417 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.01266/12.69, allocations: 2.862 MB / 3.815 GB, free: 55.25 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/12.69, allocations: 6.625 kB / 3.815 GB, free: 55.25 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006596/12.69, allocations: 188.1 kB / 3.815 GB, free: 55.2 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005673/12.7, allocations: 0.5407 MB / 3.816 GB, free: 55.11 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005407/12.7, allocations: 1.431 MB / 3.817 GB, free: 54.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/12.7, allocations: 115.1 kB / 3.817 GB, free: 54.74 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004276/12.7, allocations: 129.5 kB / 3.817 GB, free: 54.74 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006953/12.71, allocations: 2.265 MB / 3.819 GB, free: 54.36 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.994e-05/12.71, allocations: 6.781 kB / 3.819 GB, free: 54.36 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/12.71, allocations: 53 kB / 3.82 GB, free: 54.36 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002022/12.71, allocations: 102.5 kB / 3.82 GB, free: 54.35 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007304/12.72, allocations: 1.949 MB / 3.822 GB, free: 54.34 MB / 0.5417 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.02671/12.74, allocations: 9.799 MB / 3.831 GB, free: 48.41 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006469/12.75, allocations: 1.335 MB / 3.832 GB, free: 48.38 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002098/12.75, allocations: 0.633 MB / 3.833 GB, free: 48.37 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08927/12.84, allocations: 24.52 MB / 3.857 GB, free: 33.16 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003872/12.85, allocations: 1.056 MB / 3.858 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 4.989e-06/12.85, allocations: 0 / 3.858 GB, free: 33.07 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01739/12.86, allocations: 4.475 MB / 3.862 GB, free: 32.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/12.86, allocations: 271.4 kB / 3.863 GB, free: 32.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002092/12.87, allocations: 1.022 MB / 3.864 GB, free: 31.86 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003486/12.87, allocations: 48.83 kB / 3.864 GB, free: 31.83 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005618/12.87, allocations: 0.6156 MB / 3.864 GB, free: 31.41 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004408/12.87, allocations: 360.1 kB / 3.865 GB, free: 31.14 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/12.87, allocations: 19.69 kB / 3.865 GB, free: 31.12 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001148/12.87, allocations: 367 kB / 3.865 GB, free: 30.78 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/12.87, allocations: 0.6223 MB / 3.866 GB, free: 30.56 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/12.87, allocations: 0.9021 MB / 3.866 GB, free: 29.99 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001716/12.87, allocations: 0.7609 MB / 3.867 GB, free: 29.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/12.87, allocations: 7.875 kB / 3.867 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.005917/12.88, allocations: 1.782 MB / 3.869 GB, free: 29.07 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007709/12.88, allocations: 2.739 MB / 3.872 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.442e-05/12.88, allocations: 7.562 kB / 3.872 GB, free: 26.15 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009533/12.88, allocations: 135.8 kB / 3.872 GB, free: 26.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003357/12.88, allocations: 312.9 kB / 3.872 GB, free: 26.09 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/12.89, allocations: 1.248 MB / 3.873 GB, free: 24.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0148/12.9, allocations: 158.4 kB / 3.873 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002346/12.9, allocations: 63.44 kB / 3.874 GB, free: 24.92 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/12.9, allocations: 4.094 kB / 3.874 GB, free: 24.92 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01894/12.92, allocations: 1.692 MB / 3.875 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-05/12.92, allocations: 11.5 kB / 3.875 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008647/12.92, allocations: 130 kB / 3.875 GB, free: 24.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/12.93, allocations: 316.8 kB / 3.876 GB, free: 24.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/12.93, allocations: 1.25 MB / 3.877 GB, free: 23.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01751/12.94, allocations: 150.7 kB / 3.877 GB, free: 23.11 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/12.95, allocations: 62.67 kB / 3.877 GB, free: 23.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (147): * Single equations (assignments): 142 * 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.0006395/12.95, allocations: 215.8 kB / 3.877 GB, free: 22.91 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005514/12.95, allocations: 153.4 kB / 3.877 GB, free: 22.82 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01397/12.96, allocations: 4.732 MB / 3.882 GB, free: 20.68 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-05/12.96, allocations: 55.81 kB / 3.882 GB, free: 20.67 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/12.96, allocations: 3.938 kB / 3.882 GB, free: 20.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006368/12.97, allocations: 3.958 MB / 3.886 GB, free: 18.83 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/12.98, allocations: 6.78 MB / 3.893 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/12.98, allocations: 0 / 3.893 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/12.98, allocations: 248.9 kB / 3.893 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009748/12.98, allocations: 182.9 kB / 3.893 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001726/12.98, allocations: 47.45 kB / 3.893 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008455/12.98, allocations: 1.279 MB / 3.894 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/12.98, allocations: 0 / 3.894 GB, free: 12.75 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007328/12.99, allocations: 4.219 MB / 3.898 GB, free: 8.875 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/12.99, allocations: 0.558 MB / 3.899 GB, free: 8.375 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000358/12.99, allocations: 35.89 kB / 3.899 GB, free: 8.344 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/12.99, allocations: 124.3 kB / 3.899 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002643/12.99, allocations: 96.67 kB / 3.899 GB, free: 8.184 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/12.99, allocations: 50.92 kB / 3.899 GB, free: 8.141 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001817/13, allocations: 0.9779 MB / 3.9 GB, free: 7.25 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.51e-07/13, allocations: 0 / 3.9 GB, free: 7.25 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009026/13.01, allocations: 2.21 MB / 3.902 GB, free: 5.09 MB / 0.5417 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 (119): * Single equations (assignments): 101 * 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.0195/13.02, allocations: 7.057 MB / 3.909 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008401/13.03, allocations: 3.005 MB / 3.912 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/13.03, allocations: 4.312 kB / 3.912 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003303/13.04, allocations: 1.413 MB / 3.914 GB, free: 10.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006783/13.04, allocations: 0.6461 MB / 3.914 GB, free: 10.32 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/13.06, allocations: 4.943 MB / 3.919 GB, free: 5.938 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/13.06, allocations: 1.7 MB / 3.921 GB, free: 4.551 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002157/13.06, allocations: 0.8599 MB / 3.921 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of SimCode: time 2.925e-06/13.06, allocations: 0 / 3.921 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.216/18.28, allocations: 78.76 MB / 3.998 GB, free: 62.33 MB / 0.5573 GB