Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample",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.701/1.701, allocations: 171.2 MB / 178.1 MB, free: 8.281 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.212/1.913, allocations: 41.1 MB / 219.2 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09203/2.005, allocations: 38.77 MB / 258 MB, free: 4.348 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3287/2.334, allocations: 65.05 MB / 323.1 MB, free: 6.93 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003829/2.334, allocations: 60.78 kB / 323.1 MB, free: 6.902 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.01846/2.353, allocations: 2.858 MB / 326 MB, free: 4.395 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/2.353, allocations: 8 kB / 326 MB, free: 4.387 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/2.353, allocations: 23.72 kB / 326 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000485/2.354, allocations: 228.8 kB / 326.2 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.094e-05/2.354, allocations: 8 kB / 326.2 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.528e-05/2.354, allocations: 19.91 kB / 326.3 MB, free: 4.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000734/2.354, allocations: 148 kB / 326.4 MB, free: 3.996 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007597/2.355, allocations: 192.8 kB / 326.6 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/2.355, allocations: 0 / 326.6 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/2.355, allocations: 2.938 kB / 326.6 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/2.355, allocations: 8 kB / 326.6 MB, free: 3.828 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/2.357, allocations: 0.6232 MB / 327.2 MB, free: 3.262 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/2.358, allocations: 145 kB / 327.4 MB, free: 3.152 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006626/2.359, allocations: 68.11 kB / 327.4 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.158e-05/2.359, allocations: 192 / 327.4 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003856/2.36, allocations: 113.3 kB / 327.5 MB, free: 3.004 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.266e-06/2.36, allocations: 7.938 kB / 327.5 MB, free: 2.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000485/2.36, allocations: 135.7 kB / 327.7 MB, free: 2.883 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.261e-05/2.36, allocations: 59.41 kB / 327.7 MB, free: 2.812 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/2.36, allocations: 131.2 kB / 327.9 MB, free: 2.688 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/2.36, allocations: 33.08 kB / 327.9 MB, free: 2.652 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/2.361, allocations: 127 kB / 328 MB, free: 2.531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.502e-05/2.361, allocations: 59.06 kB / 328.1 MB, free: 2.484 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.455e-05/2.361, allocations: 0 / 328.1 MB, free: 2.484 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/2.361, allocations: 322.5 kB / 328.4 MB, free: 2.164 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/2.361, allocations: 53.03 kB / 328.4 MB, free: 2.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/2.361, allocations: 126.5 kB / 328.6 MB, free: 2.008 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/2.361, allocations: 50.92 kB / 328.6 MB, free: 1.977 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/2.361, allocations: 4 kB / 328.6 MB, free: 1.973 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005243/2.362, allocations: 209.4 kB / 328.8 MB, free: 1.797 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/2.362, allocations: 4 kB / 328.8 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/2.362, allocations: 0 / 328.8 MB, free: 1.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/2.362, allocations: 4 kB / 328.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002522/2.362, allocations: 31.91 kB / 328.9 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.155e-05/2.362, allocations: 11.84 kB / 328.9 MB, free: 1.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/2.363, allocations: 16.16 kB / 328.9 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/2.363, allocations: 11 kB / 328.9 MB, free: 1.723 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001412/2.363, allocations: 123.3 kB / 329 MB, free: 1.598 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/2.363, allocations: 19.8 kB / 329 MB, free: 1.578 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/2.363, allocations: 166.5 kB / 329.2 MB, free: 1.449 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/2.363, allocations: 4 kB / 329.2 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/2.363, allocations: 0 / 329.2 MB, free: 1.445 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/2.363, allocations: 7.906 kB / 329.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/2.365, allocations: 495.5 kB / 329.7 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/2.365, allocations: 0 / 329.7 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001783/2.365, allocations: 30.67 kB / 329.7 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/2.365, allocations: 4 kB / 329.7 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/2.365, allocations: 0 / 329.7 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.452e-06/2.365, allocations: 7.938 kB / 329.7 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/2.365, allocations: 3.984 kB / 329.7 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006789/2.366, allocations: 243.9 kB / 330 MB, free: 0.707 MB / 266.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001803/2.367, allocations: 0.6267 MB / 330.6 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/2.368, allocations: 93.03 kB / 330.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.062e-05/2.368, allocations: 3.984 kB / 330.7 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/2.368, allocations: 4 kB / 330.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/2.368, allocations: 23.16 kB / 330.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/2.368, allocations: 7.984 kB / 330.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.363e-05/2.368, allocations: 90.41 kB / 330.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001313/2.37, allocations: 36 kB / 330.9 MB, free: 15.83 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0002531/2.37, allocations: 110.9 kB / 331 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005336/2.37, allocations: 155.4 kB / 331.1 MB, free: 15.6 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/2.37, allocations: 0 / 331.1 MB, free: 15.6 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/2.371, allocations: 76.62 kB / 331.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/2.371, allocations: 19.52 kB / 331.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008097/2.372, allocations: 217.3 kB / 331.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005219/2.372, allocations: 0.7548 MB / 332.2 MB, free: 14.54 MB / 282.7 MB Notification: Performance of SimCode: time 1.864e-06/2.372, allocations: 0 / 332.2 MB, free: 14.54 MB / 282.7 MB