Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.78e-05/3.785e-05, allocations: 4 kB / 292.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 50.42 MB / 342.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.427/0.5338, allocations: 76.89 MB / 419.5 MB, free: 1.215 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.5341, allocations: 63.59 kB / 419.6 MB, free: 1.184 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01231/0.5464, allocations: 3.079 MB / 422.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5465, allocations: 0 / 422.7 MB, free: 14.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.5465, allocations: 8 kB / 422.7 MB, free: 14.5 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.0007242/0.5473, allocations: 443.4 kB / 423.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.5473, allocations: 16.02 kB / 423.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.639e-05/0.5474, allocations: 55.23 kB / 423.2 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.5475, allocations: 23.72 kB / 423.2 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.5478, allocations: 226.6 kB / 423.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.471e-05/0.5479, allocations: 23.06 kB / 423.4 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.548, allocations: 30.5 kB / 423.5 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006162/0.5486, allocations: 259.3 kB / 423.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.5486, allocations: 4 kB / 423.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.5487, allocations: 9.062 kB / 423.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.5487, allocations: 8 kB / 423.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004406/0.5492, allocations: 158 kB / 423.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.5508, allocations: 0.9622 MB / 424.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.5512, allocations: 167.7 kB / 425 MB, free: 12.31 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.5514, allocations: 80.41 kB / 425.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.5514, allocations: 8.172 kB / 425.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.5517, allocations: 136.6 kB / 425.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.106e-06/0.5517, allocations: 4 kB / 425.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004769/0.5522, allocations: 168.2 kB / 425.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/0.5523, allocations: 92.86 kB / 425.5 MB, free: 11.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.5525, allocations: 136.9 kB / 425.6 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.5525, allocations: 37.52 kB / 425.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.5527, allocations: 210.3 kB / 425.9 MB, free: 11.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.187e-05/0.5528, allocations: 58.88 kB / 425.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/0.5528, allocations: 7.062 kB / 425.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5529, allocations: 326.7 kB / 426.3 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.5531, allocations: 59 kB / 426.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.5533, allocations: 131.1 kB / 426.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.5535, allocations: 74.08 kB / 426.5 MB, free: 10.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.5536, allocations: 4 kB / 426.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005582/0.5541, allocations: 242.4 kB / 426.8 MB, free: 10.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.5542, allocations: 7.938 kB / 426.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.5542, allocations: 4 kB / 426.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.5542, allocations: 4 kB / 426.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.5545, allocations: 39.81 kB / 426.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.5545, allocations: 4 kB / 426.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.5547, allocations: 27.56 kB / 426.8 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.5547, allocations: 8.281 kB / 426.9 MB, free: 10.63 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,greaterEqual.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.0001349/0.5549, allocations: 139.5 kB / 427 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.533e-05/0.5549, allocations: 7.906 kB / 427 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.5554, allocations: 192.4 kB / 427.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.5555, allocations: 4 kB / 427.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.5555, allocations: 3.953 kB / 427.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.5555, allocations: 3.984 kB / 427.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.5566, allocations: 0.5898 MB / 427.8 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5566, allocations: 0 / 427.8 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.5567, allocations: 12 kB / 427.8 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-05/0.5567, allocations: 7.953 kB / 427.8 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.5568, allocations: 7.922 kB / 427.8 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.5568, allocations: 4 kB / 427.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.5568, allocations: 0 / 427.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004395/0.5573, allocations: 292.1 kB / 428.1 MB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.746e-05/0.5573, allocations: 88.97 kB / 428.2 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.5574, allocations: 11.81 kB / 428.2 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.5575, allocations: 7.875 kB / 428.2 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.5576, allocations: 23.7 kB / 428.2 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.5577, allocations: 12 kB / 428.2 MB, free: 9.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.247e-05/0.5578, allocations: 107.5 kB / 428.3 MB, free: 9.215 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5578, allocations: 0 / 428.3 MB, free: 9.215 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000435/0.5582, allocations: 43.88 kB / 428.4 MB, free: 9.18 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,greaterEqual.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.0008231/0.5591, allocations: 0.9139 MB / 429.3 MB, free: 8.273 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004753/0.5596, allocations: 173.9 kB / 429.5 MB, free: 8.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5596, allocations: 3.938 kB / 429.5 MB, free: 8.141 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001974/0.5598, allocations: 85.61 kB / 429.6 MB, free: 8.078 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.5601, allocations: 11.56 kB / 429.6 MB, free: 8.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009785/0.5611, allocations: 327.1 kB / 429.9 MB, free: 7.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.5614, allocations: 0.7404 MB / 430.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.5616, allocations: 62.84 kB / 430.7 MB, free: 6.957 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5616, allocations: 0 / 430.7 MB, free: 6.957 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.61/3.171, allocations: 3.113 MB / 433.8 MB, free: 3.879 MB / 346.7 MB