Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ControlledTanks,fileNamePrefix="Modelica_3_2_2_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.825/1.825, allocations: 194.9 MB / 202.5 MB, free: 6.93 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2633/2.089, allocations: 46.82 MB / 249.3 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/2.193, allocations: 44.5 MB / 293.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3525/2.546, allocations: 74.71 MB / 368.5 MB, free: 6.879 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/2.546, allocations: 65.42 kB / 368.6 MB, free: 6.879 MB / 298.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.09716/2.643, allocations: 20.7 MB / 389.3 MB, free: 368 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/2.643, allocations: 7.594 kB / 389.3 MB, free: 368 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006258/2.644, allocations: 127.2 kB / 389.4 MB, free: 308 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/2.646, allocations: 0.6198 MB / 390.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/2.646, allocations: 141.1 kB / 390.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003485/2.646, allocations: 85.19 kB / 390.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003053/2.649, allocations: 0.8409 MB / 391.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003552/2.653, allocations: 1.173 MB / 392.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/2.653, allocations: 3.938 kB / 392.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/2.653, allocations: 11.41 kB / 392.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.597e-05/2.653, allocations: 40.84 kB / 392.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01069/2.664, allocations: 4.891 MB / 397.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/2.666, allocations: 0.8734 MB / 398.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/2.667, allocations: 421.7 kB / 398.5 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002207/2.668, allocations: 89.42 kB / 398.6 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001489/2.669, allocations: 0.6225 MB / 399.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 6.783e-06/2.669, allocations: 7.938 kB / 399.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.002364/2.672, allocations: 0.7051 MB / 400 MB, free: 11.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002692/2.672, allocations: 408.2 kB / 400.4 MB, free: 10.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009625/2.673, allocations: 452.9 kB / 400.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004022/2.673, allocations: 74.69 kB / 400.9 MB, free: 10.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004574/2.674, allocations: 388 kB / 401.2 MB, free: 10.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000415/2.674, allocations: 246.7 kB / 401.5 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.897e-05/2.674, allocations: 2.625 kB / 401.5 MB, free: 9.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002491/2.675, allocations: 394.4 kB / 401.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/2.676, allocations: 366.4 kB / 402.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/2.677, allocations: 0.6617 MB / 402.9 MB, free: 9.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/2.68, allocations: 389.4 kB / 403.3 MB, free: 9.145 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-05/2.68, allocations: 2.312 kB / 403.3 MB, free: 9.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00551/2.686, allocations: 1.074 MB / 404.4 MB, free: 8.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/2.686, allocations: 5.969 kB / 404.4 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.5e-05/2.686, allocations: 8.594 kB / 404.4 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.983e-05/2.686, allocations: 21.88 kB / 404.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/2.687, allocations: 150.2 kB / 404.5 MB, free: 8.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.963e-05/2.687, allocations: 20.44 kB / 404.6 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/2.689, allocations: 68.22 kB / 404.6 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004438/2.69, allocations: 64.23 kB / 404.7 MB, free: 8.816 MB / 314.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.001049/2.691, allocations: 433.8 kB / 405.1 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/2.691, allocations: 77.59 kB / 405.2 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003851/2.695, allocations: 0.8066 MB / 406 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/2.695, allocations: 10.06 kB / 406 MB, free: 8.219 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/2.695, allocations: 7.906 kB / 406 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.669e-05/2.695, allocations: 7.969 kB / 406 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007028/2.702, allocations: 1.971 MB / 408 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/2.702, allocations: 3.938 kB / 408 MB, free: 7.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008671/2.703, allocations: 61.77 kB / 408 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.038e-05/2.703, allocations: 4.406 kB / 408.1 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/2.703, allocations: 30.41 kB / 408.1 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.21e-05/2.703, allocations: 2.969 kB / 408.1 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/2.703, allocations: 0 / 408.1 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004035/2.707, allocations: 1.37 MB / 409.5 MB, free: 7.012 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005735/2.713, allocations: 2.225 MB / 411.7 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007811/2.714, allocations: 251.2 kB / 411.9 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002866/2.714, allocations: 30.66 kB / 412 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000693/2.715, allocations: 36.84 kB / 412 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004943/2.716, allocations: 137.5 kB / 412.1 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001555/2.716, allocations: 44.59 kB / 412.2 MB, free: 5.328 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0005431/2.716, allocations: 249.2 kB / 412.4 MB, free: 5.172 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.003155/2.72, allocations: 229.5 kB / 412.6 MB, free: 5.145 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.001049/2.721, allocations: 266.4 kB / 412.9 MB, free: 4.977 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004521/2.725, allocations: 1.204 MB / 414.1 MB, free: 4.305 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/2.725, allocations: 2.438 kB / 414.1 MB, free: 4.305 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/2.727, allocations: 0.6807 MB / 414.8 MB, free: 3.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007588/2.728, allocations: 83.8 kB / 414.9 MB, free: 3.832 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004877/2.733, allocations: 1.263 MB / 416.1 MB, free: 2.547 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/2.734, allocations: 1.137 MB / 417.3 MB, free: 1.387 MB / 314.7 MB Notification: Performance of SimCode: time 1.813e-06/2.734, allocations: 0 / 417.3 MB, free: 1.387 MB / 314.7 MB