Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) [: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 2.233/2.233, allocations: 235 MB / 241.9 MB, free: 9.781 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1741/2.407, allocations: 57.2 MB / 299.1 MB, free: 460 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/2.671, allocations: 54.84 MB / 354 MB, free: 13.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.553/9.225, allocations: 2.587 GB / 2.933 GB, free: 106.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003643/9.225, allocations: 84.17 kB / 2.933 GB, free: 106.3 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 1.096/10.32, allocations: 213.2 MB / 3.141 GB, free: 68.97 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/10.32, allocations: 7.938 kB / 3.141 GB, free: 68.97 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002983/10.32, allocations: 244.5 kB / 3.141 GB, free: 68.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/10.33, allocations: 393.7 kB / 3.142 GB, free: 68.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.49e-05/10.33, allocations: 15.88 kB / 3.142 GB, free: 68.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.769e-05/10.33, allocations: 15.84 kB / 3.142 GB, free: 68.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008975/10.33, allocations: 294.2 kB / 3.142 GB, free: 68.54 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008328/10.33, allocations: 385.9 kB / 3.142 GB, free: 68.31 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/10.33, allocations: 0 / 3.142 GB, free: 68.31 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.187e-05/10.33, allocations: 0 / 3.142 GB, free: 68.31 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/10.33, allocations: 7.844 kB / 3.142 GB, free: 68.31 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009406/10.34, allocations: 3.946 MB / 3.146 GB, free: 65.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005021/10.34, allocations: 214.2 kB / 3.146 GB, free: 65.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/10.34, allocations: 123.1 kB / 3.146 GB, free: 65.1 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2057/10.54, allocations: 50.4 MB / 3.196 GB, free: 22.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/10.54, allocations: 38.42 kB / 3.196 GB, free: 22.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 3.727e-06/10.54, allocations: 0 / 3.196 GB, free: 22.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.002604/10.55, allocations: 493.4 kB / 3.196 GB, free: 22.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/10.55, allocations: 110.8 kB / 3.196 GB, free: 22.37 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/10.55, allocations: 246.8 kB / 3.196 GB, free: 22.14 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.257e-05/10.55, allocations: 25.7 kB / 3.196 GB, free: 22.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/10.55, allocations: 190.9 kB / 3.197 GB, free: 21.94 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.161e-05/10.55, allocations: 86.56 kB / 3.197 GB, free: 21.86 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-05/10.55, allocations: 0 / 3.197 GB, free: 21.86 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/10.55, allocations: 338.7 kB / 3.197 GB, free: 21.53 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/10.55, allocations: 100.2 kB / 3.197 GB, free: 21.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003394/10.55, allocations: 224.5 kB / 3.197 GB, free: 21.18 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/10.55, allocations: 194.2 kB / 3.198 GB, free: 21.02 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/10.55, allocations: 4 kB / 3.198 GB, free: 21.02 MB / 474.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002576/10.55, allocations: 0.5737 MB / 3.198 GB, free: 20.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/10.55, allocations: 4 kB / 3.198 GB, free: 20.54 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/10.55, allocations: 4 kB / 3.198 GB, free: 20.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/10.55, allocations: 7.906 kB / 3.198 GB, free: 20.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/10.55, allocations: 107.8 kB / 3.198 GB, free: 20.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.129e-05/10.55, allocations: 4 kB / 3.198 GB, free: 20.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/10.55, allocations: 59.19 kB / 3.198 GB, free: 20.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.949e-05/10.55, allocations: 23.98 kB / 3.198 GB, free: 20.37 MB / 474.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.0001441/10.55, allocations: 120.7 kB / 3.198 GB, free: 20.24 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008106/10.56, allocations: 192.9 kB / 3.199 GB, free: 20.11 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003195/10.56, allocations: 1.68 MB / 3.2 GB, free: 18.58 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.292e-05/10.56, allocations: 25.19 kB / 3.2 GB, free: 18.56 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/10.56, allocations: 0.5156 kB / 3.2 GB, free: 18.56 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/10.56, allocations: 5.828 kB / 3.2 GB, free: 18.56 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/10.56, allocations: 2.205 MB / 3.202 GB, free: 16.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/10.56, allocations: 0 / 3.202 GB, free: 16.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005671/10.56, allocations: 71.95 kB / 3.203 GB, free: 16.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.299e-05/10.56, allocations: 4 kB / 3.203 GB, free: 16.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/10.56, allocations: 10.25 kB / 3.203 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/10.56, allocations: 0 / 3.203 GB, free: 16.49 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/10.56, allocations: 4 kB / 3.203 GB, free: 16.48 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002834/10.57, allocations: 1.388 MB / 3.204 GB, free: 15.21 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002928/10.57, allocations: 1.792 MB / 3.206 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002152/10.57, allocations: 155.5 kB / 3.206 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/10.57, allocations: 0 / 3.206 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006206/10.57, allocations: 36.67 kB / 3.206 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/10.57, allocations: 38.16 kB / 3.206 GB, free: 13.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.976e-05/10.57, allocations: 10.39 kB / 3.206 GB, free: 13.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0003761/10.57, allocations: 227.1 kB / 3.206 GB, free: 13.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006589/10.58, allocations: 1.102 MB / 3.207 GB, free: 12.01 MB / 474.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.01106/10.59, allocations: 1.502 MB / 3.209 GB, free: 10.72 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/10.59, allocations: 0.6986 MB / 3.209 GB, free: 10.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.302e-05/10.59, allocations: 7.938 kB / 3.209 GB, free: 10.06 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000924/10.59, allocations: 0.6749 MB / 3.21 GB, free: 9.434 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/10.59, allocations: 155.5 kB / 3.21 GB, free: 9.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06658/10.66, allocations: 14.39 MB / 3.224 GB, free: 11.16 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/10.66, allocations: 0.9742 MB / 3.225 GB, free: 10.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/10.66, allocations: 448 / 3.225 GB, free: 10.16 MB / 490.7 MB