Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.93/1.93, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.684e-05/3.703e-05, allocations: 0 / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 50.4 MB / 342.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3456/0.4511, allocations: 76.91 MB / 419.4 MB, free: 1.199 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.4513, allocations: 66.64 kB / 419.5 MB, free: 1.164 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01096/0.4623, allocations: 3.071 MB / 422.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.85e-06/0.4624, allocations: 4 kB / 422.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.4624, allocations: 4 kB / 422.6 MB, free: 14.48 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.0006643/0.4631, allocations: 448.4 kB / 423 MB, free: 14.01 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.4631, allocations: 12.03 kB / 423 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.333e-05/0.4632, allocations: 23.72 kB / 423.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.4635, allocations: 219.9 kB / 423.3 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.497e-05/0.4636, allocations: 23.25 kB / 423.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.4637, allocations: 26.88 kB / 423.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005421/0.4642, allocations: 274 kB / 423.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.4642, allocations: 0 / 423.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.4643, allocations: 11 kB / 423.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.4643, allocations: 8 kB / 423.6 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000383/0.4647, allocations: 152.5 kB / 423.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.4662, allocations: 0.9675 MB / 424.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003473/0.4665, allocations: 168 kB / 424.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.4667, allocations: 73.28 kB / 425 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.4668, allocations: 4.188 kB / 425 MB, free: 12.28 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.467, allocations: 141.4 kB / 425.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.658e-06/0.4671, allocations: 0 / 425.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004215/0.4675, allocations: 170.6 kB / 425.3 MB, free: 12.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/0.4676, allocations: 88.34 kB / 425.4 MB, free: 11.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.4677, allocations: 141.2 kB / 425.5 MB, free: 11.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.529e-05/0.4678, allocations: 40.42 kB / 425.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.468, allocations: 204.6 kB / 425.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.513e-05/0.468, allocations: 64.61 kB / 425.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.501e-05/0.4681, allocations: 9.688 kB / 425.8 MB, free: 11.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4682, allocations: 324.5 kB / 426.1 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.4684, allocations: 59.06 kB / 426.2 MB, free: 11.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.4687, allocations: 133.8 kB / 426.3 MB, free: 11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.4688, allocations: 74.39 kB / 426.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.743e-06/0.4689, allocations: 4 kB / 426.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000519/0.4694, allocations: 234.4 kB / 426.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.4694, allocations: 4 kB / 426.6 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.4694, allocations: 4 kB / 426.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.4695, allocations: 11.92 kB / 426.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.4697, allocations: 32.2 kB / 426.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.4697, allocations: 11.89 kB / 426.7 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001288/0.4698, allocations: 15.38 kB / 426.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.4699, allocations: 15.06 kB / 426.7 MB, free: 10.67 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.000136/0.47, allocations: 139.3 kB / 426.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.413e-05/0.4701, allocations: 11.81 kB / 426.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004198/0.4705, allocations: 183.1 kB / 427 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.4705, allocations: 11.98 kB / 427 MB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.768e-06/0.4706, allocations: 3.938 kB / 427 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.669e-06/0.4706, allocations: 3.953 kB / 427.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009847/0.4716, allocations: 0.5783 MB / 427.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.783e-06/0.4716, allocations: 3.938 kB / 427.6 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.4717, allocations: 19.48 kB / 427.7 MB, free: 9.785 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.882e-06/0.4717, allocations: 7.953 kB / 427.7 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.4718, allocations: 11.06 kB / 427.7 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.33e-06/0.4718, allocations: 0 / 427.7 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.4718, allocations: 4 kB / 427.7 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000426/0.4722, allocations: 286.2 kB / 428 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.4723, allocations: 92.88 kB / 428 MB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.4724, allocations: 11.11 kB / 428.1 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.4725, allocations: 10.81 kB / 428.1 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.4726, allocations: 19.53 kB / 428.1 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.4726, allocations: 11.98 kB / 428.1 MB, free: 9.344 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.129e-05/0.4727, allocations: 104 kB / 428.2 MB, free: 9.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.4727, allocations: 0 / 428.2 MB, free: 9.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004012/0.4732, allocations: 43.12 kB / 428.2 MB, free: 9.215 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.0001748/0.4734, allocations: 120.2 kB / 428.4 MB, free: 9.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.4738, allocations: 176.7 kB / 428.5 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.422e-06/0.4738, allocations: 0 / 428.5 MB, free: 8.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.474, allocations: 76.5 kB / 428.6 MB, free: 8.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.4742, allocations: 19.73 kB / 428.6 MB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006051/0.4748, allocations: 267.5 kB / 428.9 MB, free: 8.633 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.4753, allocations: 0.7517 MB / 429.6 MB, free: 7.859 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.4754, allocations: 19.44 kB / 429.7 MB, free: 7.84 MB / 346.7 MB Notification: Performance of SimCode: time 1.377e-06/0.4754, allocations: 0 / 429.7 MB, free: 7.84 MB / 346.7 MB Notification: Performance of Templates: time 0.005418/0.4809, allocations: 2.359 MB / 432 MB, free: 5.504 MB / 346.7 MB