Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant2",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 2.066/2.066, allocations: 194.9 MB / 202.5 MB, free: 6.922 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2676/2.333, allocations: 46.83 MB / 249.3 MB, free: 5.34 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09619/2.429, allocations: 44.49 MB / 293.8 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2915/2.721, allocations: 70.68 MB / 364.5 MB, free: 7.188 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/2.721, allocations: 65.88 kB / 364.6 MB, free: 7.188 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.01281/2.734, allocations: 3.023 MB / 367.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.482e-05/2.734, allocations: 7.75 kB / 367.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.745e-05/2.734, allocations: 24.94 kB / 367.6 MB, free: 6.609 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/2.735, allocations: 216.5 kB / 367.8 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/2.735, allocations: 19.66 kB / 367.9 MB, free: 6.398 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/2.735, allocations: 23 kB / 367.9 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004778/2.735, allocations: 143.9 kB / 368 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005042/2.736, allocations: 225.5 kB / 368.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/2.736, allocations: 0.9844 kB / 368.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/2.736, allocations: 3.5 kB / 368.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/2.736, allocations: 7.75 kB / 368.3 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/2.737, allocations: 0.8888 MB / 369.1 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003571/2.738, allocations: 129.7 kB / 369.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/2.738, allocations: 76.64 kB / 369.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/2.738, allocations: 192 / 369.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002768/2.738, allocations: 101.1 kB / 369.4 MB, free: 5.613 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 3.186e-06/2.738, allocations: 0 / 369.4 MB, free: 5.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.000457/2.739, allocations: 143.2 kB / 369.6 MB, free: 5.562 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/2.739, allocations: 58.91 kB / 369.6 MB, free: 5.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/2.739, allocations: 137.3 kB / 369.8 MB, free: 5.402 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/2.739, allocations: 34.86 kB / 369.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.724e-05/2.739, allocations: 137.1 kB / 369.9 MB, free: 5.254 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.707e-05/2.739, allocations: 57.61 kB / 370 MB, free: 5.223 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.473e-05/2.739, allocations: 0 / 370 MB, free: 5.223 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/2.739, allocations: 328 kB / 370.3 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/2.74, allocations: 53.75 kB / 370.4 MB, free: 20.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/2.74, allocations: 133.2 kB / 370.5 MB, free: 20.82 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/2.74, allocations: 68.2 kB / 370.6 MB, free: 20.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/2.74, allocations: 4 kB / 370.6 MB, free: 20.8 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004895/2.74, allocations: 210 kB / 370.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/2.74, allocations: 3.875 kB / 370.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/2.74, allocations: 3.844 kB / 370.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/2.741, allocations: 3.719 kB / 370.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/2.741, allocations: 35.02 kB / 370.8 MB, free: 20.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/2.741, allocations: 5.828 kB / 370.8 MB, free: 20.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001698/2.741, allocations: 17.22 kB / 370.8 MB, free: 20.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.84e-05/2.741, allocations: 15.12 kB / 370.9 MB, free: 20.73 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.000133/2.741, allocations: 131.4 kB / 371 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/2.741, allocations: 11.72 kB / 371 MB, free: 20.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004924/2.742, allocations: 163.8 kB / 371.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/2.742, allocations: 3.75 kB / 371.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/2.742, allocations: 4 kB / 371.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/2.742, allocations: 1.641 kB / 371.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/2.743, allocations: 0.5162 MB / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/2.743, allocations: 0 / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/2.743, allocations: 14.36 kB / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.766e-06/2.743, allocations: 0 / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/2.743, allocations: 9.5 kB / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/2.743, allocations: 3.906 kB / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/2.743, allocations: 0 / 371.7 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003879/2.744, allocations: 249.5 kB / 372 MB, free: 20.08 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004939/2.744, allocations: 0.6062 MB / 372.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.26e-05/2.744, allocations: 92.8 kB / 372.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/2.744, allocations: 4.906 kB / 372.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/2.744, allocations: 8.5 kB / 372.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.054e-05/2.744, allocations: 16.84 kB / 372.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-05/2.745, allocations: 12.53 kB / 372.7 MB, free: 19.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.128e-05/2.745, allocations: 94.92 kB / 372.8 MB, free: 19.39 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00135/2.746, allocations: 34.69 kB / 372.8 MB, free: 19.38 MB / 314.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002375/2.746, allocations: 115.1 kB / 372.9 MB, free: 19.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004486/2.747, allocations: 164.5 kB / 373.1 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/2.747, allocations: 0 / 373.1 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/2.747, allocations: 75.69 kB / 373.2 MB, free: 19.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/2.747, allocations: 15.72 kB / 373.2 MB, free: 19.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000727/2.748, allocations: 228.3 kB / 373.4 MB, free: 19.15 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004263/2.748, allocations: 0.7635 MB / 374.2 MB, free: 18.45 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/2.748, allocations: 0 / 374.2 MB, free: 18.45 MB / 314.7 MB