Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 0.992/0.992, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.898e-05, allocations: 3.984 kB / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1689/0.169, allocations: 25.16 MB / 176.5 MB, free: 15.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06687/0.2359, allocations: 33.78 MB / 210.3 MB, free: 15.67 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.2362, allocations: 59.98 kB / 210.4 MB, free: 15.61 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01771/0.254, allocations: 2.93 MB / 213.3 MB, free: 12.66 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.013e-06/0.254, allocations: 0 / 213.3 MB, free: 12.66 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.634e-05/0.2541, allocations: 4.875 kB / 213.3 MB, free: 12.66 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0009916/0.2551, allocations: 443 kB / 213.7 MB, free: 12.19 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.2552, allocations: 8.031 kB / 213.8 MB, free: 12.18 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2553, allocations: 27.67 kB / 213.8 MB, free: 12.15 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.2559, allocations: 222.8 kB / 214 MB, free: 11.89 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.823e-05/0.256, allocations: 20.56 kB / 214 MB, free: 11.88 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.764e-05/0.2561, allocations: 24 kB / 214 MB, free: 11.85 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009368/0.257, allocations: 256.9 kB / 214.3 MB, free: 11.58 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.2571, allocations: 4 kB / 214.3 MB, free: 11.57 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.22e-05/0.2572, allocations: 11.98 kB / 214.3 MB, free: 11.56 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.2572, allocations: 11.95 kB / 214.3 MB, free: 11.55 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007433/0.258, allocations: 160.8 kB / 214.5 MB, free: 11.39 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002359/0.2603, allocations: 0.9406 MB / 215.4 MB, free: 10.38 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000588/0.261, allocations: 143.2 kB / 215.6 MB, free: 10.23 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002847/0.2613, allocations: 73.31 kB / 215.6 MB, free: 10.16 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.077e-05/0.2613, allocations: 192 / 215.6 MB, free: 10.16 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003973/0.2618, allocations: 119.3 kB / 215.7 MB, free: 10.03 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 8.118e-06/0.2618, allocations: 4 kB / 215.8 MB, free: 10.02 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006967/0.2625, allocations: 160.9 kB / 215.9 MB, free: 9.863 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.65e-05/0.2626, allocations: 67.25 kB / 216 MB, free: 9.785 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/0.2629, allocations: 142.5 kB / 216.1 MB, free: 9.641 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.263, allocations: 37.69 kB / 216.1 MB, free: 9.598 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.2632, allocations: 206.7 kB / 216.4 MB, free: 9.395 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.2634, allocations: 51.34 kB / 216.4 MB, free: 9.344 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.523e-05/0.2634, allocations: 12 kB / 216.4 MB, free: 9.332 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.2637, allocations: 322.8 kB / 216.7 MB, free: 9.008 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.264, allocations: 64.66 kB / 216.8 MB, free: 8.941 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003977/0.2644, allocations: 134.5 kB / 216.9 MB, free: 8.781 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.2648, allocations: 63.97 kB / 217 MB, free: 8.719 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.25e-06/0.2648, allocations: 0 / 217 MB, free: 8.719 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009867/0.2658, allocations: 245.4 kB / 217.2 MB, free: 8.473 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.041e-05/0.2659, allocations: 4.781 kB / 217.2 MB, free: 8.469 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.2659, allocations: 4 kB / 217.2 MB, free: 8.465 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.747e-05/0.266, allocations: 4 kB / 217.2 MB, free: 8.461 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.2663, allocations: 27.92 kB / 217.3 MB, free: 8.434 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.105e-05/0.2663, allocations: 4 kB / 217.3 MB, free: 8.43 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.2666, allocations: 23.89 kB / 217.3 MB, free: 8.406 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.335e-05/0.2667, allocations: 15.94 kB / 217.3 MB, free: 8.391 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002738/0.267, allocations: 148 kB / 217.5 MB, free: 8.242 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.237e-05/0.2671, allocations: 15.91 kB / 217.5 MB, free: 8.227 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000764/0.2679, allocations: 186.2 kB / 217.6 MB, free: 8.035 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.685e-06/0.2679, allocations: 0 / 217.6 MB, free: 8.035 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.2679, allocations: 3.984 kB / 217.7 MB, free: 8.031 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.632e-06/0.268, allocations: 4 kB / 217.7 MB, free: 8.027 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.2697, allocations: 0.5759 MB / 218.2 MB, free: 7.391 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.944e-06/0.2697, allocations: 0 / 218.2 MB, free: 7.391 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001865/0.2699, allocations: 23.92 kB / 218.3 MB, free: 7.367 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.349e-05/0.27, allocations: 0 / 218.3 MB, free: 7.367 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.27, allocations: 3.938 kB / 218.3 MB, free: 7.363 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.02e-05/0.2701, allocations: 4 kB / 218.3 MB, free: 7.359 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.373e-06/0.2701, allocations: 3.953 kB / 218.3 MB, free: 7.355 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007187/0.2708, allocations: 275.6 kB / 218.5 MB, free: 7.07 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.2709, allocations: 85.02 kB / 218.6 MB, free: 6.969 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.592e-05/0.271, allocations: 4 kB / 218.6 MB, free: 6.965 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000239/0.2713, allocations: 15.98 kB / 218.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.2714, allocations: 19.91 kB / 218.7 MB, free: 6.93 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.716e-05/0.2715, allocations: 11.95 kB / 218.7 MB, free: 6.918 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000141/0.2717, allocations: 104.6 kB / 218.8 MB, free: 6.816 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.284e-06/0.2717, allocations: 0 / 218.8 MB, free: 6.816 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000818/0.2725, allocations: 40 kB / 218.8 MB, free: 6.777 MB / 186.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 (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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0002716/0.2728, allocations: 119 kB / 218.9 MB, free: 6.652 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007317/0.2736, allocations: 175.8 kB / 219.1 MB, free: 6.48 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.335e-06/0.2736, allocations: 0 / 219.1 MB, free: 6.48 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003053/0.2739, allocations: 71.94 kB / 219.2 MB, free: 6.41 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.2744, allocations: 26.84 kB / 219.2 MB, free: 6.387 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009723/0.2754, allocations: 253.4 kB / 219.4 MB, free: 6.109 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006176/0.276, allocations: 0.7404 MB / 220.2 MB, free: 5.34 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001321/0.2762, allocations: 23.44 kB / 220.2 MB, free: 5.316 MB / 186.7 MB Notification: Performance of SimCode: time 1.863e-06/0.2762, allocations: 0 / 220.2 MB, free: 5.316 MB / 186.7 MB Notification: Performance of Templates: time 0.005583/0.2818, allocations: 2.314 MB / 222.5 MB, free: 3 MB / 186.7 MB