Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ControlledTanks,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_ControlledTanks",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(Modelica): time 1.711/1.711, allocations: 171.2 MB / 178.1 MB, free: 8.289 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2421/1.953, allocations: 41.09 MB / 219.2 MB, free: 11.21 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/2.052, allocations: 38.76 MB / 258 MB, free: 4.379 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3021/2.355, allocations: 69.72 MB / 327.7 MB, free: 2.305 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/2.355, allocations: 66.03 kB / 327.8 MB, free: 2.273 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.08418/2.439, allocations: 20.7 MB / 348.5 MB, free: 1.418 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/2.439, allocations: 12 kB / 348.5 MB, free: 1.406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005271/2.44, allocations: 130.5 kB / 348.6 MB, free: 1.277 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/2.441, allocations: 0.632 MB / 349.3 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000222/2.441, allocations: 140.9 kB / 349.4 MB, free: 0.625 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002731/2.442, allocations: 82.5 kB / 349.5 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002836/2.445, allocations: 0.8409 MB / 350.3 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003279/2.448, allocations: 1.173 MB / 351.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.02e-05/2.448, allocations: 4 kB / 351.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/2.448, allocations: 4 kB / 351.5 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.726e-05/2.448, allocations: 45.98 kB / 351.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008967/2.457, allocations: 4.896 MB / 356.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/2.459, allocations: 0.8724 MB / 357.3 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/2.461, allocations: 407.8 kB / 357.7 MB, free: 9.293 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001963/2.461, allocations: 93.89 kB / 357.8 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001538/2.462, allocations: 0.621 MB / 358.4 MB, free: 8.512 MB / 298.7 MB Notification: Performance of pre-optimization done (n=110): time 5.069e-06/2.462, allocations: 4 kB / 358.4 MB, free: 8.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=110): time 0.002577/2.465, allocations: 0.7109 MB / 359.1 MB, free: 7.793 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002879/2.465, allocations: 400.8 kB / 359.5 MB, free: 7.316 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001068/2.466, allocations: 452.1 kB / 360 MB, free: 6.867 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004004/2.467, allocations: 73.69 kB / 360 MB, free: 6.789 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/2.468, allocations: 384.3 kB / 360.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000543/2.468, allocations: 256.8 kB / 360.7 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-05/2.468, allocations: 3.938 kB / 360.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002711/2.469, allocations: 390.8 kB / 361.1 MB, free: 5.758 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/2.47, allocations: 360 kB / 361.4 MB, free: 5.406 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/2.471, allocations: 0.6605 MB / 362.1 MB, free: 4.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001326/2.473, allocations: 386.1 kB / 362.4 MB, free: 4.238 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/2.473, allocations: 4 kB / 362.4 MB, free: 4.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00338/2.476, allocations: 1.087 MB / 363.5 MB, free: 3.137 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/2.476, allocations: 4 kB / 363.5 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.221e-05/2.476, allocations: 20.14 kB / 363.6 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.822e-05/2.476, allocations: 19.91 kB / 363.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009813/2.477, allocations: 143.6 kB / 363.7 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.134e-05/2.477, allocations: 23.92 kB / 363.7 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009031/2.478, allocations: 55.52 kB / 363.8 MB, free: 2.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/2.478, allocations: 71.98 kB / 363.9 MB, free: 2.805 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 149 ($PRE.tankController.makeProduct.T1.enableFire,$PRE.tankController.makeProduct.T3.enableFire,$PRE.tankController.makeProduct.T2.enableFire,$PRE.tankController.makeProduct.T4.enableFire,$PRE.tankController.T1.enableFire,$PRE.tankController.T2.enableFire,$PRE.tankController.T3.enableFire,$PRE.tankController.T4.enableFire,$PRE.tankController.T5.enableFire,$PRE.tankController.T6.enableFire,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$PRE.tankController.s1.localActive,tankController.s1.localActive,tankController.s1.inPort[2].occupied,$PRE.tankController.s1.newActive,tankController.s1.newActive,$PRE.tankController.s1.oldActive,tankController.s1.oldActive,tankController.s1.active,tankController.makeProduct.stateGraphRoot.suspend,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,$PRE.tankController.makeProduct.newActive,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,$PRE.tankController.makeProduct.fillTank1.localActive,tankController.makeProduct.fillTank1.localActive,$PRE.tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.newActive,$PRE.tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.condition,$PRE.tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank2.localActive,$PRE.tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.newActive,$PRE.tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.condition,$PRE.tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.emptyTank2.localActive,$PRE.tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.newActive,$PRE.tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.active,$PRE.tankController.makeProduct.wait1.localActive,tankController.makeProduct.wait1.localActive,$PRE.tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.newActive,$PRE.tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.T2.enableFire,tankController.makeProduct.T2.fire,$PRE.tankController.makeProduct.T2.t_start,tankController.makeProduct.T2.t_start,$PRE.tankController.makeProduct.wait2.localActive,tankController.makeProduct.wait2.localActive,$PRE.tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.newActive,$PRE.tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T4.enableFire,tankController.makeProduct.T4.fire,$PRE.tankController.makeProduct.T4.t_start,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.enableFire,tankController.T2.condition,tankController.T3.enableFire,$PRE.tankController.s2.localActive,tankController.s2.localActive,tankController.s2.outPort[2].available,$PRE.tankController.s2.newActive,tankController.s2.newActive,$PRE.tankController.s2.oldActive,tankController.s2.oldActive,tankController.s2.active,tankController.T4.enableFire,tankController.T5.enableFire,$PRE.tankController.emptyTanks.localActive,tankController.emptyTanks.localActive,$PRE.tankController.emptyTanks.newActive,tankController.emptyTanks.newActive,$PRE.tankController.emptyTanks.oldActive,tankController.emptyTanks.oldActive,tankController.emptyTanks.active,tankController.T6.enableFire,tankController.T6.condition,tankController.valve2,tankController.valve3,$PRE.start.reset[1],start.reset[1],$PRE.start.reset[2],start.reset[2],$PRE.start.on,start.on,$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,$PRE.stop.reset[1],stop.reset[1],$PRE.stop.reset[2],stop.reset[2],$PRE.stop.on,stop.on,$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,$PRE.shut.reset[1],shut.reset[1],$PRE.shut.reset[2],shut.reset[2],$PRE.shut.on,shut.on,$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,tankController.makeProduct.T4.condition,tankController.makeProduct.T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 9 * 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.0006702/2.479, allocations: 425.4 kB / 364.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002368/2.479, allocations: 75.16 kB / 364.4 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002714/2.482, allocations: 0.8157 MB / 365.2 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/2.482, allocations: 8 kB / 365.2 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/2.482, allocations: 0 / 365.2 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/2.482, allocations: 7.984 kB / 365.2 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005714/2.488, allocations: 1.975 MB / 367.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/2.488, allocations: 0 / 367.2 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000602/2.488, allocations: 67.77 kB / 367.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-05/2.489, allocations: 4 kB / 367.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/2.489, allocations: 31.97 kB / 367.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.346e-05/2.489, allocations: 4 kB / 367.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/2.489, allocations: 0 / 367.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003856/2.493, allocations: 1.371 MB / 368.6 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005141/2.498, allocations: 2.219 MB / 370.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006431/2.498, allocations: 256 kB / 371.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/2.499, allocations: 31.98 kB / 371.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006675/2.499, allocations: 40 kB / 371.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004837/2.5, allocations: 132.8 kB / 371.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001478/2.5, allocations: 51.95 kB / 371.4 MB, free: 11.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0004607/2.501, allocations: 251.2 kB / 371.6 MB, free: 10.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00236/2.503, allocations: 235.7 kB / 371.8 MB, free: 10.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank1.level,tank2.level) * Number of discrete variables: 95 (tankController.makeProduct.stateGraphRoot.suspend,tankController.emptyTanks.localActive,tankController.s2.localActive,tankController.makeProduct.T4.enableFire,tankController.makeProduct.wait2.localActive,tankController.makeProduct.T2.enableFire,tankController.makeProduct.wait1.localActive,tankController.makeProduct.emptyTank2.localActive,tankController.makeProduct.fillTank2.localActive,tankController.makeProduct.fillTank1.localActive,tankController.s1.localActive,$cse1,$cse2,$cse4,$cse6,$cse7,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,tankController.s1.inPort[2].occupied,tankController.s1.newActive,tankController.s1.oldActive,tankController.s1.active,tankController.makeProduct.stateGraphRoot.resume,tankController.makeProduct.active,tankController.makeProduct.newActive,tankController.makeProduct.activeSteps,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank1.oldActive,tankController.makeProduct.fillTank1.active,tankController.makeProduct.T1.enableFire,tankController.makeProduct.T1.condition,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.fillTank2.oldActive,tankController.makeProduct.fillTank2.active,tankController.makeProduct.T3.enableFire,tankController.makeProduct.T3.condition,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.emptyTank2.oldActive,tankController.makeProduct.emptyTank2.active,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait1.oldActive,tankController.makeProduct.wait1.active,tankController.makeProduct.T2.fire,tankController.makeProduct.T2.t_start,tankController.makeProduct.wait2.newActive,tankController.makeProduct.wait2.oldActive,tankController.makeProduct.wait2.active,tankController.makeProduct.T4.fire,tankController.makeProduct.T4.t_start,tankController.T1.enableFire,tankController.T2.enableFire,tankController.T2.condition,tankController.T3.enableFire,tankController.s2.outPort[2].available,tankController.s2.newActive,tankController.s2.oldActive,tankController.s2.active,tankController.T4.enableFire,tankController.T5.enableFire,tankController.emptyTanks.newActive,tankController.emptyTanks.oldActive,tankController.emptyTanks.active,tankController.T6.enableFire,tankController.T6.condition,tankController.valve2,tankController.valve3,start.reset[1],start.reset[2],start.on,start.table.y,start.table.nextTime,start.table.index,stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.nextTime,shut.table.index,stateGraphRoot.activeSteps) * Number of discrete states: 36 (tankController.s1.newActive,tankController.makeProduct.fillTank1.newActive,tankController.makeProduct.fillTank2.newActive,tankController.makeProduct.emptyTank2.newActive,tankController.makeProduct.wait1.newActive,tankController.makeProduct.wait2.newActive,tankController.makeProduct.newActive,tankController.s2.newActive,tankController.emptyTanks.newActive,start.table.y,start.table.nextTime,start.table.index,$whenCondition12,$whenCondition11,$whenCondition10,start.on,start.reset[1],start.reset[2],stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition9,$whenCondition8,$whenCondition7,stop.on,stop.reset[1],stop.reset[2],shut.table.y,shut.table.nextTime,shut.table.index,$whenCondition6,$whenCondition5,$whenCondition4,shut.on,shut.reset[1],shut.reset[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 10 * 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.0007428/2.504, allocations: 261 kB / 372.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00301/2.507, allocations: 1.204 MB / 373.3 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/2.507, allocations: 2.5 kB / 373.3 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/2.508, allocations: 0.6815 MB / 374 MB, free: 8.441 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007128/2.509, allocations: 69.56 kB / 374 MB, free: 8.371 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/2.513, allocations: 1.261 MB / 375.3 MB, free: 7.078 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/2.515, allocations: 1.137 MB / 376.4 MB, free: 5.918 MB / 314.7 MB Notification: Performance of SimCode: time 1.162e-06/2.515, allocations: 0 / 376.4 MB, free: 5.918 MB / 314.7 MB