Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.533/2.533, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.473e-05/2.487e-05, allocations: 0 / 299.6 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.403/0.403, allocations: 54.87 MB / 354.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.984/8.388, allocations: 2.587 GB / 2.933 GB, free: 9.703 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/8.388, allocations: 81.33 kB / 2.933 GB, free: 9.66 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.245/9.633, allocations: 212.7 MB / 3.141 GB, free: 3.551 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.663e-06/9.633, allocations: 4 kB / 3.141 GB, free: 3.547 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.362e-05/9.633, allocations: 4 kB / 3.141 GB, free: 3.543 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.005867/9.639, allocations: 1.169 MB / 3.142 GB, free: 2.336 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/9.639, allocations: 12.02 kB / 3.142 GB, free: 2.324 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002922/9.642, allocations: 227.2 kB / 3.142 GB, free: 2.102 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009576/9.643, allocations: 374.8 kB / 3.143 GB, free: 1.695 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/9.643, allocations: 20.69 kB / 3.143 GB, free: 1.676 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-05/9.643, allocations: 23.92 kB / 3.143 GB, free: 1.652 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000867/9.644, allocations: 301.4 kB / 3.143 GB, free: 1.355 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008601/9.645, allocations: 385.5 kB / 3.143 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/9.645, allocations: 0 / 3.143 GB, free: 0.9375 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-05/9.645, allocations: 4 kB / 3.143 GB, free: 0.9336 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/9.645, allocations: 8 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.3782/10.02, allocations: 3.878 MB / 3.147 GB, free: 82.75 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007295/10.02, allocations: 225.9 kB / 3.147 GB, free: 82.72 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/10.02, allocations: 116.8 kB / 3.147 GB, free: 82.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1957/10.22, allocations: 50.23 MB / 3.196 GB, free: 55.76 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.924e-05/10.22, allocations: 47.62 kB / 3.197 GB, free: 55.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 4.409e-06/10.22, allocations: 0 / 3.197 GB, free: 55.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.002769/10.22, allocations: 0.4967 MB / 3.197 GB, free: 55.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/10.22, allocations: 107.7 kB / 3.197 GB, free: 55.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003645/10.22, allocations: 244.6 kB / 3.197 GB, free: 55.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/10.22, allocations: 25.7 kB / 3.197 GB, free: 55.42 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/10.22, allocations: 218.5 kB / 3.198 GB, free: 55.29 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.168e-05/10.22, allocations: 82.31 kB / 3.198 GB, free: 55.25 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/10.22, allocations: 0 / 3.198 GB, free: 55.25 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/10.22, allocations: 344.8 kB / 3.198 GB, free: 54.94 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/10.22, allocations: 81.88 kB / 3.198 GB, free: 54.93 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003065/10.22, allocations: 206.7 kB / 3.198 GB, free: 54.79 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/10.23, allocations: 169.6 kB / 3.198 GB, free: 54.79 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/10.23, allocations: 0 / 3.198 GB, free: 54.79 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001503/10.23, allocations: 381.7 kB / 3.199 GB, free: 54.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/10.23, allocations: 8.25 kB / 3.199 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/10.23, allocations: 3.219 kB / 3.199 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/10.23, allocations: 9.594 kB / 3.199 GB, free: 54.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007313/10.23, allocations: 104.3 kB / 3.199 GB, free: 54.72 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/10.23, allocations: 9.828 kB / 3.199 GB, free: 54.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006286/10.23, allocations: 58.2 kB / 3.199 GB, free: 54.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.878e-05/10.23, allocations: 22.48 kB / 3.199 GB, free: 54.71 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.0001236/10.23, allocations: 114.5 kB / 3.199 GB, free: 54.61 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001294/10.23, allocations: 293.9 kB / 3.199 GB, free: 54.55 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.802e-05/10.23, allocations: 30.06 kB / 3.199 GB, free: 54.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002842/10.23, allocations: 1.622 MB / 3.201 GB, free: 54.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.85e-05/10.23, allocations: 25.48 kB / 3.201 GB, free: 54.35 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/10.23, allocations: 3.969 kB / 3.201 GB, free: 54.35 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/10.23, allocations: 4 kB / 3.201 GB, free: 54.34 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/10.23, allocations: 0.8214 MB / 3.202 GB, free: 54.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/10.23, allocations: 1.688 kB / 3.202 GB, free: 54.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006106/10.23, allocations: 77.78 kB / 3.202 GB, free: 54.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.907e-06/10.23, allocations: 2 kB / 3.202 GB, free: 54.15 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/10.23, allocations: 6.531 kB / 3.202 GB, free: 54.14 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/10.23, allocations: 0 / 3.202 GB, free: 54.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/10.23, allocations: 3.953 kB / 3.202 GB, free: 54.14 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/10.24, allocations: 0.9137 MB / 3.203 GB, free: 53.93 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002182/10.24, allocations: 210.6 kB / 3.203 GB, free: 53.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/10.24, allocations: 0 / 3.203 GB, free: 53.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005712/10.24, allocations: 38.78 kB / 3.203 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/10.24, allocations: 42.94 kB / 3.203 GB, free: 53.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.43e-05/10.24, allocations: 6.719 kB / 3.203 GB, free: 53.79 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003694/10.24, allocations: 259.2 kB / 3.203 GB, free: 53.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.21e-07/10.24, allocations: 0 / 3.203 GB, free: 53.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005211/10.24, allocations: 0.9795 MB / 3.204 GB, free: 53.69 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.01269/10.26, allocations: 2.799 MB / 3.207 GB, free: 52.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001036/10.26, allocations: 460.4 kB / 3.207 GB, free: 52.87 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/10.26, allocations: 3.75 kB / 3.207 GB, free: 52.87 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006098/10.26, allocations: 414.7 kB / 3.208 GB, free: 52.87 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001828/10.26, allocations: 170.6 kB / 3.208 GB, free: 52.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2207/10.48, allocations: 54.78 MB / 3.262 GB, free: 49.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004801/10.48, allocations: 0.962 MB / 3.262 GB, free: 48.74 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0008417/10.48, allocations: 255.3 kB / 3.263 GB, free: 48.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/10.48, allocations: 238.8 kB / 3.263 GB, free: 48.56 MB / 490.7 MB Notification: Performance of SimCode: time 1.122e-06/10.48, allocations: 0 / 3.263 GB, free: 48.56 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/10.59, allocations: 34.92 MB / 3.297 GB, free: 25.42 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002847/10.59, allocations: 191.2 kB / 3.297 GB, free: 25.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.264/14.86, allocations: 0 / 3.297 GB, free: 25.23 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat