Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.928/1.928, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.077e-05, allocations: 7.984 kB / 292.1 MB, free: 8.844 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09632/0.09637, allocations: 50.42 MB / 342.5 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3517/0.4481, allocations: 76.28 MB / 418.8 MB, free: 1.859 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.4483, allocations: 63.91 kB / 418.9 MB, free: 1.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01033/0.4586, allocations: 2.898 MB / 421.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.299e-06/0.4587, allocations: 0 / 421.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.4587, allocations: 7.844 kB / 421.8 MB, free: 15.29 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.0006408/0.4594, allocations: 437.5 kB / 422.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.4594, allocations: 8.031 kB / 422.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.4595, allocations: 27.41 kB / 422.2 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.4598, allocations: 211.9 kB / 422.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.4599, allocations: 22.62 kB / 422.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.199e-05/0.4599, allocations: 26.81 kB / 422.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005117/0.4605, allocations: 247.6 kB / 422.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.4605, allocations: 3.938 kB / 422.8 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.4605, allocations: 5.25 kB / 422.8 MB, free: 14.35 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.4606, allocations: 8 kB / 422.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/0.4609, allocations: 145.8 kB / 422.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.4622, allocations: 0.6924 MB / 423.6 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.4626, allocations: 165.2 kB / 423.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.4628, allocations: 79.52 kB / 423.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.044e-05/0.4628, allocations: 192 / 423.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.4631, allocations: 113.3 kB / 423.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.86e-06/0.4631, allocations: 0 / 423.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000406/0.4635, allocations: 162.3 kB / 424.1 MB, free: 13.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.4636, allocations: 59.39 kB / 424.2 MB, free: 13.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.4638, allocations: 141.8 kB / 424.3 MB, free: 13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.4638, allocations: 36.89 kB / 424.3 MB, free: 12.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.464, allocations: 193.5 kB / 424.5 MB, free: 12.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.346e-05/0.4641, allocations: 62.92 kB / 424.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.4641, allocations: 3.625 kB / 424.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.4643, allocations: 328.4 kB / 424.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4644, allocations: 62.84 kB / 425 MB, free: 12.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.4647, allocations: 123.8 kB / 425.1 MB, free: 12.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001774/0.4649, allocations: 72.27 kB / 425.2 MB, free: 12.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.42e-06/0.4649, allocations: 4 kB / 425.2 MB, free: 12.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004977/0.4654, allocations: 218.2 kB / 425.4 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.4654, allocations: 8 kB / 425.4 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.77e-06/0.4654, allocations: 0 / 425.4 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.4655, allocations: 4 kB / 425.4 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.4656, allocations: 27.92 kB / 425.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.4657, allocations: 11.88 kB / 425.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.4658, allocations: 31.48 kB / 425.5 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.766e-05/0.4659, allocations: 8 kB / 425.5 MB, free: 11.93 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.0001437/0.466, allocations: 139.3 kB / 425.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.4661, allocations: 7.906 kB / 425.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004406/0.4665, allocations: 191.7 kB / 425.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.255e-06/0.4666, allocations: 0 / 425.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.406e-06/0.4666, allocations: 0 / 425.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.806e-06/0.4666, allocations: 4 kB / 425.8 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009926/0.4676, allocations: 0.5716 MB / 426.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.4676, allocations: 4 kB / 426.4 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.4677, allocations: 15.94 kB / 426.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.776e-06/0.4678, allocations: 0 / 426.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.4678, allocations: 11.67 kB / 426.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.234e-06/0.4678, allocations: 0 / 426.4 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.953e-06/0.4678, allocations: 7.953 kB / 426.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004136/0.4682, allocations: 266.8 kB / 426.7 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.921e-05/0.4683, allocations: 92.94 kB / 426.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.993e-05/0.4684, allocations: 3.75 kB / 426.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.4685, allocations: 11.81 kB / 426.8 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.4686, allocations: 27.41 kB / 426.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.4687, allocations: 12 kB / 426.8 MB, free: 10.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.965e-05/0.4687, allocations: 95.34 kB / 426.9 MB, free: 10.58 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.4688, allocations: 4 kB / 426.9 MB, free: 10.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003927/0.4692, allocations: 43.73 kB / 427 MB, free: 10.54 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.0001725/0.4694, allocations: 106.6 kB / 427.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.4698, allocations: 169.4 kB / 427.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.804e-06/0.4698, allocations: 448 / 427.2 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.47, allocations: 82.86 kB / 427.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.4702, allocations: 15.75 kB / 427.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005957/0.4708, allocations: 260 kB / 427.6 MB, free: 9.988 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004366/0.4713, allocations: 0.7326 MB / 428.3 MB, free: 9.23 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.48e-05/0.4714, allocations: 27.44 kB / 428.3 MB, free: 9.207 MB / 346.7 MB Notification: Performance of SimCode: time 1.355e-06/0.4714, allocations: 0 / 428.3 MB, free: 9.207 MB / 346.7 MB Notification: Performance of Templates: time 0.005159/0.4766, allocations: 2.274 MB / 430.6 MB, free: 6.957 MB / 346.7 MB