Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.099/1.099, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.731e-05, allocations: 0 / 151.5 MB, free: 15.5 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1653, allocations: 25.15 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06897/0.2343, allocations: 33.24 MB / 209.9 MB, free: 116 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/0.2347, allocations: 59.95 kB / 209.9 MB, free: 56 kB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01545/0.2502, allocations: 2.764 MB / 212.7 MB, free: 13.27 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.2502, allocations: 0 / 212.7 MB, free: 13.27 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.791e-05/0.2503, allocations: 8.875 kB / 212.7 MB, free: 13.27 MB / 186.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.0009539/0.2512, allocations: 434.7 kB / 213.1 MB, free: 12.8 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.554e-05/0.2513, allocations: 8.031 kB / 213.1 MB, free: 12.79 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.2515, allocations: 66.44 kB / 213.2 MB, free: 12.71 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.2516, allocations: 27.7 kB / 213.2 MB, free: 12.69 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004252/0.2521, allocations: 215 kB / 213.4 MB, free: 12.44 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.434e-05/0.2521, allocations: 16.44 kB / 213.4 MB, free: 12.42 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.332e-05/0.2522, allocations: 20 kB / 213.5 MB, free: 12.4 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008452/0.2531, allocations: 233 kB / 213.7 MB, free: 12.16 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.2531, allocations: 3.938 kB / 213.7 MB, free: 12.16 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.979e-05/0.2532, allocations: 7.984 kB / 213.7 MB, free: 12.15 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.2533, allocations: 11.95 kB / 213.7 MB, free: 12.14 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006618/0.2539, allocations: 148.8 kB / 213.9 MB, free: 12 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001944/0.2559, allocations: 0.6791 MB / 214.5 MB, free: 11.26 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006598/0.2566, allocations: 163.2 kB / 214.7 MB, free: 11.09 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003256/0.257, allocations: 85.17 kB / 214.8 MB, free: 11.01 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.257, allocations: 192 / 214.8 MB, free: 11.01 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.2573, allocations: 119.4 kB / 214.9 MB, free: 10.88 MB / 186.7 MB Notification: Performance of pre-optimization done (n=24): time 2.815e-06/0.2574, allocations: 0 / 214.9 MB, free: 10.88 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004764/0.2578, allocations: 161 kB / 215.1 MB, free: 10.72 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.2579, allocations: 59.27 kB / 215.1 MB, free: 10.65 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.2581, allocations: 137 kB / 215.3 MB, free: 10.5 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.2582, allocations: 37.7 kB / 215.3 MB, free: 10.46 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.2583, allocations: 194.8 kB / 215.5 MB, free: 10.27 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.549e-05/0.2584, allocations: 59.25 kB / 215.5 MB, free: 10.21 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.787e-05/0.2584, allocations: 4 kB / 215.5 MB, free: 10.21 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.2585, allocations: 322.8 kB / 215.9 MB, free: 9.883 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001744/0.2587, allocations: 60.08 kB / 215.9 MB, free: 9.82 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.259, allocations: 123.5 kB / 216 MB, free: 9.676 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.2592, allocations: 64.41 kB / 216.1 MB, free: 9.613 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.2593, allocations: 3.953 kB / 216.1 MB, free: 9.609 MB / 186.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008049/0.2601, allocations: 225.3 kB / 216.3 MB, free: 9.383 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.2601, allocations: 12.77 kB / 216.3 MB, free: 9.371 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.2602, allocations: 0 / 216.3 MB, free: 9.371 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.2602, allocations: 4 kB / 216.3 MB, free: 9.367 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.2605, allocations: 31.92 kB / 216.4 MB, free: 9.336 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.016e-05/0.2606, allocations: 4 kB / 216.4 MB, free: 9.332 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.2608, allocations: 16.16 kB / 216.4 MB, free: 9.316 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.568e-05/0.2609, allocations: 19.98 kB / 216.4 MB, free: 9.297 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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.0002094/0.2611, allocations: 139.3 kB / 216.5 MB, free: 9.16 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.2612, allocations: 23.77 kB / 216.6 MB, free: 9.137 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007033/0.2619, allocations: 190.2 kB / 216.8 MB, free: 8.945 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.262, allocations: 4 kB / 216.8 MB, free: 8.941 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.262, allocations: 0 / 216.8 MB, free: 8.941 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.262, allocations: 7.984 kB / 216.8 MB, free: 8.934 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.2635, allocations: 0.5493 MB / 217.3 MB, free: 8.328 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-06/0.2636, allocations: 0 / 217.3 MB, free: 8.328 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.2638, allocations: 23.92 kB / 217.3 MB, free: 8.305 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.806e-06/0.2638, allocations: 0 / 217.3 MB, free: 8.305 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.2638, allocations: 4 kB / 217.3 MB, free: 8.301 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.97e-06/0.2639, allocations: 0 / 217.3 MB, free: 8.301 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.2639, allocations: 7.938 kB / 217.4 MB, free: 8.293 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005905/0.2645, allocations: 283.6 kB / 217.6 MB, free: 8 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.602e-05/0.2646, allocations: 88.95 kB / 217.7 MB, free: 7.895 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.793e-05/0.2646, allocations: 4 kB / 217.7 MB, free: 7.891 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002158/0.2649, allocations: 11.98 kB / 217.7 MB, free: 7.879 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.265, allocations: 23.97 kB / 217.8 MB, free: 7.855 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-05/0.2651, allocations: 11.98 kB / 217.8 MB, free: 7.844 MB / 186.7 MB Notification: Performance of sorting global known variables: time 9.73e-05/0.2652, allocations: 99.78 kB / 217.9 MB, free: 7.746 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2652, allocations: 0 / 217.9 MB, free: 7.746 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006767/0.2659, allocations: 40 kB / 217.9 MB, free: 7.707 MB / 186.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.001071/0.267, allocations: 0.8137 MB / 218.7 MB, free: 6.863 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006521/0.2676, allocations: 171.8 kB / 218.9 MB, free: 6.695 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2677, allocations: 0 / 218.9 MB, free: 6.695 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002703/0.2679, allocations: 83.92 kB / 219 MB, free: 6.609 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.2683, allocations: 12 kB / 219 MB, free: 6.598 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.2696, allocations: 313.7 kB / 219.3 MB, free: 6.25 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.2701, allocations: 0.7408 MB / 220 MB, free: 5.48 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.2703, allocations: 51.42 kB / 220.1 MB, free: 5.43 MB / 186.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2703, allocations: 3.938 kB / 220.1 MB, free: 5.426 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.526/2.796, allocations: 2.941 MB / 223 MB, free: 2.484 MB / 186.7 MB