Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.646/2.646, allocations: 270 MB / 283.6 MB, free: 1.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.257e-05/4.262e-05, allocations: 4 kB / 348.5 MB, free: 2.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4158/0.4159, allocations: 61.87 MB / 410.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.869/9.285, allocations: 2.83 GB / 3.23 GB, free: 72 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/9.285, allocations: 79.58 kB / 3.23 GB, free: 71.96 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.463/12.75, allocations: 0.583 GB / 3.813 GB, free: 56.44 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.935e-06/12.75, allocations: 0 / 3.813 GB, free: 56.44 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002176/12.75, allocations: 42.28 kB / 3.814 GB, free: 56.43 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.01352/12.76, allocations: 2.863 MB / 3.816 GB, free: 54.96 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/12.76, allocations: 8 kB / 3.816 GB, free: 54.96 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007862/12.76, allocations: 191.1 kB / 3.817 GB, free: 54.91 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005998/12.77, allocations: 0.5409 MB / 3.817 GB, free: 54.82 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005676/12.77, allocations: 1.431 MB / 3.818 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002057/12.77, allocations: 115 kB / 3.819 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000623/12.78, allocations: 125.6 kB / 3.819 GB, free: 54.46 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007167/12.78, allocations: 2.266 MB / 3.821 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.817e-05/12.78, allocations: 5.469 kB / 3.821 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000266/12.78, allocations: 58.09 kB / 3.821 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002009/12.78, allocations: 97.88 kB / 3.821 GB, free: 54.07 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006834/12.79, allocations: 1.952 MB / 3.823 GB, free: 54.06 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.02034/12.81, allocations: 9.797 MB / 3.833 GB, free: 48.13 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004581/12.82, allocations: 1.331 MB / 3.834 GB, free: 48.1 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/12.82, allocations: 0.6242 MB / 3.834 GB, free: 48.09 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0766/12.89, allocations: 24.52 MB / 3.858 GB, free: 32.93 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003865/12.9, allocations: 1.06 MB / 3.859 GB, free: 32.84 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=96): time 5.32e-06/12.9, allocations: 0 / 3.859 GB, free: 32.84 MB / 0.5417 GB Notification: Performance of matching and sorting (n=104): time 0.01697/12.91, allocations: 4.474 MB / 3.864 GB, free: 32.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/12.91, allocations: 279.5 kB / 3.864 GB, free: 31.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001983/12.92, allocations: 1.021 MB / 3.865 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002541/12.92, allocations: 50.52 kB / 3.865 GB, free: 31.61 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006034/12.92, allocations: 0.6442 MB / 3.866 GB, free: 31.11 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003914/12.92, allocations: 355.3 kB / 3.866 GB, free: 30.85 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/12.92, allocations: 21.03 kB / 3.866 GB, free: 30.83 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001053/12.92, allocations: 359.1 kB / 3.866 GB, free: 30.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001537/12.92, allocations: 0.6192 MB / 3.867 GB, free: 30.28 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/12.92, allocations: 0.9027 MB / 3.868 GB, free: 29.71 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001788/12.92, allocations: 0.7639 MB / 3.869 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/12.92, allocations: 0 / 3.869 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.004952/12.93, allocations: 1.87 MB / 3.87 GB, free: 28.74 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006244/12.93, allocations: 2.764 MB / 3.873 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.678e-05/12.93, allocations: 7.125 kB / 3.873 GB, free: 25.82 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007109/12.93, allocations: 133.2 kB / 3.873 GB, free: 25.78 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002687/12.93, allocations: 313 kB / 3.874 GB, free: 25.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009232/12.93, allocations: 1.252 MB / 3.875 GB, free: 24.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002532/12.94, allocations: 152.3 kB / 3.875 GB, free: 24.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002163/12.94, allocations: 69.41 kB / 3.875 GB, free: 24.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/12.94, allocations: 4.75 kB / 3.875 GB, free: 24.59 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004259/12.94, allocations: 1.685 MB / 3.877 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/12.94, allocations: 7.688 kB / 3.877 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006074/12.94, allocations: 133.5 kB / 3.877 GB, free: 23.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/12.94, allocations: 316.9 kB / 3.877 GB, free: 23.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008485/12.94, allocations: 1.252 MB / 3.878 GB, free: 22.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/12.95, allocations: 157.5 kB / 3.878 GB, free: 22.74 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003167/12.95, allocations: 59.36 kB / 3.879 GB, free: 22.73 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.0005247/12.95, allocations: 212.5 kB / 3.879 GB, free: 22.54 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004055/12.95, allocations: 143.6 kB / 3.879 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008251/12.96, allocations: 4.736 MB / 3.884 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.145e-05/12.96, allocations: 58.33 kB / 3.884 GB, free: 20.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/12.96, allocations: 0 / 3.884 GB, free: 20.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00622/12.96, allocations: 3.952 MB / 3.887 GB, free: 18.47 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/12.97, allocations: 6.779 MB / 3.894 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/12.97, allocations: 4 kB / 3.894 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002012/12.98, allocations: 243.4 kB / 3.894 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000991/12.98, allocations: 177.1 kB / 3.894 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003157/12.98, allocations: 46.03 kB / 3.894 GB, free: 13.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009079/12.98, allocations: 1.292 MB / 3.896 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/12.98, allocations: 0 / 3.896 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008137/12.99, allocations: 4.225 MB / 3.9 GB, free: 7.992 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/12.99, allocations: 0.5592 MB / 3.9 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005502/12.99, allocations: 31.94 kB / 3.9 GB, free: 7.465 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002022/12.99, allocations: 127.8 kB / 3.901 GB, free: 7.367 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003137/12.99, allocations: 94.45 kB / 3.901 GB, free: 7.309 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/12.99, allocations: 43.84 kB / 3.901 GB, free: 7.27 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001982/12.99, allocations: 0.9827 MB / 3.902 GB, free: 6.379 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.32e-07/12.99, allocations: 4 kB / 3.902 GB, free: 6.375 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009687/13, allocations: 2.204 MB / 3.904 GB, free: 4.219 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.02257/13.03, allocations: 7.129 MB / 3.911 GB, free: 14.16 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.008929/13.03, allocations: 3.046 MB / 3.914 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/13.03, allocations: 3.938 kB / 3.914 GB, free: 11.32 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003475/13.04, allocations: 1.42 MB / 3.915 GB, free: 10 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005956/13.04, allocations: 0.6372 MB / 3.916 GB, free: 9.531 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/13.06, allocations: 4.915 MB / 3.921 GB, free: 5.195 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/13.06, allocations: 1.724 MB / 3.922 GB, free: 3.789 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.005958/13.07, allocations: 1.742 MB / 3.924 GB, free: 2.746 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002069/13.07, allocations: 0.8248 MB / 3.925 GB, free: 1.988 MB / 0.5573 GB Notification: Performance of SimCode: time 1.432e-06/13.07, allocations: 0 / 3.925 GB, free: 1.988 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6412/13.71, allocations: 89.52 MB / 4.012 GB, free: 64.57 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002529/13.71, allocations: 221.5 kB / 4.012 GB, free: 64.31 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.287/21, allocations: 0 / 4.012 GB, free: 64.31 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat does not exist to compare? outputFormat=mat