Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.03/2.03, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.211e-05/4.241e-05, allocations: 4 kB / 273.2 MB, free: 148 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 48.7 MB / 321.9 MB, free: 15.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.065/8.176, allocations: 2.546 GB / 2.86 GB, free: 9.562 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/8.176, allocations: 74.66 kB / 2.86 GB, free: 9.527 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709/12.89, allocations: 0.8409 GB / 3.701 GB, free: 18.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/12.89, allocations: 0 / 3.701 GB, free: 18.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003125/12.89, allocations: 67.27 kB / 3.701 GB, free: 18.35 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01758/12.9, allocations: 3.696 MB / 3.705 GB, free: 14.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/12.9, allocations: 8.031 kB / 3.705 GB, free: 14.58 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001098/12.9, allocations: 273.9 kB / 3.705 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00813/12.91, allocations: 0.7504 MB / 3.706 GB, free: 13.55 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007525/12.92, allocations: 1.936 MB / 3.708 GB, free: 11.56 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000244/12.92, allocations: 163.5 kB / 3.708 GB, free: 11.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006572/12.92, allocations: 183.9 kB / 3.708 GB, free: 11.22 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009902/12.93, allocations: 3.238 MB / 3.711 GB, free: 7.824 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.332e-05/12.93, allocations: 11.84 kB / 3.711 GB, free: 7.812 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003679/12.93, allocations: 79.97 kB / 3.711 GB, free: 7.734 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002787/12.93, allocations: 151.2 kB / 3.711 GB, free: 7.586 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009374/12.94, allocations: 2.856 MB / 3.714 GB, free: 4.727 MB / 458.7 MB 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.03049/12.97, allocations: 14.05 MB / 3.728 GB, free: 5.477 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007573/12.98, allocations: 1.933 MB / 3.73 GB, free: 3.543 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002837/12.98, allocations: 0.9361 MB / 3.731 GB, free: 2.609 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4607/13.44, allocations: 18.92 MB / 3.749 GB, free: 27.09 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006251/13.45, allocations: 1.536 MB / 3.751 GB, free: 26.98 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002044/13.45, allocations: 161.2 kB / 3.751 GB, free: 26.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 1.299e-05/13.45, allocations: 2.938 kB / 3.751 GB, free: 26.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=154): time 0.03041/13.48, allocations: 6.757 MB / 3.757 GB, free: 26.21 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/13.48, allocations: 257.4 kB / 3.758 GB, free: 25.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003486/13.49, allocations: 1.33 MB / 3.759 GB, free: 25.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005364/13.49, allocations: 55.89 kB / 3.759 GB, free: 25.72 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/13.49, allocations: 0.9005 MB / 3.76 GB, free: 25.44 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001018/13.49, allocations: 0.5135 MB / 3.76 GB, free: 25.18 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/13.49, allocations: 34.53 kB / 3.76 GB, free: 25.18 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001716/13.49, allocations: 383.3 kB / 3.761 GB, free: 24.88 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00256/13.49, allocations: 0.9077 MB / 3.762 GB, free: 24.88 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003118/13.5, allocations: 1.303 MB / 3.763 GB, free: 24.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003136/13.5, allocations: 1.142 MB / 3.764 GB, free: 24.36 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-05/13.5, allocations: 5.234 kB / 3.764 GB, free: 24.36 MB / 474.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.009953/13.51, allocations: 2.921 MB / 3.767 GB, free: 24.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001026/13.51, allocations: 4.361 MB / 3.771 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.791e-05/13.51, allocations: 15.5 kB / 3.771 GB, free: 19.49 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005103/13.51, allocations: 0.591 MB / 3.772 GB, free: 19.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003683/13.52, allocations: 434.8 kB / 3.772 GB, free: 19.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00298/13.52, allocations: 2.823 MB / 3.775 GB, free: 17.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004068/13.53, allocations: 236.3 kB / 3.775 GB, free: 17.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006847/13.53, allocations: 96.2 kB / 3.775 GB, free: 17.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/13.53, allocations: 3.656 kB / 3.775 GB, free: 17.37 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007774/13.53, allocations: 2.519 MB / 3.778 GB, free: 17.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.076e-05/13.53, allocations: 8.219 kB / 3.778 GB, free: 17.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009553/13.54, allocations: 194.1 kB / 3.778 GB, free: 17.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003868/13.54, allocations: 462.6 kB / 3.778 GB, free: 17.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00141/13.54, allocations: 1.877 MB / 3.78 GB, free: 15.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/13.54, allocations: 230.5 kB / 3.78 GB, free: 15.65 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006163/13.55, allocations: 91.55 kB / 3.78 GB, free: 15.65 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0008447/13.55, allocations: 292.3 kB / 3.781 GB, free: 15.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006845/13.55, allocations: 185.7 kB / 3.781 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01504/13.56, allocations: 7.36 MB / 3.788 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000109/13.56, allocations: 79.53 kB / 3.788 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/13.56, allocations: 0 / 3.788 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01202/13.57, allocations: 6.44 MB / 3.794 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/13.6, allocations: 10.21 MB / 3.804 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.526e-05/13.6, allocations: 2.625 kB / 3.804 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002826/13.6, allocations: 334.2 kB / 3.805 GB, free: 13.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005211/13.6, allocations: 1.579 MB / 3.806 GB, free: 13.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005511/13.6, allocations: 53.89 kB / 3.806 GB, free: 13.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003548/13.61, allocations: 3.462 MB / 3.81 GB, free: 11.07 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/13.61, allocations: 0 / 3.81 GB, free: 11.07 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/13.62, allocations: 6.948 MB / 3.817 GB, free: 10.49 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00239/13.62, allocations: 0.702 MB / 3.817 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001019/13.63, allocations: 45.64 kB / 3.817 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003351/13.63, allocations: 187.1 kB / 3.817 GB, free: 10.16 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006032/13.63, allocations: 129.4 kB / 3.818 GB, free: 10.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/13.63, allocations: 66.97 kB / 3.818 GB, free: 10.16 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002801/13.63, allocations: 1.124 MB / 3.819 GB, free: 10 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.22e-07/13.63, allocations: 3.578 kB / 3.819 GB, free: 10 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01279/13.65, allocations: 2.674 MB / 3.821 GB, free: 9.883 MB / 474.7 MB 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,pipe2.mediums[1].p,pipe2.mediums[1].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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0282/13.67, allocations: 9.749 MB / 3.831 GB, free: 8.574 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/13.69, allocations: 4.468 MB / 3.835 GB, free: 8.266 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/13.69, allocations: 2.438 kB / 3.835 GB, free: 8.266 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004788/13.69, allocations: 2.161 MB / 3.837 GB, free: 8.125 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007984/13.7, allocations: 0.8839 MB / 3.838 GB, free: 8.102 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8197/14.52, allocations: 127.4 MB / 3.963 GB, free: 63.88 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002734/14.52, allocations: 2.178 MB / 3.965 GB, free: 63.11 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00825/14.53, allocations: 2.343 MB / 3.967 GB, free: 63.08 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002599/14.53, allocations: 1.191 MB / 3.968 GB, free: 63.08 MB / 0.4948 GB Notification: Performance of SimCode: time 1.643e-06/14.53, allocations: 0 / 3.968 GB, free: 63.08 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2553/14.79, allocations: 116.7 MB / 4.082 GB, free: 17.92 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000223/14.79, allocations: 225.8 kB / 4.082 GB, free: 17.66 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/23.05, allocations: 0 / 4.082 GB, free: 17.66 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat