Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9811/0.9811, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.641e-05/2.655e-05, allocations: 0 / 151.5 MB, free: 15.5 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2112, allocations: 25.14 MB / 176.6 MB, free: 15.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07878/0.29, allocations: 33.77 MB / 210.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.2904, allocations: 59.97 kB / 210.5 MB, free: 15.51 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01707/0.3075, allocations: 2.906 MB / 213.4 MB, free: 12.59 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3076, allocations: 0 / 213.4 MB, free: 12.59 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.848e-05/0.3076, allocations: 8.875 kB / 213.4 MB, free: 12.58 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001131/0.3088, allocations: 431.1 kB / 213.8 MB, free: 12.12 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.46e-05/0.3089, allocations: 12.03 kB / 213.8 MB, free: 12.11 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001798/0.3091, allocations: 66.48 kB / 213.9 MB, free: 12.03 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.3092, allocations: 23.72 kB / 213.9 MB, free: 12.01 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005238/0.3098, allocations: 226.7 kB / 214.1 MB, free: 11.75 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.586e-05/0.3099, allocations: 20.56 kB / 214.1 MB, free: 11.73 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.832e-05/0.31, allocations: 28 kB / 214.2 MB, free: 11.7 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.311, allocations: 256.9 kB / 214.4 MB, free: 11.43 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.3111, allocations: 0 / 214.4 MB, free: 11.43 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.253e-05/0.3112, allocations: 8 kB / 214.4 MB, free: 11.42 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.3112, allocations: 11.95 kB / 214.4 MB, free: 11.41 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000765/0.312, allocations: 164.8 kB / 214.6 MB, free: 11.25 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.3146, allocations: 0.9367 MB / 215.5 MB, free: 10.23 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005135/0.3152, allocations: 147.2 kB / 215.7 MB, free: 10.08 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.3155, allocations: 69.27 kB / 215.7 MB, free: 10.01 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.822e-05/0.3155, allocations: 4.188 kB / 215.7 MB, free: 10.01 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003776/0.3159, allocations: 119.3 kB / 215.9 MB, free: 9.879 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 5.391e-06/0.316, allocations: 0 / 215.9 MB, free: 9.879 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007013/0.3167, allocations: 152.4 kB / 216 MB, free: 9.727 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.993e-05/0.3168, allocations: 67.25 kB / 216.1 MB, free: 9.648 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.3171, allocations: 139.5 kB / 216.2 MB, free: 9.508 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 8.108e-05/0.3172, allocations: 37.7 kB / 216.3 MB, free: 9.465 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.3174, allocations: 202.7 kB / 216.4 MB, free: 9.266 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.3176, allocations: 63.33 kB / 216.5 MB, free: 9.203 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.3176, allocations: 4 kB / 216.5 MB, free: 9.199 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.3178, allocations: 326.8 kB / 216.8 MB, free: 8.871 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003286/0.3182, allocations: 56.66 kB / 216.9 MB, free: 8.812 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003862/0.3186, allocations: 134.5 kB / 217 MB, free: 8.652 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.319, allocations: 71.89 kB / 217.1 MB, free: 8.582 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.319, allocations: 0 / 217.1 MB, free: 8.582 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009683/0.32, allocations: 237.2 kB / 217.3 MB, free: 8.344 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.632e-05/0.3201, allocations: 5.062 kB / 217.3 MB, free: 8.34 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.3201, allocations: 8 kB / 217.3 MB, free: 8.332 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.309e-05/0.3202, allocations: 7.984 kB / 217.3 MB, free: 8.324 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.3205, allocations: 31.92 kB / 217.4 MB, free: 8.293 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.827e-05/0.3206, allocations: 4 kB / 217.4 MB, free: 8.289 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.3209, allocations: 19.84 kB / 217.4 MB, free: 8.27 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.582e-05/0.321, allocations: 19.98 kB / 217.4 MB, free: 8.25 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: 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: 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,SetBoolean1.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.0003087/0.3213, allocations: 142.8 kB / 217.6 MB, free: 8.109 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.523e-05/0.3214, allocations: 15.91 kB / 217.6 MB, free: 8.094 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008339/0.3223, allocations: 182.3 kB / 217.8 MB, free: 7.906 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.3223, allocations: 0 / 217.8 MB, free: 7.906 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.3223, allocations: 0 / 217.8 MB, free: 7.906 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/0.3224, allocations: 4 kB / 217.8 MB, free: 7.902 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001784/0.3242, allocations: 0.5835 MB / 218.3 MB, free: 7.258 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.3242, allocations: 4 kB / 218.3 MB, free: 7.254 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.3245, allocations: 15.92 kB / 218.4 MB, free: 7.238 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-05/0.3245, allocations: 4 kB / 218.4 MB, free: 7.234 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.3246, allocations: 7.938 kB / 218.4 MB, free: 7.227 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.3246, allocations: 0 / 218.4 MB, free: 7.227 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/0.3246, allocations: 7.953 kB / 218.4 MB, free: 7.219 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007186/0.3254, allocations: 263.7 kB / 218.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.877e-05/0.3255, allocations: 92.91 kB / 218.7 MB, free: 6.836 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.55e-05/0.3256, allocations: 4 kB / 218.7 MB, free: 6.832 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.3259, allocations: 8 kB / 218.7 MB, free: 6.824 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.326, allocations: 27.95 kB / 218.8 MB, free: 6.797 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.392e-05/0.3261, allocations: 7.953 kB / 218.8 MB, free: 6.789 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001312/0.3263, allocations: 96.69 kB / 218.9 MB, free: 6.695 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.3263, allocations: 0 / 218.9 MB, free: 6.695 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007952/0.3271, allocations: 43.98 kB / 218.9 MB, free: 6.648 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 (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,SetBoolean1.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.00128/0.3284, allocations: 0.8135 MB / 219.7 MB, free: 5.809 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007741/0.3292, allocations: 175.8 kB / 219.9 MB, free: 5.637 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/0.3293, allocations: 0 / 219.9 MB, free: 5.637 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003093/0.3296, allocations: 75.88 kB / 220 MB, free: 5.562 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.3301, allocations: 24.48 kB / 220 MB, free: 5.539 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.3317, allocations: 311.2 kB / 220.3 MB, free: 5.199 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.3323, allocations: 0.7404 MB / 221 MB, free: 4.43 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/0.3326, allocations: 63.42 kB / 221.1 MB, free: 4.367 MB / 186.7 MB Notification: Performance of SimCode: time 1.623e-06/0.3326, allocations: 0 / 221.1 MB, free: 4.367 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.541/2.873, allocations: 3.032 MB / 224.1 MB, free: 1.336 MB / 186.7 MB