Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.153e-05, allocations: 4 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 50.42 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4383/0.5487, allocations: 76.93 MB / 419.6 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002779/0.549, allocations: 66.34 kB / 419.6 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01614/0.5652, allocations: 3.054 MB / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5653, allocations: 0 / 422.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.5653, allocations: 8 kB / 422.7 MB, free: 14.15 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009533/0.5663, allocations: 443.2 kB / 423.1 MB, free: 13.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.5664, allocations: 8.031 kB / 423.1 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001189/0.5665, allocations: 62.09 kB / 423.2 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.5666, allocations: 23.72 kB / 423.2 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.5671, allocations: 223.5 kB / 423.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.945e-05/0.5671, allocations: 22.5 kB / 423.4 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.824e-05/0.5672, allocations: 33.94 kB / 423.5 MB, free: 13.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000851/0.5681, allocations: 267.8 kB / 423.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.023e-05/0.5682, allocations: 3.938 kB / 423.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/0.5682, allocations: 5.812 kB / 423.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.769e-05/0.5682, allocations: 8 kB / 423.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006287/0.5689, allocations: 146.8 kB / 423.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.5711, allocations: 0.9639 MB / 424.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005451/0.5717, allocations: 165 kB / 425 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.572, allocations: 90.02 kB / 425.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.572, allocations: 192 / 425.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004002/0.5724, allocations: 131 kB / 425.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.206e-06/0.5725, allocations: 0 / 425.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006751/0.5732, allocations: 175.9 kB / 425.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.077e-05/0.5733, allocations: 93.11 kB / 425.5 MB, free: 11.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.5735, allocations: 141.7 kB / 425.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.381e-05/0.5736, allocations: 37.52 kB / 425.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.5738, allocations: 201.6 kB / 425.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.974e-05/0.5739, allocations: 62.44 kB / 425.9 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.473e-05/0.574, allocations: 3.938 kB / 425.9 MB, free: 11.13 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001901/0.5742, allocations: 329.9 kB / 426.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.5744, allocations: 58.25 kB / 426.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/0.5748, allocations: 129.3 kB / 426.4 MB, free: 10.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.5751, allocations: 81.81 kB / 426.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.5751, allocations: 0 / 426.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008352/0.576, allocations: 234.6 kB / 426.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.576, allocations: 4.281 kB / 426.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.5761, allocations: 8 kB / 426.8 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.785e-05/0.5761, allocations: 7.938 kB / 426.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.5764, allocations: 43.17 kB / 426.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/0.5765, allocations: 4 kB / 426.8 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002448/0.5767, allocations: 14.62 kB / 426.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.783e-05/0.5768, allocations: 12 kB / 426.8 MB, free: 10.3 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.000195/0.577, allocations: 134.5 kB / 427 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.5771, allocations: 15.75 kB / 427 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000712/0.5778, allocations: 193.8 kB / 427.2 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.5779, allocations: 4 kB / 427.2 MB, free: 9.996 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.5779, allocations: 3.953 kB / 427.2 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.5779, allocations: 0 / 427.2 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.5794, allocations: 0.5853 MB / 427.8 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.5794, allocations: 4 kB / 427.8 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.5796, allocations: 23.55 kB / 427.8 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/0.5797, allocations: 3.953 kB / 427.8 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.5797, allocations: 7.938 kB / 427.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.5797, allocations: 0 / 427.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5797, allocations: 0 / 427.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00065/0.5804, allocations: 289.4 kB / 428.1 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.784e-05/0.5805, allocations: 100.8 kB / 428.2 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.058e-05/0.5806, allocations: 3.188 kB / 428.2 MB, free: 9.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.5808, allocations: 11.86 kB / 428.2 MB, free: 9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.581, allocations: 22.84 kB / 428.2 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.581, allocations: 7.984 kB / 428.2 MB, free: 8.973 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001088/0.5811, allocations: 92.91 kB / 428.3 MB, free: 8.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5812, allocations: 0 / 428.3 MB, free: 8.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007684/0.5819, allocations: 45.5 kB / 428.4 MB, free: 8.852 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.00113/0.5831, allocations: 0.9166 MB / 429.3 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.5836, allocations: 177.3 kB / 429.5 MB, free: 7.816 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5836, allocations: 4.188 kB / 429.5 MB, free: 7.812 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000209/0.5839, allocations: 72.38 kB / 429.5 MB, free: 7.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002959/0.5842, allocations: 23.03 kB / 429.6 MB, free: 7.742 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.5852, allocations: 319.8 kB / 429.9 MB, free: 7.426 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.5856, allocations: 0.7405 MB / 430.6 MB, free: 6.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.5858, allocations: 61.66 kB / 430.7 MB, free: 6.633 MB / 346.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5858, allocations: 0 / 430.7 MB, free: 6.633 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.415/3.001, allocations: 3.088 MB / 433.8 MB, free: 3.578 MB / 346.7 MB