Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.086/3.086, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.968e-05/2.994e-05, allocations: 0 / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4387/0.4388, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.44/14.88, allocations: 3.629 GB / 3.975 GB, free: 123.2 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003426/14.88, allocations: 84.17 kB / 3.975 GB, free: 123.2 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.012/16.89, allocations: 302 MB / 4.27 GB, free: 36.34 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.853e-06/16.89, allocations: 0 / 4.27 GB, free: 36.34 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.502e-05/16.89, allocations: 23.38 kB / 4.27 GB, free: 36.32 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.006412/16.89, allocations: 1.586 MB / 4.272 GB, free: 34.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/16.89, allocations: 12.03 kB / 4.272 GB, free: 34.67 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001648/16.89, allocations: 58.53 kB / 4.272 GB, free: 34.61 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005005/16.9, allocations: 55.52 kB / 4.272 GB, free: 34.55 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/16.9, allocations: 405.7 kB / 4.272 GB, free: 34.12 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.079e-05/16.9, allocations: 20.78 kB / 4.272 GB, free: 34.1 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/16.9, allocations: 24 kB / 4.272 GB, free: 34.08 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001649/16.9, allocations: 425.3 kB / 4.273 GB, free: 33.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/16.9, allocations: 428 kB / 4.273 GB, free: 33.22 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.581e-05/16.9, allocations: 0 / 4.273 GB, free: 33.22 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001407/16.9, allocations: 8 kB / 4.273 GB, free: 33.21 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.668e-05/16.9, allocations: 11.98 kB / 4.273 GB, free: 33.2 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007385/16.91, allocations: 2.83 MB / 4.276 GB, free: 30.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001446/16.91, allocations: 321 kB / 4.276 GB, free: 29.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002596/16.91, allocations: 86.66 kB / 4.276 GB, free: 29.61 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003241/16.91, allocations: 104.8 kB / 4.277 GB, free: 29.49 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/16.91, allocations: 38.56 kB / 4.277 GB, free: 29.44 MB / 474.7 MB Notification: Performance of pre-optimization done (n=20): time 4.629e-06/16.91, allocations: 0 / 4.277 GB, free: 29.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=20): time 0.0009847/16.91, allocations: 233 kB / 4.277 GB, free: 29.21 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/16.91, allocations: 102.8 kB / 4.277 GB, free: 29.09 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005051/16.91, allocations: 286.2 kB / 4.277 GB, free: 28.8 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/16.91, allocations: 33.7 kB / 4.277 GB, free: 28.76 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/16.91, allocations: 279.2 kB / 4.277 GB, free: 28.48 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.952e-05/16.91, allocations: 63.02 kB / 4.278 GB, free: 28.42 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.534e-05/16.91, allocations: 4 kB / 4.278 GB, free: 28.41 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/16.91, allocations: 346.8 kB / 4.278 GB, free: 28.07 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/16.91, allocations: 92.84 kB / 4.278 GB, free: 27.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/16.91, allocations: 271.3 kB / 4.278 GB, free: 27.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/16.91, allocations: 227.7 kB / 4.278 GB, free: 27.41 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/16.91, allocations: 0 / 4.278 GB, free: 27.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.002091/16.92, allocations: 0.4935 MB / 4.279 GB, free: 26.91 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.674e-05/16.92, allocations: 63.41 kB / 4.279 GB, free: 26.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/16.92, allocations: 8 kB / 4.279 GB, free: 26.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.327e-05/16.92, allocations: 8 kB / 4.279 GB, free: 26.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009832/16.92, allocations: 107.8 kB / 4.279 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-05/16.92, allocations: 11.94 kB / 4.279 GB, free: 26.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008308/16.92, allocations: 59.42 kB / 4.279 GB, free: 26.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.725e-05/16.92, allocations: 32.05 kB / 4.279 GB, free: 26.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 2 * 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.0001672/16.92, allocations: 120.8 kB / 4.279 GB, free: 26.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/16.92, allocations: 35.58 kB / 4.279 GB, free: 26.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/16.92, allocations: 277.1 kB / 4.28 GB, free: 26.17 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/16.92, allocations: 4 kB / 4.28 GB, free: 26.16 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/16.92, allocations: 0 / 4.28 GB, free: 26.16 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/16.92, allocations: 8 kB / 4.28 GB, free: 26.16 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/16.92, allocations: 0.9978 MB / 4.281 GB, free: 25.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/16.92, allocations: 0 / 4.281 GB, free: 25.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000462/16.92, allocations: 44.36 kB / 4.281 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.468e-05/16.92, allocations: 8 kB / 4.281 GB, free: 25.02 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/16.92, allocations: 7.984 kB / 4.281 GB, free: 25.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/16.92, allocations: 4.078 kB / 4.281 GB, free: 25 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.067e-05/16.92, allocations: 15.88 kB / 4.281 GB, free: 24.99 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009118/16.92, allocations: 0.6929 MB / 4.281 GB, free: 24.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/16.92, allocations: 124.6 kB / 4.281 GB, free: 24.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/16.92, allocations: 7.984 kB / 4.281 GB, free: 24.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007404/16.92, allocations: 23.92 kB / 4.282 GB, free: 23.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/16.92, allocations: 19.94 kB / 4.282 GB, free: 23.96 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.132e-05/16.93, allocations: 15.94 kB / 4.282 GB, free: 23.95 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004082/16.93, allocations: 220.6 kB / 4.282 GB, free: 23.73 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.693e-06/16.93, allocations: 0 / 4.282 GB, free: 23.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002535/16.93, allocations: 443.2 kB / 4.282 GB, free: 23.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.00557/16.93, allocations: 3.479 MB / 4.286 GB, free: 19.86 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/16.93, allocations: 347.4 kB / 4.286 GB, free: 19.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/16.93, allocations: 448 / 4.286 GB, free: 19.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003856/16.94, allocations: 83.86 kB / 4.286 GB, free: 19.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/16.94, allocations: 148.3 kB / 4.286 GB, free: 19.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/16.94, allocations: 0.7906 MB / 4.287 GB, free: 18.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005949/16.94, allocations: 0.8386 MB / 4.288 GB, free: 17.54 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001195/16.94, allocations: 99.17 kB / 4.288 GB, free: 17.44 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004515/16.94, allocations: 123.4 kB / 4.288 GB, free: 17.32 MB / 474.7 MB Notification: Performance of SimCode: time 1.753e-06/16.94, allocations: 0 / 4.288 GB, free: 17.32 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6958/17.64, allocations: 19.95 MB / 4.307 GB, free: 74.11 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003558/17.64, allocations: 201 kB / 4.308 GB, free: 73.87 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.697/22.34, allocations: 0 / 4.308 GB, free: 73.87 MB / 474.7 MB "" Variables in the reference:time,traceSubstance.C,traceSubstance1.C Variables in the result:C.duration,C.height,C.offset,C.startTime,C.y,_D_cse1,_D_cse2,boundary_prescriberho_1.C[1],boundary_prescriberho_1.C_in[1],boundary_prescriberho_1.C_in_internal[1],boundary_prescriberho_1.X[1],boundary_prescriberho_1.X[2],boundary_prescriberho_1.X_in_internal[1],boundary_prescriberho_1.X_in_internal[2],boundary_prescriberho_1.flowDirection,boundary_prescriberho_1.h,boundary_prescriberho_1.h_in_internal,boundary_prescriberho_1.medium.MM,boundary_prescriberho_1.medium.R,boundary_prescriberho_1.medium.T,boundary_prescriberho_1.medium.T_degC,boundary_prescriberho_1.medium.X[1],boundary_prescriberho_1.medium.X[2],boundary_prescriberho_1.medium.X_air,boundary_prescriberho_1.medium.X_liquid,boundary_prescriberho_1.medium.X_sat,boundary_prescriberho_1.medium.X_steam,boundary_prescriberho_1.medium.Xi[1],boundary_prescriberho_1.medium.d,boundary_prescriberho_1.medium.h,boundary_prescriberho_1.medium.p,boundary_prescriberho_1.medium.p_bar,boundary_prescriberho_1.medium.p_steam_sat,boundary_prescriberho_1.medium.phi,boundary_prescriberho_1.medium.preferredMediumStates,boundary_prescriberho_1.medium.standardOrderComponents,boundary_prescriberho_1.medium.state.T,boundary_prescriberho_1.medium.state.X[1],boundary_prescriberho_1.medium.state.X[2],boundary_prescriberho_1.medium.state.p,boundary_prescriberho_1.medium.u,boundary_prescriberho_1.medium.x_sat,boundary_prescriberho_1.medium.x_water,boundary_prescriberho_1.nPorts,boundary_prescriberho_1.p,boundary_prescriberho_1.p_in_internal,boundary_prescriberho_1.ports[1].C_outflow[1],boundary_prescriberho_1.ports[1].Xi_outflow[1],boundary_prescriberho_1.ports[1].h_outflow,boundary_prescriberho_1.ports[1].m_flow,boundary_prescriberho_1.ports[1].p,boundary_prescriberho_1.use_C_in,boundary_prescriberho_1.use_X_in,boundary_prescriberho_1.use_h_in,boundary_prescriberho_1.use_p_in,boundary_prescriberho_2.C[1],boundary_prescriberho_2.C_in[1],boundary_prescriberho_2.C_in_internal[1],boundary_prescriberho_2.X[1],boundary_prescriberho_2.X[2],boundary_prescriberho_2.X_in_internal[1],boundary_prescriberho_2.X_in_internal[2],boundary_prescriberho_2.flowDirection,boundary_prescriberho_2.h,boundary_prescriberho_2.h_in_internal,boundary_prescriberho_2.medium.MM,boundary_prescriberho_2.medium.R,boundary_prescriberho_2.medium.T,boundary_prescriberho_2.medium.T_degC,boundary_prescriberho_2.medium.X[1],boundary_prescriberho_2.medium.X[2],boundary_prescriberho_2.medium.X_air,boundary_prescriberho_2.medium.X_liquid,boundary_prescriberho_2.medium.X_sat,boundary_prescriberho_2.medium.X_steam,boundary_prescriberho_2.medium.Xi[1],boundary_prescriberho_2.medium.d,boundary_prescriberho_2.medium.h,boundary_prescriberho_2.medium.p,boundary_prescriberho_2.medium.p_bar,boundary_prescriberho_2.medium.p_steam_sat,boundary_prescriberho_2.medium.phi,boundary_prescriberho_2.medium.preferredMediumStates,boundary_prescriberho_2.medium.standardOrderComponents,boundary_prescriberho_2.medium.state.T,boundary_prescriberho_2.medium.state.X[1],boundary_prescriberho_2.medium.state.X[2],boundary_prescriberho_2.medium.state.p,boundary_prescriberho_2.medium.u,boundary_prescriberho_2.medium.x_sat,boundary_prescriberho_2.medium.x_water,boundary_prescriberho_2.nPorts,boundary_prescriberho_2.p,boundary_prescriberho_2.p_in_internal,boundary_prescriberho_2.ports[1].C_outflow[1],boundary_prescriberho_2.ports[1].Xi_outflow[1],boundary_prescriberho_2.ports[1].h_outflow,boundary_prescriberho_2.ports[1].m_flow,boundary_prescriberho_2.ports[1].p,boundary_prescriberho_2.use_C_in,boundary_prescriberho_2.use_X_in,boundary_prescriberho_2.use_h_in,boundary_prescriberho_2.use_p_in,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,traceSubstance.C,traceSubstance.CVec[1],traceSubstance.ind,traceSubstance.port.C_outflow[1],traceSubstance.port.Xi_outflow[1],traceSubstance.port.h_outflow,traceSubstance.port.m_flow,traceSubstance.port.p,traceSubstance1.C,traceSubstance1.allowFlowReversal,traceSubstance1.ind,traceSubstance1.m_flow_nominal,traceSubstance1.m_flow_small,traceSubstance1.port_a.C_outflow[1],traceSubstance1.port_a.Xi_outflow[1],traceSubstance1.port_a.h_outflow,traceSubstance1.port_a.m_flow,traceSubstance1.port_a.p,traceSubstance1.port_a_exposesState,traceSubstance1.port_b.C_outflow[1],traceSubstance1.port_b.Xi_outflow[1],traceSubstance1.port_b.h_outflow,traceSubstance1.port_b.m_flow,traceSubstance1.port_b.p,traceSubstance1.port_b_exposesState,traceSubstance1.showDesignFlowDirection