Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.027/2.027, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.659e-05/3.664e-05, allocations: 8 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1087, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.421/0.5298, allocations: 76.29 MB / 418.9 MB, free: 1.477 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.5301, allocations: 62.97 kB / 419 MB, free: 1.445 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01134/0.5414, allocations: 2.907 MB / 421.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5415, allocations: 0 / 421.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.5415, allocations: 8 kB / 421.9 MB, free: 14.9 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006948/0.5422, allocations: 437 kB / 422.3 MB, free: 14.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.5423, allocations: 12.03 kB / 422.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.466e-05/0.5424, allocations: 67.34 kB / 422.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.108e-05/0.5425, allocations: 19.81 kB / 422.4 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.5428, allocations: 220.5 kB / 422.6 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.302e-05/0.5429, allocations: 22.94 kB / 422.6 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.433e-05/0.5429, allocations: 22.25 kB / 422.7 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/0.5435, allocations: 239.1 kB / 422.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.5435, allocations: 7.922 kB / 422.9 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.5436, allocations: 6.25 kB / 422.9 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.5436, allocations: 12 kB / 422.9 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004155/0.544, allocations: 144.8 kB / 423.1 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.5453, allocations: 0.6869 MB / 423.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004014/0.5458, allocations: 163.4 kB / 423.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.546, allocations: 75.94 kB / 424 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.546, allocations: 8.172 kB / 424 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002518/0.5463, allocations: 112.4 kB / 424.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.126e-06/0.5463, allocations: 0 / 424.1 MB, free: 12.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004661/0.5468, allocations: 171.9 kB / 424.3 MB, free: 12.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.5468, allocations: 55.41 kB / 424.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.547, allocations: 139.3 kB / 424.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.547, allocations: 36.02 kB / 424.5 MB, free: 12.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.5471, allocations: 197.3 kB / 424.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/0.5472, allocations: 64.86 kB / 424.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.729e-05/0.5473, allocations: 3.938 kB / 424.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5474, allocations: 330.3 kB / 425.1 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.5476, allocations: 64.28 kB / 425.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.5478, allocations: 121.6 kB / 425.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.548, allocations: 68.39 kB / 425.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.548, allocations: 0 / 425.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005265/0.5486, allocations: 225.8 kB / 425.6 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.5486, allocations: 8 kB / 425.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.5486, allocations: 0 / 425.6 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.5487, allocations: 4 kB / 425.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.5489, allocations: 31.86 kB / 425.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.5489, allocations: 7.938 kB / 425.6 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.5491, allocations: 25.52 kB / 425.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.5491, allocations: 15.27 kB / 425.6 MB, free: 11.48 MB / 346.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.0001289/0.5493, allocations: 135.1 kB / 425.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.5493, allocations: 7.906 kB / 425.8 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004883/0.5498, allocations: 194.1 kB / 426 MB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.5498, allocations: 4 kB / 426 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5499, allocations: 0 / 426 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-06/0.5499, allocations: 0 / 426 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.5509, allocations: 0.5675 MB / 426.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.551, allocations: 0 / 426.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.5511, allocations: 15.94 kB / 426.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.5511, allocations: 0 / 426.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.5512, allocations: 11.61 kB / 426.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.5512, allocations: 3.953 kB / 426.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5512, allocations: 0 / 426.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004187/0.5516, allocations: 271.5 kB / 426.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.462e-05/0.5517, allocations: 96.94 kB / 426.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.5517, allocations: 2.938 kB / 426.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.5519, allocations: 11.38 kB / 426.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.685e-05/0.552, allocations: 27.34 kB / 427 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.552, allocations: 8 kB / 427 MB, free: 10.22 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.92e-05/0.5521, allocations: 90.41 kB / 427.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5521, allocations: 0 / 427.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004231/0.5525, allocations: 46.86 kB / 427.1 MB, free: 10.1 MB / 346.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.0007526/0.5533, allocations: 0.8204 MB / 427.9 MB, free: 9.297 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004479/0.5538, allocations: 172.8 kB / 428.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5538, allocations: 0 / 428.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.554, allocations: 77.88 kB / 428.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.5543, allocations: 27.75 kB / 428.2 MB, free: 9.094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008779/0.5552, allocations: 310.3 kB / 428.5 MB, free: 8.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.5555, allocations: 0.7326 MB / 429.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.5557, allocations: 66.03 kB / 429.3 MB, free: 8.008 MB / 346.7 MB Notification: Performance of SimCode: time 8.02e-07/0.5557, allocations: 4 kB / 429.3 MB, free: 8.004 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.394/2.95, allocations: 2.993 MB / 432.3 MB, free: 5.043 MB / 346.7 MB