Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.359/2.359, allocations: 235 MB / 247.6 MB, free: 14.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.75e-05/3.756e-05, allocations: 4.938 kB / 305 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.398/0.398, allocations: 54.84 MB / 359.9 MB, free: 2.609 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.075/8.473, allocations: 2.655 GB / 3.007 GB, free: 103.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004186/8.473, allocations: 78.95 kB / 3.007 GB, free: 103.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.201/11.67, allocations: 0.5733 GB / 3.58 GB, free: 44.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.344e-06/11.67, allocations: 0 / 3.58 GB, free: 44.07 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000218/11.67, allocations: 45.86 kB / 3.58 GB, free: 44.06 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.01556/11.69, allocations: 2.846 MB / 3.583 GB, free: 42.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.295e-05/11.69, allocations: 10.78 kB / 3.583 GB, free: 42.6 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008053/11.69, allocations: 190.3 kB / 3.583 GB, free: 42.55 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00816/11.7, allocations: 0.5454 MB / 3.584 GB, free: 42.46 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007003/11.71, allocations: 1.438 MB / 3.585 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002075/11.71, allocations: 112 kB / 3.585 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006502/11.71, allocations: 127.3 kB / 3.585 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007738/11.71, allocations: 2.251 MB / 3.588 GB, free: 41.71 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-05/11.71, allocations: 3.844 kB / 3.588 GB, free: 41.71 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002865/11.72, allocations: 59.81 kB / 3.588 GB, free: 41.71 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000209/11.72, allocations: 103.5 kB / 3.588 GB, free: 41.7 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0071/11.72, allocations: 1.946 MB / 3.59 GB, free: 41.7 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.01983/11.74, allocations: 9.649 MB / 3.599 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00447/11.75, allocations: 1.314 MB / 3.6 GB, free: 35.74 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/11.75, allocations: 0.6126 MB / 3.601 GB, free: 35.72 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06203/11.81, allocations: 18.85 MB / 3.619 GB, free: 23.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003604/11.81, allocations: 1.032 MB / 3.62 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 5.15e-06/11.81, allocations: 0 / 3.62 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.01726/11.83, allocations: 4.367 MB / 3.625 GB, free: 23.02 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/11.83, allocations: 279.3 kB / 3.625 GB, free: 22.71 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/11.83, allocations: 0.9727 MB / 3.626 GB, free: 22.54 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000374/11.83, allocations: 49.11 kB / 3.626 GB, free: 22.51 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006804/11.83, allocations: 0.6382 MB / 3.627 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006059/11.84, allocations: 356.8 kB / 3.627 GB, free: 21.94 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/11.84, allocations: 27.19 kB / 3.627 GB, free: 21.94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001325/11.84, allocations: 358.1 kB / 3.627 GB, free: 21.63 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/11.84, allocations: 0.6138 MB / 3.628 GB, free: 21.62 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/11.84, allocations: 0.9369 MB / 3.629 GB, free: 21.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/11.84, allocations: 0.7624 MB / 3.63 GB, free: 21.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.525e-05/11.84, allocations: 3.344 kB / 3.63 GB, free: 21.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004963/11.85, allocations: 1.755 MB / 3.631 GB, free: 21.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008148/11.85, allocations: 3.261 MB / 3.634 GB, free: 17.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.596e-05/11.85, allocations: 10.23 kB / 3.634 GB, free: 17.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000766/11.85, allocations: 135.2 kB / 3.635 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/11.85, allocations: 321.1 kB / 3.635 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001028/11.85, allocations: 1.255 MB / 3.636 GB, free: 16.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002719/11.86, allocations: 154.5 kB / 3.636 GB, free: 16.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004258/11.86, allocations: 68.02 kB / 3.636 GB, free: 16.56 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/11.86, allocations: 3.875 kB / 3.636 GB, free: 16.56 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004778/11.86, allocations: 1.66 MB / 3.638 GB, free: 16.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/11.86, allocations: 7.719 kB / 3.638 GB, free: 16.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006284/11.86, allocations: 133.2 kB / 3.638 GB, free: 16.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/11.86, allocations: 331.5 kB / 3.638 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009669/11.86, allocations: 1.252 MB / 3.64 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/11.87, allocations: 153.3 kB / 3.64 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/11.87, allocations: 65.53 kB / 3.64 GB, free: 15.11 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.0005673/11.87, allocations: 227.8 kB / 3.64 GB, free: 14.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004447/11.87, allocations: 135.3 kB / 3.64 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008674/11.88, allocations: 4.681 MB / 3.645 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.558e-05/11.88, allocations: 54.73 kB / 3.645 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/11.88, allocations: 0 / 3.645 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00623/11.88, allocations: 3.906 MB / 3.649 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01196/11.9, allocations: 6.65 MB / 3.655 GB, free: 7.938 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/11.9, allocations: 0 / 3.655 GB, free: 7.938 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/11.9, allocations: 244.6 kB / 3.655 GB, free: 7.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009872/11.9, allocations: 172.6 kB / 3.656 GB, free: 7.859 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002272/11.9, allocations: 43.61 kB / 3.656 GB, free: 7.836 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/11.9, allocations: 1.284 MB / 3.657 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/11.9, allocations: 0 / 3.657 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007707/11.91, allocations: 4.16 MB / 3.661 GB, free: 20.82 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/11.91, allocations: 0.5306 MB / 3.661 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004377/11.91, allocations: 29.73 kB / 3.661 GB, free: 20.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/11.91, allocations: 120.1 kB / 3.662 GB, free: 20.43 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/11.91, allocations: 87.05 kB / 3.662 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/11.91, allocations: 44.95 kB / 3.662 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001817/11.91, allocations: 0.8509 MB / 3.663 GB, free: 20.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.82e-07/11.91, allocations: 11.84 kB / 3.663 GB, free: 20.07 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01061/11.92, allocations: 2.187 MB / 3.665 GB, free: 18.63 MB / 0.5105 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.02344/11.95, allocations: 6.99 MB / 3.671 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009692/11.96, allocations: 3.011 MB / 3.674 GB, free: 9.691 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.678e-06/11.96, allocations: 0 / 3.674 GB, free: 9.691 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004054/11.96, allocations: 1.418 MB / 3.676 GB, free: 8.367 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005927/11.97, allocations: 0.5791 MB / 3.676 GB, free: 7.945 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8038/12.77, allocations: 127.1 MB / 3.801 GB, free: 48.14 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/12.77, allocations: 1.7 MB / 3.802 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002419/12.78, allocations: 0.8513 MB / 3.803 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of SimCode: time 2.625e-06/12.78, allocations: 0 / 3.803 GB, free: 47.39 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.844/17.62, allocations: 77.81 MB / 3.879 GB, free: 14.2 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat