Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 0.9988/0.9988, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.071e-05, allocations: 7.984 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1775, allocations: 25.15 MB / 176.6 MB, free: 15.89 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08027/0.2579, allocations: 33.78 MB / 210.4 MB, free: 15.58 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.2582, allocations: 63.97 kB / 210.5 MB, free: 15.52 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01523/0.2735, allocations: 2.921 MB / 213.4 MB, free: 12.57 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2735, allocations: 0 / 213.4 MB, free: 12.57 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.325e-05/0.2736, allocations: 4.875 kB / 213.4 MB, free: 12.57 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.0009409/0.2745, allocations: 451 kB / 213.8 MB, free: 12.09 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.2746, allocations: 11.97 kB / 213.9 MB, free: 12.07 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.2748, allocations: 62.44 kB / 213.9 MB, free: 12 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.2749, allocations: 23.81 kB / 213.9 MB, free: 11.98 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004404/0.2753, allocations: 226.8 kB / 214.2 MB, free: 11.72 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.2754, allocations: 24.56 kB / 214.2 MB, free: 11.7 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.287e-05/0.2755, allocations: 28 kB / 214.2 MB, free: 11.67 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008483/0.2764, allocations: 260.9 kB / 214.5 MB, free: 11.39 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.2764, allocations: 0 / 214.5 MB, free: 11.39 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.57e-05/0.2765, allocations: 8 kB / 214.5 MB, free: 11.38 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.2765, allocations: 11.95 kB / 214.5 MB, free: 11.37 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006569/0.2772, allocations: 156.8 kB / 214.6 MB, free: 11.22 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002091/0.2793, allocations: 0.9406 MB / 215.6 MB, free: 10.2 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005267/0.2798, allocations: 151.2 kB / 215.7 MB, free: 10.05 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002594/0.2801, allocations: 73.17 kB / 215.8 MB, free: 9.973 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.2802, allocations: 4.125 kB / 215.8 MB, free: 9.969 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.2806, allocations: 115.4 kB / 215.9 MB, free: 9.844 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 4.087e-06/0.2806, allocations: 0 / 215.9 MB, free: 9.844 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006103/0.2812, allocations: 160.9 kB / 216.1 MB, free: 9.684 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.2813, allocations: 63.25 kB / 216.1 MB, free: 9.609 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.2815, allocations: 142.3 kB / 216.3 MB, free: 9.465 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.2816, allocations: 33.7 kB / 216.3 MB, free: 9.426 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.2818, allocations: 206.7 kB / 216.5 MB, free: 9.223 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.928e-05/0.2819, allocations: 55.34 kB / 216.6 MB, free: 9.168 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.282, allocations: 4 kB / 216.6 MB, free: 9.164 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.2822, allocations: 334.8 kB / 216.9 MB, free: 8.828 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.2824, allocations: 64.58 kB / 217 MB, free: 8.762 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003392/0.2828, allocations: 122.6 kB / 217.1 MB, free: 8.613 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.2831, allocations: 75.86 kB / 217.2 MB, free: 8.539 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2831, allocations: 0 / 217.2 MB, free: 8.539 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008076/0.2839, allocations: 233.3 kB / 217.4 MB, free: 8.305 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.284, allocations: 4 kB / 217.4 MB, free: 8.301 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.284, allocations: 4 kB / 217.4 MB, free: 8.297 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.582e-05/0.284, allocations: 4 kB / 217.4 MB, free: 8.293 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003168/0.2844, allocations: 39.86 kB / 217.4 MB, free: 8.254 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.335e-05/0.2844, allocations: 11.92 kB / 217.4 MB, free: 8.242 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.2847, allocations: 11.91 kB / 217.5 MB, free: 8.23 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.377e-05/0.2847, allocations: 20.28 kB / 217.5 MB, free: 8.211 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,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.0002403/0.285, allocations: 135.9 kB / 217.6 MB, free: 8.074 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.148e-05/0.285, allocations: 11.89 kB / 217.6 MB, free: 8.062 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006987/0.2858, allocations: 190.2 kB / 217.8 MB, free: 7.867 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.2858, allocations: 4 kB / 217.8 MB, free: 7.863 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2858, allocations: 0 / 217.8 MB, free: 7.863 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.2858, allocations: 0 / 217.8 MB, free: 7.863 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.2873, allocations: 0.5837 MB / 218.4 MB, free: 7.219 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.2873, allocations: 0 / 218.4 MB, free: 7.219 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001756/0.2875, allocations: 15.94 kB / 218.4 MB, free: 7.203 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.2876, allocations: 3.938 kB / 218.4 MB, free: 7.199 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.2876, allocations: 15.97 kB / 218.4 MB, free: 7.184 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.2876, allocations: 0 / 218.4 MB, free: 7.184 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.2876, allocations: 3.953 kB / 218.4 MB, free: 7.18 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006057/0.2883, allocations: 271.6 kB / 218.7 MB, free: 6.898 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.2884, allocations: 85.02 kB / 218.8 MB, free: 6.797 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.394e-05/0.2884, allocations: 11.98 kB / 218.8 MB, free: 6.785 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.2886, allocations: 4 kB / 218.8 MB, free: 6.781 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.2888, allocations: 27.86 kB / 218.8 MB, free: 6.754 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.729e-05/0.2888, allocations: 11.98 kB / 218.8 MB, free: 6.742 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001183/0.289, allocations: 101 kB / 218.9 MB, free: 6.645 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.289, allocations: 4 kB / 218.9 MB, free: 6.641 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007507/0.2898, allocations: 40 kB / 219 MB, free: 6.602 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,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.001122/0.2909, allocations: 0.8096 MB / 219.8 MB, free: 5.766 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006448/0.2916, allocations: 168.2 kB / 219.9 MB, free: 5.602 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2916, allocations: 4.125 kB / 220 MB, free: 5.598 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.2919, allocations: 79.92 kB / 220 MB, free: 5.52 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004026/0.2923, allocations: 18.92 kB / 220 MB, free: 5.504 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.2937, allocations: 319.2 kB / 220.4 MB, free: 5.152 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005024/0.2942, allocations: 0.7443 MB / 221.1 MB, free: 4.379 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.2944, allocations: 59.42 kB / 221.2 MB, free: 4.32 MB / 186.7 MB Notification: Performance of SimCode: time 3.386e-06/0.2944, allocations: 0 / 221.2 MB, free: 4.32 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.495/2.79, allocations: 3.056 MB / 224.2 MB, free: 1.266 MB / 186.7 MB