Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.ShowCompositeStep,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_ShowCompositeStep",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.751/1.751, allocations: 171.2 MB / 178.1 MB, free: 8.32 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1964/1.948, allocations: 41.09 MB / 219.2 MB, free: 11.2 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/2.064, allocations: 38.77 MB / 258 MB, free: 4.363 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3313/2.395, allocations: 66.67 MB / 324.7 MB, free: 5.383 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/2.395, allocations: 68.94 kB / 324.7 MB, free: 5.352 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.06324/2.459, allocations: 13.79 MB / 338.5 MB, free: 9.805 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/2.459, allocations: 16 kB / 338.6 MB, free: 9.789 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003925/2.459, allocations: 98.95 kB / 338.6 MB, free: 9.691 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001242/2.46, allocations: 491.5 kB / 339.1 MB, free: 9.277 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/2.46, allocations: 50.45 kB / 339.2 MB, free: 9.234 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/2.461, allocations: 68 kB / 339.2 MB, free: 9.168 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002576/2.463, allocations: 0.7592 MB / 340 MB, free: 8.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003014/2.466, allocations: 0.891 MB / 340.9 MB, free: 8.027 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.651e-05/2.466, allocations: 4 kB / 340.9 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/2.467, allocations: 0 / 340.9 MB, free: 8.023 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.874e-05/2.467, allocations: 27.98 kB / 340.9 MB, free: 7.996 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007621/2.474, allocations: 2.693 MB / 343.6 MB, free: 5.871 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001758/2.476, allocations: 0.6077 MB / 344.2 MB, free: 5.449 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009676/2.477, allocations: 338.8 kB / 344.6 MB, free: 5.246 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/2.477, allocations: 20.45 kB / 344.6 MB, free: 5.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001286/2.478, allocations: 383.4 kB / 345 MB, free: 4.957 MB / 282.7 MB Notification: Performance of pre-optimization done (n=104): time 5.17e-06/2.479, allocations: 0 / 345 MB, free: 4.957 MB / 282.7 MB Notification: Performance of matching and sorting (n=104): time 0.002417/2.481, allocations: 0.5732 MB / 345.5 MB, free: 4.516 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/2.481, allocations: 78.27 kB / 345.6 MB, free: 4.43 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006444/2.482, allocations: 301.1 kB / 345.9 MB, free: 4.195 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002473/2.482, allocations: 60.62 kB / 346 MB, free: 4.145 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/2.482, allocations: 297.6 kB / 346.2 MB, free: 3.879 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/2.483, allocations: 236.5 kB / 346.5 MB, free: 3.684 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.909e-05/2.483, allocations: 0 / 346.5 MB, free: 3.684 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002915/2.483, allocations: 371.5 kB / 346.8 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/2.484, allocations: 280.3 kB / 347.1 MB, free: 3.172 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/2.486, allocations: 0.4948 MB / 347.6 MB, free: 2.734 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/2.487, allocations: 287 kB / 347.9 MB, free: 2.547 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/2.487, allocations: 7.938 kB / 347.9 MB, free: 2.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003372/2.491, allocations: 0.8402 MB / 348.7 MB, free: 1.887 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.176e-05/2.491, allocations: 4 kB / 348.7 MB, free: 1.883 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.063e-05/2.491, allocations: 8 kB / 348.7 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.23e-05/2.491, allocations: 12.72 kB / 348.8 MB, free: 1.863 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/2.492, allocations: 119.2 kB / 348.9 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.002e-05/2.492, allocations: 19.94 kB / 348.9 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/2.493, allocations: 55.56 kB / 349 MB, free: 1.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/2.494, allocations: 55.17 kB / 349 MB, free: 1.637 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 133 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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.0004834/2.494, allocations: 202.5 kB / 349.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/2.494, allocations: 55.33 kB / 349.3 MB, free: 1.387 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/2.497, allocations: 0.6436 MB / 349.9 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/2.497, allocations: 12 kB / 349.9 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/2.497, allocations: 4 kB / 349.9 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-05/2.497, allocations: 3.984 kB / 349.9 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008123/2.505, allocations: 1.581 MB / 351.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/2.506, allocations: 0 / 351.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008037/2.506, allocations: 71.83 kB / 351.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-05/2.506, allocations: 7.984 kB / 351.6 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/2.507, allocations: 7.984 kB / 351.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-05/2.507, allocations: 7.906 kB / 351.6 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/2.507, allocations: 0 / 351.6 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002883/2.51, allocations: 0.7009 MB / 352.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00311/2.513, allocations: 1.08 MB / 353.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/2.513, allocations: 124.4 kB / 353.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/2.513, allocations: 11.98 kB / 353.5 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00084/2.514, allocations: 31.97 kB / 353.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006829/2.515, allocations: 128.7 kB / 353.7 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001711/2.515, allocations: 39.97 kB / 353.7 MB, free: 13.28 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0003438/2.515, allocations: 153.2 kB / 353.9 MB, free: 13.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.003071/2.518, allocations: 135.9 kB / 354 MB, free: 13 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 80 (compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,stateGraphRoot.activeSteps) * Number of discrete states: 9 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0005866/2.519, allocations: 167.1 kB / 354.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003488/2.523, allocations: 0.7646 MB / 354.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/2.523, allocations: 0 / 354.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001659/2.524, allocations: 383.6 kB / 355.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/2.526, allocations: 48.47 kB / 355.3 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00718/2.534, allocations: 1.034 MB / 356.4 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002435/2.536, allocations: 1.052 MB / 357.4 MB, free: 9.484 MB / 298.7 MB Notification: Performance of SimCode: time 1.744e-06/2.536, allocations: 0 / 357.4 MB, free: 9.484 MB / 298.7 MB