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.92/2.92, allocations: 235.2 MB / 242.3 MB, free: 9.566 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.277e-05/3.289e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4376/0.4377, allocations: 54.86 MB / 354.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.986/10.42, allocations: 2.587 GB / 2.933 GB, free: 117.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/10.42, allocations: 80.17 kB / 2.933 GB, free: 117.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.654/12.08, allocations: 212.9 MB / 3.141 GB, free: 88.13 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.094e-06/12.08, allocations: 0 / 3.141 GB, free: 88.13 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.253e-05/12.08, allocations: 11.72 kB / 3.141 GB, free: 88.13 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.006738/12.09, allocations: 1.164 MB / 3.142 GB, free: 87.53 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.91e-05/12.09, allocations: 7.625 kB / 3.142 GB, free: 87.53 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/12.09, allocations: 55.17 kB / 3.142 GB, free: 87.49 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004085/12.09, allocations: 225.4 kB / 3.143 GB, free: 87.46 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/12.09, allocations: 389.4 kB / 3.143 GB, free: 87.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.053e-05/12.09, allocations: 19.69 kB / 3.143 GB, free: 87.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.505e-05/12.09, allocations: 15.72 kB / 3.143 GB, free: 87.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001073/12.09, allocations: 310.3 kB / 3.143 GB, free: 87.25 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/12.09, allocations: 379.2 kB / 3.144 GB, free: 87.11 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.378e-05/12.09, allocations: 1.875 kB / 3.144 GB, free: 87.11 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/12.09, allocations: 3.5 kB / 3.144 GB, free: 87.11 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/12.09, allocations: 6.688 kB / 3.144 GB, free: 87.11 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.01277/12.11, allocations: 3.886 MB / 3.147 GB, free: 84.42 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/12.11, allocations: 225.4 kB / 3.148 GB, free: 84.39 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004889/12.11, allocations: 119.1 kB / 3.148 GB, free: 84.39 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2851/12.39, allocations: 50.23 MB / 3.197 GB, free: 56.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/12.39, allocations: 44.41 kB / 3.197 GB, free: 56.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 4.618e-06/12.39, allocations: 0 / 3.197 GB, free: 56.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.003478/12.4, allocations: 0.501 MB / 3.197 GB, free: 56.86 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/12.4, allocations: 102.8 kB / 3.197 GB, free: 56.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004436/12.4, allocations: 250.9 kB / 3.198 GB, free: 56.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.066e-05/12.4, allocations: 26.45 kB / 3.198 GB, free: 56.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/12.4, allocations: 219.3 kB / 3.198 GB, free: 56.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/12.4, allocations: 80.17 kB / 3.198 GB, free: 56.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.337e-05/12.4, allocations: 0 / 3.198 GB, free: 56.43 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/12.4, allocations: 343.2 kB / 3.198 GB, free: 56.11 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/12.4, allocations: 83.81 kB / 3.198 GB, free: 56.11 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003631/12.4, allocations: 209.2 kB / 3.199 GB, free: 55.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001314/12.4, allocations: 163.8 kB / 3.199 GB, free: 55.95 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/12.4, allocations: 3.5 kB / 3.199 GB, free: 55.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002007/12.4, allocations: 387.8 kB / 3.199 GB, free: 55.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/12.4, allocations: 4.594 kB / 3.199 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/12.4, allocations: 3.75 kB / 3.199 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.183e-05/12.4, allocations: 10.84 kB / 3.199 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009219/12.4, allocations: 98.97 kB / 3.199 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/12.4, allocations: 7.344 kB / 3.199 GB, free: 55.89 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007861/12.4, allocations: 57.83 kB / 3.199 GB, free: 55.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-05/12.4, allocations: 17.78 kB / 3.199 GB, free: 55.88 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.0001607/12.4, allocations: 120.6 kB / 3.199 GB, free: 55.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/12.4, allocations: 34 kB / 3.199 GB, free: 55.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003634/12.41, allocations: 1.617 MB / 3.201 GB, free: 55.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.734e-05/12.41, allocations: 28.3 kB / 3.201 GB, free: 55.52 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.457e-06/12.41, allocations: 7.141 kB / 3.201 GB, free: 55.52 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/12.41, allocations: 0 / 3.201 GB, free: 55.52 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/12.41, allocations: 0.8134 MB / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/12.41, allocations: 3.953 kB / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007813/12.41, allocations: 86.31 kB / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.236e-05/12.41, allocations: 3.719 kB / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.88e-05/12.41, allocations: 2.812 kB / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/12.41, allocations: 3.625 kB / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/12.41, allocations: 0 / 3.202 GB, free: 55.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/12.41, allocations: 0.9092 MB / 3.203 GB, free: 55.09 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/12.41, allocations: 212.8 kB / 3.203 GB, free: 54.92 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/12.41, allocations: 7.562 kB / 3.203 GB, free: 54.92 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007196/12.41, allocations: 38.33 kB / 3.203 GB, free: 54.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/12.41, allocations: 35.39 kB / 3.203 GB, free: 54.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/12.41, allocations: 11.56 kB / 3.203 GB, free: 54.91 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004767/12.41, allocations: 264.9 kB / 3.203 GB, free: 54.82 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.62e-07/12.41, allocations: 0 / 3.203 GB, free: 54.82 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005734/12.42, allocations: 0.9799 MB / 3.204 GB, free: 54.67 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.01531/12.44, allocations: 2.792 MB / 3.207 GB, free: 53.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001197/12.44, allocations: 459.9 kB / 3.207 GB, free: 53.69 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/12.44, allocations: 0 / 3.207 GB, free: 53.69 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007713/12.44, allocations: 426.2 kB / 3.208 GB, free: 53.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00278/12.44, allocations: 171.6 kB / 3.208 GB, free: 53.65 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2458/12.69, allocations: 54.81 MB / 3.262 GB, free: 25.48 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/12.69, allocations: 0.9605 MB / 3.263 GB, free: 24.59 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0009427/12.69, allocations: 251.3 kB / 3.263 GB, free: 24.44 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/12.69, allocations: 244.8 kB / 3.263 GB, free: 24.23 MB / 490.7 MB Notification: Performance of SimCode: time 1.272e-06/12.69, allocations: 0 / 3.263 GB, free: 24.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5959/13.28, allocations: 35.73 MB / 3.298 GB, free: 82.19 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002897/13.28, allocations: 191.8 kB / 3.298 GB, free: 82 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.366/18.65, allocations: 3.438 kB / 3.298 GB, free: 82 MB / 490.7 MB "" Variables in the reference:time,SourceP1.ports[1].m_flow,SourceP1.ports[1].p,SourceP1.ports[1].h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b.h_outflow,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SinkP1.ports[1].h_outflow,Opening.y,downstreamPressure.y Variables in the result:Opening.startTime,Opening.startValue,Opening.y,SinkP1.T,SinkP1.T_in_internal,SinkP1.X[1],SinkP1.X_in_internal[1],SinkP1.flowDirection,SinkP1.medium.MM,SinkP1.medium.R,SinkP1.medium.T,SinkP1.medium.T_degC,SinkP1.medium.X[1],SinkP1.medium.d,SinkP1.medium.h,SinkP1.medium.p,SinkP1.medium.p_bar,SinkP1.medium.phase,SinkP1.medium.preferredMediumStates,SinkP1.medium.sat.Tsat,SinkP1.medium.sat.psat,SinkP1.medium.standardOrderComponents,SinkP1.medium.state.T,SinkP1.medium.state.d,SinkP1.medium.state.h,SinkP1.medium.state.p,SinkP1.medium.state.phase,SinkP1.medium.u,SinkP1.nPorts,SinkP1.p,SinkP1.p_in,SinkP1.p_in_internal,SinkP1.ports[1].h_outflow,SinkP1.ports[1].m_flow,SinkP1.ports[1].p,SinkP1.use_C_in,SinkP1.use_T_in,SinkP1.use_X_in,SinkP1.use_p_in,SourceP1.T,SourceP1.T_in_internal,SourceP1.X[1],SourceP1.X_in_internal[1],SourceP1.flowDirection,SourceP1.medium.MM,SourceP1.medium.R,SourceP1.medium.T,SourceP1.medium.T_degC,SourceP1.medium.X[1],SourceP1.medium.d,SourceP1.medium.h,SourceP1.medium.p,SourceP1.medium.p_bar,SourceP1.medium.phase,SourceP1.medium.preferredMediumStates,SourceP1.medium.sat.Tsat,SourceP1.medium.sat.psat,SourceP1.medium.standardOrderComponents,SourceP1.medium.state.T,SourceP1.medium.state.d,SourceP1.medium.state.h,SourceP1.medium.state.p,SourceP1.medium.state.phase,SourceP1.medium.u,SourceP1.nPorts,SourceP1.p,SourceP1.p_in_internal,SourceP1.ports[1].h_outflow,SourceP1.ports[1].m_flow,SourceP1.ports[1].p,SourceP1.use_C_in,SourceP1.use_T_in,SourceP1.use_X_in,SourceP1.use_p_in,V1.V_flow,V1.allowFlowReversal,V1.dp,V1.dp_nominal,V1.dp_start,V1.k,V1.m_flow,V1.m_flow_nominal,V1.m_flow_small,V1.m_flow_start,V1.open,V1.opening_min,V1.port_a.h_outflow,V1.port_a.m_flow,V1.port_a.p,V1.port_a_T,V1.port_a_exposesState,V1.port_b.h_outflow,V1.port_b.m_flow,V1.port_b.p,V1.port_b_T,V1.port_b_exposesState,V1.showDesignFlowDirection,V1.show_T,V1.show_V_flow,V1.state_a.T,V1.state_a.d,V1.state_a.h,V1.state_a.p,V1.state_a.phase,V1.state_b.T,V1.state_b.d,V1.state_b.h,V1.state_b.p,V1.state_b.phase,_D_cse1.R,_D_cse1.T,_D_cse1.cp,_D_cse1.cv,_D_cse1.dpT,_D_cse1.h,_D_cse1.p,_D_cse1.pd,_D_cse1.phase,_D_cse1.pt,_D_cse1.region,_D_cse1.rho,_D_cse1.s,_D_cse1.vp,_D_cse1.vt,_D_cse1.x,_D_cse10.R,_D_cse10.T,_D_cse10.cp,_D_cse10.cv,_D_cse10.dpT,_D_cse10.h,_D_cse10.p,_D_cse10.pd,_D_cse10.phase,_D_cse10.pt,_D_cse10.region,_D_cse10.rho,_D_cse10.s,_D_cse10.vp,_D_cse10.vt,_D_cse10.x,_D_cse11.R,_D_cse11.T,_D_cse11.cp,_D_cse11.cv,_D_cse11.d,_D_cse11.dpT,_D_cse11.h,_D_cse11.pd,_D_cse11.pt,_D_cse11.region3boundary,_D_cse11.s,_D_cse11.vp,_D_cse11.vt,_D_cse12.R,_D_cse12.T,_D_cse12.cp,_D_cse12.cv,_D_cse12.d,_D_cse12.dpT,_D_cse12.h,_D_cse12.pd,_D_cse12.pt,_D_cse12.region3boundary,_D_cse12.s,_D_cse12.vp,_D_cse12.vt,_D_cse2.R,_D_cse2.T,_D_cse2.cp,_D_cse2.cv,_D_cse2.dpT,_D_cse2.h,_D_cse2.p,_D_cse2.pd,_D_cse2.phase,_D_cse2.pt,_D_cse2.region,_D_cse2.rho,_D_cse2.s,_D_cse2.vp,_D_cse2.vt,_D_cse2.x,_D_cse3.R,_D_cse3.T,_D_cse3.cp,_D_cse3.cv,_D_cse3.d,_D_cse3.dpT,_D_cse3.h,_D_cse3.pd,_D_cse3.pt,_D_cse3.region3boundary,_D_cse3.s,_D_cse3.vp,_D_cse3.vt,_D_cse4.R,_D_cse4.T,_D_cse4.cp,_D_cse4.cv,_D_cse4.d,_D_cse4.dpT,_D_cse4.h,_D_cse4.pd,_D_cse4.pt,_D_cse4.region3boundary,_D_cse4.s,_D_cse4.vp,_D_cse4.vt,_D_cse5.R,_D_cse5.T,_D_cse5.cp,_D_cse5.cv,_D_cse5.dpT,_D_cse5.h,_D_cse5.p,_D_cse5.pd,_D_cse5.phase,_D_cse5.pt,_D_cse5.region,_D_cse5.rho,_D_cse5.s,_D_cse5.vp,_D_cse5.vt,_D_cse5.x,_D_cse6.R,_D_cse6.T,_D_cse6.cp,_D_cse6.cv,_D_cse6.dpT,_D_cse6.h,_D_cse6.p,_D_cse6.pd,_D_cse6.phase,_D_cse6.pt,_D_cse6.region,_D_cse6.rho,_D_cse6.s,_D_cse6.vp,_D_cse6.vt,_D_cse6.x,_D_cse7.R,_D_cse7.T,_D_cse7.cp,_D_cse7.cv,_D_cse7.dpT,_D_cse7.h,_D_cse7.p,_D_cse7.pd,_D_cse7.phase,_D_cse7.pt,_D_cse7.region,_D_cse7.rho,_D_cse7.s,_D_cse7.vp,_D_cse7.vt,_D_cse7.x,_D_cse8.R,_D_cse8.T,_D_cse8.cp,_D_cse8.cv,_D_cse8.dpT,_D_cse8.h,_D_cse8.p,_D_cse8.pd,_D_cse8.phase,_D_cse8.pt,_D_cse8.region,_D_cse8.rho,_D_cse8.s,_D_cse8.vp,_D_cse8.vt,_D_cse8.x,_D_cse9,downstreamPressure.duration,downstreamPressure.height,downstreamPressure.offset,downstreamPressure.startTime,downstreamPressure.y,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time