Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 0.9672/0.9672, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.066e-05/3.079e-05, allocations: 0 / 151.4 MB, free: 15.59 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2363, allocations: 25.14 MB / 176.5 MB, free: 8 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08255/0.3189, allocations: 33.23 MB / 209.8 MB, free: 244 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.3193, allocations: 59.92 kB / 209.8 MB, free: 184 kB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01758/0.3369, allocations: 2.769 MB / 212.6 MB, free: 13.39 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.278e-06/0.3369, allocations: 0 / 212.6 MB, free: 13.39 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.388e-05/0.337, allocations: 4.875 kB / 212.6 MB, free: 13.39 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001003/0.338, allocations: 442.7 kB / 213 MB, free: 12.91 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.156e-05/0.3381, allocations: 8.031 kB / 213 MB, free: 12.9 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.3382, allocations: 31.67 kB / 213.1 MB, free: 12.87 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004633/0.3387, allocations: 211 kB / 213.3 MB, free: 12.62 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.217e-05/0.3388, allocations: 20.44 kB / 213.3 MB, free: 12.61 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.64e-05/0.3389, allocations: 24 kB / 213.3 MB, free: 12.58 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.3401, allocations: 225 kB / 213.5 MB, free: 12.35 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.3401, allocations: 0 / 213.5 MB, free: 12.35 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.601e-05/0.3403, allocations: 8 kB / 213.5 MB, free: 12.34 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.4e-05/0.3403, allocations: 11.95 kB / 213.6 MB, free: 12.33 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3414, allocations: 156.8 kB / 213.7 MB, free: 12.18 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002886/0.3443, allocations: 0.6752 MB / 214.4 MB, free: 11.45 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009545/0.3453, allocations: 167.1 kB / 214.5 MB, free: 11.28 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/0.3458, allocations: 77.27 kB / 214.6 MB, free: 11.2 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.854e-05/0.3458, allocations: 192 / 214.6 MB, free: 11.2 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005931/0.3465, allocations: 119.4 kB / 214.7 MB, free: 11.07 MB / 186.7 MB Notification: Performance of pre-optimization done (n=24): time 6.817e-06/0.3465, allocations: 3.938 kB / 214.7 MB, free: 11.07 MB / 186.7 MB Notification: Performance of matching and sorting (n=24): time 0.001028/0.3476, allocations: 161 kB / 214.9 MB, free: 10.91 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.3477, allocations: 59.27 kB / 215 MB, free: 10.84 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/0.3481, allocations: 137 kB / 215.1 MB, free: 10.69 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.3482, allocations: 33.7 kB / 215.1 MB, free: 10.65 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003031/0.3486, allocations: 198.8 kB / 215.3 MB, free: 10.46 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.3488, allocations: 63.25 kB / 215.4 MB, free: 10.39 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.3488, allocations: 4 kB / 215.4 MB, free: 10.39 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0003915/0.3493, allocations: 326.8 kB / 215.7 MB, free: 10.06 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004025/0.3497, allocations: 60.08 kB / 215.8 MB, free: 10 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005325/0.3503, allocations: 115.5 kB / 215.9 MB, free: 9.863 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004662/0.3508, allocations: 72.39 kB / 215.9 MB, free: 9.793 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.505e-06/0.3508, allocations: 0 / 215.9 MB, free: 9.793 MB / 186.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00102/0.3518, allocations: 229.5 kB / 216.2 MB, free: 9.562 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.3519, allocations: 8 kB / 216.2 MB, free: 9.555 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.035e-06/0.3519, allocations: 0 / 216.2 MB, free: 9.555 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.3519, allocations: 4 kB / 216.2 MB, free: 9.551 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.3521, allocations: 27.92 kB / 216.2 MB, free: 9.523 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.3521, allocations: 4 kB / 216.2 MB, free: 9.52 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.3523, allocations: 23.83 kB / 216.2 MB, free: 9.496 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.3524, allocations: 12 kB / 216.2 MB, free: 9.484 MB / 186.7 MB Warning: Assuming fixed start value for the following 2 variables: transition2.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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: 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.0001939/0.3526, allocations: 143.4 kB / 216.4 MB, free: 9.344 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.3526, allocations: 15.77 kB / 216.4 MB, free: 9.328 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004567/0.3531, allocations: 194.2 kB / 216.6 MB, free: 9.133 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.444e-06/0.3531, allocations: 7.984 kB / 216.6 MB, free: 9.125 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.613e-06/0.3531, allocations: 4 kB / 216.6 MB, free: 9.121 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.768e-06/0.3531, allocations: 0 / 216.6 MB, free: 9.121 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.3542, allocations: 0.5571 MB / 217.2 MB, free: 8.508 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.528e-06/0.3542, allocations: 0 / 217.2 MB, free: 8.508 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3543, allocations: 12 kB / 217.2 MB, free: 8.496 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3543, allocations: 0 / 217.2 MB, free: 8.496 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.3544, allocations: 11.98 kB / 217.2 MB, free: 8.484 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3544, allocations: 3.938 kB / 217.2 MB, free: 8.48 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.695e-06/0.3544, allocations: 0 / 217.2 MB, free: 8.48 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004357/0.3548, allocations: 283.5 kB / 217.5 MB, free: 8.188 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.629e-05/0.3549, allocations: 92.94 kB / 217.6 MB, free: 8.078 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.355, allocations: 4 kB / 217.6 MB, free: 8.074 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.3551, allocations: 8 kB / 217.6 MB, free: 8.066 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.479e-05/0.3552, allocations: 23.95 kB / 217.6 MB, free: 8.043 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.3553, allocations: 8 kB / 217.6 MB, free: 8.035 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.284e-05/0.3554, allocations: 95.78 kB / 217.7 MB, free: 7.941 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.99e-07/0.3554, allocations: 4 kB / 217.7 MB, free: 7.938 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004158/0.3558, allocations: 47.98 kB / 217.7 MB, free: 7.891 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 (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.0001811/0.356, allocations: 115.2 kB / 217.9 MB, free: 7.766 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004255/0.3564, allocations: 167.8 kB / 218 MB, free: 7.602 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.496e-06/0.3565, allocations: 0 / 218 MB, free: 7.602 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.3566, allocations: 75.94 kB / 218.1 MB, free: 7.527 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002472/0.3569, allocations: 25 kB / 218.1 MB, free: 7.504 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005877/0.3575, allocations: 256.1 kB / 218.4 MB, free: 7.227 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004311/0.358, allocations: 0.7287 MB / 219.1 MB, free: 6.469 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.339e-05/0.3581, allocations: 31.38 kB / 219.1 MB, free: 6.438 MB / 186.7 MB Notification: Performance of SimCode: time 1.436e-06/0.3581, allocations: 0 / 219.1 MB, free: 6.438 MB / 186.7 MB Notification: Performance of Templates: time 0.005189/0.3633, allocations: 2.246 MB / 221.4 MB, free: 4.191 MB / 186.7 MB