Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.417/2.417, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.049e-05/3.069e-05, allocations: 4 kB / 299.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3781/0.3782, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.622/8, allocations: 2.587 GB / 2.933 GB, free: 9.727 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/8.001, allocations: 83.14 kB / 2.933 GB, free: 9.684 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.127/9.128, allocations: 212.7 MB / 3.141 GB, free: 3.543 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.235e-06/9.128, allocations: 0 / 3.141 GB, free: 3.543 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.193e-05/9.128, allocations: 15.84 kB / 3.141 GB, free: 3.531 MB / 490.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.005979/9.134, allocations: 1.161 MB / 3.142 GB, free: 2.328 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/9.134, allocations: 11.97 kB / 3.142 GB, free: 2.316 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002547/9.136, allocations: 227.2 kB / 3.142 GB, free: 2.094 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009016/9.137, allocations: 378.8 kB / 3.143 GB, free: 1.684 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/9.138, allocations: 12.69 kB / 3.143 GB, free: 1.672 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.566e-05/9.138, allocations: 16 kB / 3.143 GB, free: 1.656 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007739/9.138, allocations: 301.4 kB / 3.143 GB, free: 1.359 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/9.139, allocations: 385.5 kB / 3.143 GB, free: 0.9414 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/9.139, allocations: 3.938 kB / 3.143 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.243e-05/9.139, allocations: 0 / 3.143 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/9.139, allocations: 11.98 kB / 3.143 GB, free: 0.9258 MB / 490.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.3741/9.513, allocations: 3.88 MB / 3.147 GB, free: 82.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006946/9.514, allocations: 228.2 kB / 3.147 GB, free: 82.63 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003038/9.514, allocations: 115.4 kB / 3.147 GB, free: 82.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1796/9.694, allocations: 50.22 MB / 3.196 GB, free: 55.66 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/9.694, allocations: 34.59 kB / 3.196 GB, free: 55.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 5.17e-06/9.694, allocations: 0 / 3.196 GB, free: 55.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.002621/9.697, allocations: 0.5105 MB / 3.197 GB, free: 55.58 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/9.697, allocations: 108.6 kB / 3.197 GB, free: 55.46 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003663/9.697, allocations: 240.3 kB / 3.197 GB, free: 55.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/9.697, allocations: 25.7 kB / 3.197 GB, free: 55.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/9.697, allocations: 218.1 kB / 3.197 GB, free: 55.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.51e-05/9.698, allocations: 79.22 kB / 3.198 GB, free: 55.16 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.306e-05/9.698, allocations: 4 kB / 3.198 GB, free: 55.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.623e-05/9.698, allocations: 345 kB / 3.198 GB, free: 54.84 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/9.698, allocations: 85.5 kB / 3.198 GB, free: 54.84 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/9.698, allocations: 203.7 kB / 3.198 GB, free: 54.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009592/9.699, allocations: 169.2 kB / 3.198 GB, free: 54.69 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/9.699, allocations: 3.906 kB / 3.198 GB, free: 54.69 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001418/9.701, allocations: 380.6 kB / 3.199 GB, free: 54.64 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/9.701, allocations: 7.875 kB / 3.199 GB, free: 54.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/9.701, allocations: 3.906 kB / 3.199 GB, free: 54.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-05/9.701, allocations: 3.719 kB / 3.199 GB, free: 54.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006659/9.701, allocations: 104.9 kB / 3.199 GB, free: 54.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/9.701, allocations: 11.8 kB / 3.199 GB, free: 54.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005836/9.702, allocations: 54.17 kB / 3.199 GB, free: 54.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.715e-05/9.702, allocations: 19.22 kB / 3.199 GB, free: 54.62 MB / 490.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.0001413/9.702, allocations: 118.2 kB / 3.199 GB, free: 54.51 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001257/9.703, allocations: 293.9 kB / 3.199 GB, free: 54.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.839e-05/9.704, allocations: 30.97 kB / 3.199 GB, free: 54.44 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00265/9.706, allocations: 1.635 MB / 3.201 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.052e-05/9.706, allocations: 23.69 kB / 3.201 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/9.706, allocations: 0 / 3.201 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/9.706, allocations: 7.25 kB / 3.201 GB, free: 54.25 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/9.708, allocations: 0.8254 MB / 3.202 GB, free: 54.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.476e-06/9.708, allocations: 3.938 kB / 3.202 GB, free: 54.05 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005537/9.708, allocations: 74.06 kB / 3.202 GB, free: 54.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/9.708, allocations: 0 / 3.202 GB, free: 54.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/9.708, allocations: 10.45 kB / 3.202 GB, free: 54.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/9.708, allocations: 7.719 kB / 3.202 GB, free: 54.05 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/9.708, allocations: 3.953 kB / 3.202 GB, free: 54.04 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/9.71, allocations: 0.9073 MB / 3.203 GB, free: 53.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003051/9.71, allocations: 206.2 kB / 3.203 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/9.711, allocations: 0 / 3.203 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005311/9.711, allocations: 39.89 kB / 3.203 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/9.711, allocations: 39.09 kB / 3.203 GB, free: 53.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/9.711, allocations: 12.81 kB / 3.203 GB, free: 53.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003736/9.712, allocations: 255.3 kB / 3.203 GB, free: 53.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.21e-07/9.712, allocations: 0 / 3.203 GB, free: 53.6 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005344/9.717, allocations: 0.987 MB / 3.204 GB, free: 53.6 MB / 490.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: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01257/9.73, allocations: 2.792 MB / 3.207 GB, free: 52.78 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/9.731, allocations: 458.2 kB / 3.207 GB, free: 52.77 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/9.731, allocations: 0 / 3.207 GB, free: 52.77 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005716/9.731, allocations: 419.5 kB / 3.208 GB, free: 52.77 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/9.733, allocations: 181.5 kB / 3.208 GB, free: 52.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1922/9.925, allocations: 54.78 MB / 3.261 GB, free: 49.51 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/9.926, allocations: 0.9587 MB / 3.262 GB, free: 48.62 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0008183/9.927, allocations: 248.2 kB / 3.263 GB, free: 48.49 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004361/9.927, allocations: 243.7 kB / 3.263 GB, free: 48.45 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/9.927, allocations: 0 / 3.263 GB, free: 48.45 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/10.03, allocations: 34.9 MB / 3.297 GB, free: 25.36 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/10.03, allocations: 182.7 kB / 3.297 GB, free: 25.16 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.984/14.02, allocations: 4 kB / 3.297 GB, free: 25.16 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat