Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.508/2.508, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.114e-05, allocations: 0 / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3825, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.366/8.748, allocations: 2.587 GB / 2.933 GB, free: 117.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003393/8.749, allocations: 83.2 kB / 2.933 GB, free: 117.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.26/10.01, allocations: 212.8 MB / 3.141 GB, free: 87.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.753e-06/10.01, allocations: 0 / 3.141 GB, free: 87.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.116e-05/10.01, allocations: 7.562 kB / 3.141 GB, free: 87.84 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.005625/10.01, allocations: 1.18 MB / 3.142 GB, free: 87.23 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/10.01, allocations: 15.66 kB / 3.142 GB, free: 87.23 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002648/10.02, allocations: 219.4 kB / 3.142 GB, free: 87.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008446/10.02, allocations: 381.5 kB / 3.142 GB, free: 87 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.143e-05/10.02, allocations: 15.2 kB / 3.142 GB, free: 87 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.072e-05/10.02, allocations: 15.69 kB / 3.142 GB, free: 87 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008107/10.02, allocations: 305.5 kB / 3.143 GB, free: 87 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007999/10.02, allocations: 385.2 kB / 3.143 GB, free: 86.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/10.02, allocations: 2.062 kB / 3.143 GB, free: 86.86 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.572e-05/10.02, allocations: 3.812 kB / 3.143 GB, free: 86.86 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/10.02, allocations: 10.81 kB / 3.143 GB, free: 86.86 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.008132/10.03, allocations: 3.883 MB / 3.147 GB, free: 84.17 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000649/10.03, allocations: 231.8 kB / 3.147 GB, free: 84.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002645/10.03, allocations: 121.2 kB / 3.147 GB, free: 84.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1914/10.22, allocations: 50.23 MB / 3.196 GB, free: 56.67 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/10.22, allocations: 33.16 kB / 3.196 GB, free: 56.63 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 4.198e-06/10.22, allocations: 0 / 3.196 GB, free: 56.63 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.002761/10.22, allocations: 0.5107 MB / 3.197 GB, free: 56.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/10.22, allocations: 106.6 kB / 3.197 GB, free: 56.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/10.22, allocations: 240.2 kB / 3.197 GB, free: 56.34 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/10.22, allocations: 25.7 kB / 3.197 GB, free: 56.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/10.22, allocations: 224.5 kB / 3.197 GB, free: 56.19 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.152e-05/10.22, allocations: 79.28 kB / 3.198 GB, free: 56.15 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/10.22, allocations: 4 kB / 3.198 GB, free: 56.14 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.295e-05/10.22, allocations: 344.9 kB / 3.198 GB, free: 55.83 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/10.22, allocations: 83.16 kB / 3.198 GB, free: 55.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/10.22, allocations: 202.7 kB / 3.198 GB, free: 55.68 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/10.23, allocations: 165.7 kB / 3.198 GB, free: 55.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/10.23, allocations: 7.781 kB / 3.198 GB, free: 55.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0016/10.23, allocations: 386 kB / 3.199 GB, free: 55.61 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/10.23, allocations: 7.938 kB / 3.199 GB, free: 55.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/10.23, allocations: 3.969 kB / 3.199 GB, free: 55.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.072e-05/10.23, allocations: 3.969 kB / 3.199 GB, free: 55.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008187/10.23, allocations: 109.8 kB / 3.199 GB, free: 55.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/10.23, allocations: 6.453 kB / 3.199 GB, free: 55.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006861/10.23, allocations: 66.53 kB / 3.199 GB, free: 55.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.176e-05/10.23, allocations: 18.84 kB / 3.199 GB, free: 55.6 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.000138/10.23, allocations: 120.2 kB / 3.199 GB, free: 55.49 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001343/10.23, allocations: 290.1 kB / 3.199 GB, free: 55.44 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.545e-05/10.23, allocations: 31.34 kB / 3.199 GB, free: 55.42 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002831/10.23, allocations: 1.626 MB / 3.201 GB, free: 55.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.8e-05/10.23, allocations: 30.17 kB / 3.201 GB, free: 55.19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/10.23, allocations: 4 kB / 3.201 GB, free: 55.18 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/10.23, allocations: 2.734 kB / 3.201 GB, free: 55.18 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/10.23, allocations: 0.8248 MB / 3.202 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/10.23, allocations: 0 / 3.202 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007117/10.24, allocations: 91.25 kB / 3.202 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/10.24, allocations: 3.469 kB / 3.202 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/10.24, allocations: 3.719 kB / 3.202 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/10.24, allocations: 0 / 3.202 GB, free: 54.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/10.24, allocations: 3.938 kB / 3.202 GB, free: 54.95 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/10.24, allocations: 0.9115 MB / 3.203 GB, free: 54.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/10.24, allocations: 215.8 kB / 3.203 GB, free: 54.58 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/10.24, allocations: 0 / 3.203 GB, free: 54.58 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006181/10.24, allocations: 44.88 kB / 3.203 GB, free: 54.57 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/10.24, allocations: 29.91 kB / 3.203 GB, free: 54.57 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.513e-05/10.24, allocations: 10.59 kB / 3.203 GB, free: 54.57 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004104/10.24, allocations: 266.3 kB / 3.203 GB, free: 54.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.432e-06/10.24, allocations: 0 / 3.203 GB, free: 54.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005518/10.24, allocations: 0.9909 MB / 3.204 GB, free: 54.33 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: 16 ($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) * 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.01227/10.26, allocations: 2.801 MB / 3.207 GB, free: 53.37 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001035/10.26, allocations: 461 kB / 3.207 GB, free: 53.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/10.26, allocations: 0 / 3.207 GB, free: 53.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000603/10.26, allocations: 423.2 kB / 3.208 GB, free: 53.34 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/10.26, allocations: 168.7 kB / 3.208 GB, free: 53.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.21/10.47, allocations: 54.79 MB / 3.261 GB, free: 24.59 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/10.47, allocations: 0.9628 MB / 3.262 GB, free: 23.7 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0007972/10.47, allocations: 250.4 kB / 3.263 GB, free: 23.55 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004163/10.47, allocations: 242.5 kB / 3.263 GB, free: 23.34 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/10.47, allocations: 0 / 3.263 GB, free: 23.34 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5204/10.99, allocations: 35.03 MB / 3.297 GB, free: 82.03 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002283/10.99, allocations: 189.2 kB / 3.297 GB, free: 81.84 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.24/15.23, allocations: 2.375 kB / 3.297 GB, free: 81.84 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat