Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ControlledTanks,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_ControlledTanks",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(Modelica): time 1.724/1.724, allocations: 194.9 MB / 202.6 MB, free: 6.898 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2462/1.97, allocations: 46.81 MB / 249.4 MB, free: 5.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/2.061, allocations: 44.51 MB / 293.9 MB, free: 10.9 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.294/2.355, allocations: 74.72 MB / 368.6 MB, free: 7.062 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/2.356, allocations: 66.98 kB / 368.7 MB, free: 7.062 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.07449/2.43, allocations: 20.7 MB / 389.4 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/2.43, allocations: 11.66 kB / 389.4 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003451/2.431, allocations: 123.9 kB / 389.5 MB, free: 472 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/2.432, allocations: 0.6254 MB / 390.1 MB, free: 108 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/2.432, allocations: 140.6 kB / 390.3 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002465/2.432, allocations: 83.75 kB / 390.4 MB, free: 4 kB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002585/2.435, allocations: 0.8346 MB / 391.2 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002952/2.438, allocations: 1.171 MB / 392.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/2.438, allocations: 7.812 kB / 392.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/2.438, allocations: 11.28 kB / 392.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-05/2.438, allocations: 48.83 kB / 392.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008374/2.447, allocations: 4.875 MB / 397.3 MB, free: 12.19 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/2.449, allocations: 0.8786 MB / 398.2 MB, free: 11.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009491/2.45, allocations: 417.9 kB / 398.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00017/2.45, allocations: 95.88 kB / 398.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/2.451, allocations: 0.6221 MB / 399.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=110): time 4.108e-06/2.451, allocations: 7.875 kB / 399.3 MB, free: 11.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.002208/2.453, allocations: 0.7082 MB / 400 MB, free: 11.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002816/2.454, allocations: 404.8 kB / 400.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000928/2.455, allocations: 460.6 kB / 400.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003172/2.455, allocations: 71 kB / 400.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004137/2.455, allocations: 384.2 kB / 401.3 MB, free: 10.28 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/2.456, allocations: 251.9 kB / 401.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.112e-05/2.456, allocations: 2.469 kB / 401.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002984/2.456, allocations: 392.6 kB / 401.9 MB, free: 9.793 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001109/2.457, allocations: 357.7 kB / 402.3 MB, free: 9.777 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/2.459, allocations: 0.6634 MB / 403 MB, free: 9.391 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/2.46, allocations: 384.7 kB / 403.3 MB, free: 9.312 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/2.46, allocations: 3.344 kB / 403.3 MB, free: 9.312 MB / 314.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.003315/2.463, allocations: 1.084 MB / 404.4 MB, free: 9.074 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/2.463, allocations: 4.812 kB / 404.4 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.827e-05/2.463, allocations: 13.61 kB / 404.4 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.599e-05/2.463, allocations: 17.38 kB / 404.5 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/2.464, allocations: 142.6 kB / 404.6 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-05/2.465, allocations: 25.02 kB / 404.6 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009582/2.466, allocations: 69.61 kB / 404.7 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/2.466, allocations: 64.48 kB / 404.8 MB, free: 8.98 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.0006868/2.466, allocations: 427.1 kB / 405.2 MB, free: 8.598 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000236/2.467, allocations: 75.03 kB / 405.2 MB, free: 8.562 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002621/2.469, allocations: 0.8154 MB / 406.1 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/2.469, allocations: 14.08 kB / 406.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/2.469, allocations: 3.906 kB / 406.1 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/2.469, allocations: 3.984 kB / 406.1 MB, free: 8.371 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005648/2.475, allocations: 1.961 MB / 408 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/2.475, allocations: 3.938 kB / 408 MB, free: 7.684 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006475/2.476, allocations: 69.52 kB / 408.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.564e-05/2.476, allocations: 2.562 kB / 408.1 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/2.476, allocations: 33.58 kB / 408.1 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-05/2.476, allocations: 6.891 kB / 408.2 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/2.476, allocations: 0 / 408.2 MB, free: 7.645 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0039/2.48, allocations: 1.365 MB / 409.5 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005372/2.485, allocations: 2.23 MB / 411.7 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006448/2.486, allocations: 251.6 kB / 412 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002706/2.486, allocations: 28.95 kB / 412 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007006/2.487, allocations: 37.12 kB / 412.1 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004991/2.488, allocations: 138.3 kB / 412.2 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001481/2.488, allocations: 45.03 kB / 412.2 MB, free: 5.305 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.00048/2.488, allocations: 253.1 kB / 412.5 MB, free: 5.145 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002412/2.491, allocations: 232.4 kB / 412.7 MB, free: 5.117 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.0007648/2.491, allocations: 268.1 kB / 413 MB, free: 4.949 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003051/2.494, allocations: 1.201 MB / 414.2 MB, free: 4.281 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/2.494, allocations: 5 kB / 414.2 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/2.496, allocations: 0.6815 MB / 414.9 MB, free: 3.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007541/2.497, allocations: 74.83 kB / 414.9 MB, free: 3.812 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004302/2.501, allocations: 1.262 MB / 416.2 MB, free: 2.574 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001442/2.503, allocations: 1.141 MB / 417.3 MB, free: 1.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/2.503, allocations: 0 / 417.3 MB, free: 1.41 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.ControlledTanks_res.mat does not exist to compare? outputFormat=mat