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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(ModelicaTest): time 3.406/3.406, allocations: 235.1 MB / 242 MB, free: 9.75 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1894/3.596, allocations: 57.2 MB / 299.2 MB, free: 432 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/3.916, allocations: 54.85 MB / 354.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.381/11.3, allocations: 2.587 GB / 2.933 GB, free: 126.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/11.3, allocations: 83.7 kB / 2.933 GB, free: 126.2 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 1.278/12.58, allocations: 213.2 MB / 3.141 GB, free: 84.07 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/12.58, allocations: 11.81 kB / 3.141 GB, free: 84.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005375/12.58, allocations: 238.7 kB / 3.141 GB, free: 84.03 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/12.58, allocations: 389.7 kB / 3.142 GB, free: 83.74 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/12.58, allocations: 19.44 kB / 3.142 GB, free: 83.73 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.437e-05/12.58, allocations: 17.88 kB / 3.142 GB, free: 83.73 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001019/12.58, allocations: 294.2 kB / 3.142 GB, free: 83.63 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/12.58, allocations: 379.3 kB / 3.142 GB, free: 83.41 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/12.58, allocations: 0 / 3.142 GB, free: 83.41 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.328e-05/12.58, allocations: 3.469 kB / 3.142 GB, free: 83.41 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/12.58, allocations: 7.156 kB / 3.142 GB, free: 83.41 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/12.59, allocations: 3.96 MB / 3.146 GB, free: 80.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006593/12.6, allocations: 210.4 kB / 3.146 GB, free: 80.25 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003316/12.6, allocations: 118.8 kB / 3.146 GB, free: 80.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2586/12.85, allocations: 50.39 MB / 3.196 GB, free: 50.82 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/12.85, allocations: 40.64 kB / 3.196 GB, free: 50.77 MB / 490.7 MB Notification: Performance of pre-optimization done (n=24): time 2.736e-06/12.85, allocations: 0 / 3.196 GB, free: 50.77 MB / 490.7 MB Notification: Performance of matching and sorting (n=24): time 0.002884/12.86, allocations: 494.9 kB / 3.196 GB, free: 50.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.582e-05/12.86, allocations: 106.1 kB / 3.196 GB, free: 50.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/12.86, allocations: 246.4 kB / 3.197 GB, free: 50.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/12.86, allocations: 25.7 kB / 3.197 GB, free: 50.3 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/12.86, allocations: 191.9 kB / 3.197 GB, free: 50.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.597e-05/12.86, allocations: 81.81 kB / 3.197 GB, free: 50.08 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/12.86, allocations: 0 / 3.197 GB, free: 50.08 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.563e-05/12.86, allocations: 341.3 kB / 3.197 GB, free: 49.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003282/12.86, allocations: 107.8 kB / 3.197 GB, free: 49.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004757/12.86, allocations: 222.6 kB / 3.197 GB, free: 49.51 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/12.86, allocations: 194 kB / 3.198 GB, free: 49.44 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/12.86, allocations: 1.062 kB / 3.198 GB, free: 49.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003148/12.86, allocations: 0.5768 MB / 3.198 GB, free: 49.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/12.86, allocations: 8.469 kB / 3.198 GB, free: 49.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/12.86, allocations: 4.156 kB / 3.198 GB, free: 49.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.968e-05/12.86, allocations: 9.594 kB / 3.198 GB, free: 49.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008182/12.87, allocations: 100.7 kB / 3.198 GB, free: 49.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/12.87, allocations: 14.06 kB / 3.198 GB, free: 49.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007297/12.87, allocations: 56.64 kB / 3.198 GB, free: 49.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.057e-05/12.87, allocations: 23.61 kB / 3.198 GB, free: 49.17 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.0001448/12.87, allocations: 115.7 kB / 3.199 GB, free: 49.05 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000918/12.87, allocations: 184.4 kB / 3.199 GB, free: 48.92 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003465/12.87, allocations: 1.681 MB / 3.2 GB, free: 47.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.482e-05/12.87, allocations: 19.78 kB / 3.2 GB, free: 47.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/12.87, allocations: 0 / 3.2 GB, free: 47.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/12.87, allocations: 7.938 kB / 3.2 GB, free: 47.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003858/12.87, allocations: 2.21 MB / 3.203 GB, free: 45.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/12.87, allocations: 0 / 3.203 GB, free: 45.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/12.88, allocations: 71.62 kB / 3.203 GB, free: 45.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/12.88, allocations: 0 / 3.203 GB, free: 45.31 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.874e-05/12.88, allocations: 11.8 kB / 3.203 GB, free: 45.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/12.88, allocations: 4 kB / 3.203 GB, free: 45.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/12.88, allocations: 0 / 3.203 GB, free: 45.3 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003017/12.88, allocations: 1.389 MB / 3.204 GB, free: 44.02 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003249/12.88, allocations: 1.797 MB / 3.206 GB, free: 42.33 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/12.88, allocations: 147.7 kB / 3.206 GB, free: 42.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/12.88, allocations: 8 kB / 3.206 GB, free: 42.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000763/12.88, allocations: 35.55 kB / 3.206 GB, free: 42.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/12.88, allocations: 43.12 kB / 3.206 GB, free: 42.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.966e-05/12.88, allocations: 11.8 kB / 3.206 GB, free: 42.11 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0004178/12.88, allocations: 227.9 kB / 3.206 GB, free: 41.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009462/12.89, allocations: 1.096 MB / 3.207 GB, free: 40.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SinkP1.medium.phase,Opening.y,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0134/12.91, allocations: 1.5 MB / 3.209 GB, free: 39.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001472/12.91, allocations: 0.7071 MB / 3.209 GB, free: 38.91 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/12.91, allocations: 4 kB / 3.209 GB, free: 38.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009574/12.91, allocations: 0.6686 MB / 3.21 GB, free: 38.28 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/12.91, allocations: 155.2 kB / 3.21 GB, free: 38.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06943/12.98, allocations: 14.39 MB / 3.224 GB, free: 27.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007138/12.98, allocations: 0.9719 MB / 3.225 GB, free: 26.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.372e-06/12.98, allocations: 0 / 3.225 GB, free: 26.3 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