Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.061/2.061, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.104e-05/4.143e-05, allocations: 11.38 kB / 273.2 MB, free: 140 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1118, allocations: 48.7 MB / 321.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.957/8.069, allocations: 2.477 GB / 2.791 GB, free: 88.44 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/8.069, allocations: 80.64 kB / 2.791 GB, free: 88.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.074/9.143, allocations: 211.5 MB / 2.998 GB, free: 42.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.743e-06/9.143, allocations: 0 / 2.998 GB, free: 42.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.978e-05/9.143, allocations: 8 kB / 2.998 GB, free: 42.31 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.005156/9.148, allocations: 1.15 MB / 2.999 GB, free: 41.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/9.148, allocations: 12.03 kB / 2.999 GB, free: 41.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.896e-05/9.148, allocations: 62.53 kB / 2.999 GB, free: 41.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/9.151, allocations: 217.3 kB / 2.999 GB, free: 40.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008115/9.151, allocations: 393 kB / 3 GB, free: 40.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/9.152, allocations: 24.78 kB / 3 GB, free: 40.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.261e-05/9.152, allocations: 28 kB / 3 GB, free: 40.37 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001747/9.153, allocations: 0.5714 MB / 3 GB, free: 39.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.978e-05/9.153, allocations: 4 kB / 3 GB, free: 39.76 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.11e-05/9.153, allocations: 16 kB / 3 GB, free: 39.74 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/9.154, allocations: 11.94 kB / 3 GB, free: 39.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001608/9.155, allocations: 492.6 kB / 3.001 GB, free: 39.25 MB / 426.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.003344/9.158, allocations: 2.53 MB / 3.003 GB, free: 36.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/9.16, allocations: 413.9 kB / 3.004 GB, free: 36.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002908/9.16, allocations: 124.8 kB / 3.004 GB, free: 35.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4803/9.641, allocations: 51.59 MB / 3.054 GB, free: 71.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/9.641, allocations: 35 kB / 3.054 GB, free: 71.01 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 3.076e-06/9.641, allocations: 1.031 kB / 3.054 GB, free: 71.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.003085/9.644, allocations: 0.6098 MB / 3.055 GB, free: 70.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/9.644, allocations: 109.9 kB / 3.055 GB, free: 70.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004212/9.644, allocations: 251 kB / 3.055 GB, free: 70.76 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/9.645, allocations: 30.08 kB / 3.055 GB, free: 70.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/9.645, allocations: 220.4 kB / 3.055 GB, free: 70.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.511e-05/9.645, allocations: 86.91 kB / 3.055 GB, free: 70.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/9.645, allocations: 7.688 kB / 3.055 GB, free: 70.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.994e-05/9.645, allocations: 342.3 kB / 3.056 GB, free: 70.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/9.645, allocations: 87.56 kB / 3.056 GB, free: 70.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/9.646, allocations: 212 kB / 3.056 GB, free: 70.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002999/9.646, allocations: 120.6 kB / 3.056 GB, free: 70.11 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/9.646, allocations: 1.406 kB / 3.056 GB, free: 70.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009375/9.647, allocations: 346.2 kB / 3.056 GB, free: 70.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/9.647, allocations: 9.594 kB / 3.056 GB, free: 70.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/9.647, allocations: 4.047 kB / 3.056 GB, free: 70.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/9.647, allocations: 12.69 kB / 3.057 GB, free: 70.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/9.648, allocations: 94.39 kB / 3.057 GB, free: 70.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.721e-05/9.648, allocations: 12.69 kB / 3.057 GB, free: 70.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000576/9.648, allocations: 64.81 kB / 3.057 GB, free: 70.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-05/9.648, allocations: 17.95 kB / 3.057 GB, free: 70.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001381/9.648, allocations: 124.1 kB / 3.057 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.455e-05/9.649, allocations: 31.62 kB / 3.057 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003069/9.652, allocations: 1.839 MB / 3.059 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.252e-05/9.652, allocations: 33.17 kB / 3.059 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/9.652, allocations: 0.6094 kB / 3.059 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/9.652, allocations: 2.344 kB / 3.059 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/9.653, allocations: 0.9765 MB / 3.06 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/9.653, allocations: 0 / 3.06 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005841/9.654, allocations: 85.47 kB / 3.06 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.013e-05/9.654, allocations: 1.844 kB / 3.06 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3e-05/9.654, allocations: 7.094 kB / 3.06 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/9.654, allocations: 4.688 kB / 3.06 GB, free: 69.51 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/9.654, allocations: 6.297 kB / 3.06 GB, free: 69.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/9.656, allocations: 0.9729 MB / 3.061 GB, free: 69.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002309/9.656, allocations: 212.6 kB / 3.061 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.383e-05/9.656, allocations: 8.969 kB / 3.061 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/9.656, allocations: 41.44 kB / 3.061 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/9.657, allocations: 33.53 kB / 3.061 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.559e-05/9.657, allocations: 13.98 kB / 3.061 GB, free: 69.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004225/9.657, allocations: 258.1 kB / 3.061 GB, free: 69.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/9.657, allocations: 0 / 3.061 GB, free: 69.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005443/9.662, allocations: 0.9988 MB / 3.062 GB, free: 69.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01166/9.674, allocations: 2.796 MB / 3.065 GB, free: 68.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001268/9.676, allocations: 0.4981 MB / 3.065 GB, free: 68.24 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/9.676, allocations: 1.094 kB / 3.065 GB, free: 68.24 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007478/9.676, allocations: 471.8 kB / 3.066 GB, free: 68.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/9.678, allocations: 182.1 kB / 3.066 GB, free: 68.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2685/9.947, allocations: 75.44 MB / 3.14 GB, free: 65.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004581/9.947, allocations: 0.9755 MB / 3.141 GB, free: 64.49 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007526/9.948, allocations: 246 kB / 3.141 GB, free: 64.47 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003881/9.948, allocations: 251 kB / 3.141 GB, free: 64.46 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/9.948, allocations: 0 / 3.141 GB, free: 64.46 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1292/10.08, allocations: 40.14 MB / 3.18 GB, free: 38.27 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/10.08, allocations: 205.5 kB / 3.181 GB, free: 38.04 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.272/14.35, allocations: 0 / 3.181 GB, free: 38.04 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat