Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_1_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 1.783/1.783, allocations: 171.2 MB / 178.1 MB, free: 8.285 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2528/2.036, allocations: 41.09 MB / 219.2 MB, free: 11.21 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/2.151, allocations: 38.76 MB / 258 MB, free: 4.383 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3306/2.481, allocations: 65.68 MB / 323.7 MB, free: 6.387 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004083/2.482, allocations: 64 kB / 323.7 MB, free: 6.359 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.01548/2.497, allocations: 3.022 MB / 326.8 MB, free: 3.719 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/2.497, allocations: 8 kB / 326.8 MB, free: 3.711 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/2.498, allocations: 27.72 kB / 326.8 MB, free: 3.684 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/2.498, allocations: 222.4 kB / 327 MB, free: 3.441 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.613e-05/2.498, allocations: 8 kB / 327 MB, free: 3.434 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/2.498, allocations: 19.98 kB / 327 MB, free: 3.414 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005013/2.499, allocations: 147.9 kB / 327.2 MB, free: 3.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/2.499, allocations: 229.8 kB / 327.4 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/2.499, allocations: 0 / 327.4 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.332e-05/2.499, allocations: 3.906 kB / 327.4 MB, free: 3.117 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/2.499, allocations: 8 kB / 327.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/2.501, allocations: 0.8957 MB / 328.3 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/2.501, allocations: 128.4 kB / 328.4 MB, free: 2.168 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/2.501, allocations: 65.81 kB / 328.5 MB, free: 2.121 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/2.502, allocations: 4.172 kB / 328.5 MB, free: 2.117 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/2.502, allocations: 105.7 kB / 328.6 MB, free: 2.023 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.478e-05/2.502, allocations: 0 / 328.6 MB, free: 2.023 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007671/2.503, allocations: 144.6 kB / 328.8 MB, free: 1.898 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/2.503, allocations: 62.89 kB / 328.8 MB, free: 1.828 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003233/2.503, allocations: 138.8 kB / 329 MB, free: 1.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/2.503, allocations: 29.7 kB / 329 MB, free: 1.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/2.504, allocations: 132.7 kB / 329.1 MB, free: 1.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/2.504, allocations: 57.19 kB / 329.2 MB, free: 1.496 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/2.504, allocations: 4 kB / 329.2 MB, free: 1.492 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002115/2.504, allocations: 320.8 kB / 329.5 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/2.504, allocations: 57.09 kB / 329.5 MB, free: 1.137 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/2.505, allocations: 131 kB / 329.7 MB, free: 1.008 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003007/2.505, allocations: 60.34 kB / 329.7 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/2.505, allocations: 0 / 329.7 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009723/2.506, allocations: 214.6 kB / 329.9 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.533e-05/2.506, allocations: 4.281 kB / 329.9 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/2.506, allocations: 8 kB / 330 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.065e-05/2.506, allocations: 4 kB / 330 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005152/2.507, allocations: 39.84 kB / 330 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/2.507, allocations: 4 kB / 330 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/2.507, allocations: 7.906 kB / 330 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-05/2.507, allocations: 19.19 kB / 330 MB, free: 0.7031 MB / 266.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.0002737/2.508, allocations: 138.6 kB / 330.2 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.969e-05/2.508, allocations: 7.906 kB / 330.2 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000928/2.509, allocations: 167 kB / 330.3 MB, free: 432 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.708e-05/2.509, allocations: 7.906 kB / 330.3 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/2.509, allocations: 0 / 330.3 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/2.509, allocations: 0 / 330.3 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/2.511, allocations: 0.5085 MB / 330.8 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/2.511, allocations: 0 / 330.8 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/2.511, allocations: 23.8 kB / 330.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.949e-05/2.511, allocations: 4 kB / 330.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.949e-05/2.511, allocations: 0 / 330.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.12e-05/2.511, allocations: 0 / 330.9 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/2.511, allocations: 3.938 kB / 330.9 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007445/2.512, allocations: 239.6 kB / 331.1 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007649/2.513, allocations: 0.6245 MB / 331.7 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/2.513, allocations: 88.92 kB / 331.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.48e-05/2.513, allocations: 4 kB / 331.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/2.514, allocations: 7.984 kB / 331.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/2.514, allocations: 22.88 kB / 331.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/2.514, allocations: 8 kB / 331.9 MB, free: 14.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0001549/2.514, allocations: 98.39 kB / 332 MB, free: 14.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002321/2.516, allocations: 28 kB / 332 MB, free: 14.8 MB / 282.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.000368/2.517, allocations: 114.1 kB / 332.1 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007079/2.517, allocations: 160.7 kB / 332.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/2.518, allocations: 0.5625 kB / 332.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/2.518, allocations: 78.36 kB / 332.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004511/2.518, allocations: 11.81 kB / 332.3 MB, free: 14.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/2.52, allocations: 227.4 kB / 332.6 MB, free: 14.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006938/2.52, allocations: 0.7668 MB / 333.3 MB, free: 13.49 MB / 282.7 MB Notification: Performance of SimCode: time 1.873e-06/2.52, allocations: 0 / 333.3 MB, free: 13.49 MB / 282.7 MB