Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_5_0_1_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",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(Buildings): time 4.845/4.845, allocations: 404 MB / 410.9 MB, free: 4.934 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3353/5.181, allocations: 95.01 MB / 0.4941 GB, free: 7.328 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.653/5.834, allocations: 92.68 MB / 0.5846 GB, free: 3.406 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.136/6.969, allocations: 376.8 MB / 0.9526 GB, free: 54.98 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003727/6.97, allocations: 94.08 kB / 0.9526 GB, free: 54.93 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 1.741/8.711, allocations: 284.7 MB / 1.231 GB, free: 159.7 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/8.711, allocations: 8 kB / 1.231 GB, free: 159.7 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002053/8.713, allocations: 194.6 kB / 1.231 GB, free: 159.5 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003276/8.716, allocations: 0.6754 MB / 1.232 GB, free: 158.8 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/8.716, allocations: 20 kB / 1.232 GB, free: 158.7 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003993/8.717, allocations: 44 kB / 1.232 GB, free: 158.7 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002161/8.719, allocations: 438.5 kB / 1.232 GB, free: 158.3 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/8.721, allocations: 0.6732 MB / 1.233 GB, free: 157.5 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/8.721, allocations: 7.938 kB / 1.233 GB, free: 157.5 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/8.721, allocations: 0 / 1.233 GB, free: 157.5 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.216e-05/8.721, allocations: 20 kB / 1.233 GB, free: 157.5 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009808/8.731, allocations: 3.327 MB / 1.236 GB, free: 154 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/8.733, allocations: 393.1 kB / 1.236 GB, free: 153.6 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000951/8.734, allocations: 208.5 kB / 1.237 GB, free: 153.4 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006342/8.735, allocations: 112.7 kB / 1.237 GB, free: 153.3 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/8.736, allocations: 345.2 kB / 1.237 GB, free: 152.9 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=37): time 7.284e-06/8.736, allocations: 0 / 1.237 GB, free: 152.9 MB / 0.7605 GB Notification: Performance of matching and sorting (n=37): time 0.007979/8.744, allocations: 0.7928 MB / 1.238 GB, free: 152.1 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001561/8.744, allocations: 295 kB / 1.238 GB, free: 151.7 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/8.745, allocations: 0.5942 MB / 1.239 GB, free: 151.1 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 0.0002522/8.746, allocations: 29.7 kB / 1.239 GB, free: 151.1 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/8.746, allocations: 355.4 kB / 1.239 GB, free: 150.8 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/8.746, allocations: 118.3 kB / 1.239 GB, free: 150.6 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-05/8.746, allocations: 0 / 1.239 GB, free: 150.6 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 8.913e-05/8.746, allocations: 334 kB / 1.239 GB, free: 150.3 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007639/8.747, allocations: 233.3 kB / 1.24 GB, free: 150.1 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009453/8.748, allocations: 483 kB / 1.24 GB, free: 149.5 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002531/8.751, allocations: 404.2 kB / 1.24 GB, free: 149.1 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/8.751, allocations: 0 / 1.24 GB, free: 149.1 MB / 0.7605 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.004304/8.755, allocations: 0.8622 MB / 1.241 GB, free: 148.2 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004597/8.756, allocations: 1.918 MB / 1.243 GB, free: 146.2 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/8.756, allocations: 4 kB / 1.243 GB, free: 146.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-05/8.756, allocations: 8 kB / 1.243 GB, free: 146.2 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007376/8.763, allocations: 475.4 kB / 1.244 GB, free: 145.7 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004466/8.768, allocations: 2 MB / 1.246 GB, free: 143.6 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002837/8.77, allocations: 159.3 kB / 1.246 GB, free: 143.5 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000226/8.771, allocations: 39.97 kB / 1.246 GB, free: 143.4 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/8.771, allocations: 4.938 kB / 1.246 GB, free: 143.4 MB / 0.7605 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003481/8.774, allocations: 0.7011 MB / 1.246 GB, free: 142.7 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/8.774, allocations: 4 kB / 1.246 GB, free: 142.7 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/8.774, allocations: 12 kB / 1.246 GB, free: 142.7 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/8.776, allocations: 184.2 kB / 1.247 GB, free: 142.5 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/8.776, allocations: 8 kB / 1.247 GB, free: 142.5 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002291/8.779, allocations: 131.5 kB / 1.247 GB, free: 142.4 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/8.779, allocations: 43.98 kB / 1.247 GB, free: 142.4 MB / 0.7605 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003927/8.779, allocations: 162.4 kB / 1.247 GB, free: 142.2 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003008/8.78, allocations: 82.97 kB / 1.247 GB, free: 142.1 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004899/8.784, allocations: 0.6494 MB / 1.248 GB, free: 141.4 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/8.785, allocations: 4 kB / 1.248 GB, free: 141.4 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/8.785, allocations: 4 kB / 1.248 GB, free: 141.4 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/8.785, allocations: 0 / 1.248 GB, free: 141.4 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008676/8.793, allocations: 1.732 MB / 1.249 GB, free: 139.6 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-05/8.793, allocations: 4 kB / 1.249 GB, free: 139.6 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007901/8.801, allocations: 439.7 kB / 1.25 GB, free: 139.2 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.861e-05/8.801, allocations: 0 / 1.25 GB, free: 139.2 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/8.802, allocations: 11.98 kB / 1.25 GB, free: 139.2 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/8.818, allocations: 4.21 MB / 1.254 GB, free: 134.7 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.388e-05/8.818, allocations: 7.969 kB / 1.254 GB, free: 134.6 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007096/8.825, allocations: 1.102 MB / 1.255 GB, free: 133.5 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006559/8.832, allocations: 1.778 MB / 1.257 GB, free: 131.7 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009092/8.833, allocations: 236.6 kB / 1.257 GB, free: 131.4 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/8.833, allocations: 12.05 kB / 1.257 GB, free: 131.4 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002727/8.836, allocations: 119.7 kB / 1.257 GB, free: 131.3 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/8.836, allocations: 43.92 kB / 1.257 GB, free: 131.2 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/8.836, allocations: 23.98 kB / 1.257 GB, free: 131.2 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.0009846/8.837, allocations: 455.1 kB / 1.258 GB, free: 130.8 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.005393/8.843, allocations: 0.546 MB / 1.258 GB, free: 130.2 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/8.844, allocations: 405.6 kB / 1.259 GB, free: 129.8 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.01174/8.856, allocations: 1.308 MB / 1.26 GB, free: 128.5 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/8.856, allocations: 0 / 1.26 GB, free: 128.5 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.008396/8.864, allocations: 0.7174 MB / 1.261 GB, free: 127.8 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003994/8.868, allocations: 308 kB / 1.261 GB, free: 127.5 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005137/8.874, allocations: 1.143 MB / 1.262 GB, free: 126.3 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/8.875, allocations: 1.107 MB / 1.263 GB, free: 125.2 MB / 0.7605 GB Notification: Performance of SimCode: time 1.233e-06/8.875, allocations: 0 / 1.263 GB, free: 125.2 MB / 0.7605 GB