Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.064/1.064, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.948e-05/2.96e-05, allocations: 7.984 kB / 151.4 MB, free: 15.63 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1836/0.1837, allocations: 25.15 MB / 176.5 MB, free: 12 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09394/0.2777, allocations: 33.77 MB / 210.3 MB, free: 15.71 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.2779, allocations: 67.95 kB / 210.4 MB, free: 15.65 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01074/0.2887, allocations: 2.902 MB / 213.3 MB, free: 12.73 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.127e-06/0.2887, allocations: 0 / 213.3 MB, free: 12.73 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.641e-05/0.2887, allocations: 4.875 kB / 213.3 MB, free: 12.72 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.0006252/0.2894, allocations: 423.1 kB / 213.7 MB, free: 12.27 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.2894, allocations: 12.03 kB / 213.7 MB, free: 12.25 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.556e-05/0.2895, allocations: 35.67 kB / 213.7 MB, free: 12.22 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.2898, allocations: 230.7 kB / 214 MB, free: 11.95 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.902e-05/0.2899, allocations: 16.56 kB / 214 MB, free: 11.94 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.29, allocations: 31.98 kB / 214 MB, free: 11.91 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005546/0.2905, allocations: 252.9 kB / 214.3 MB, free: 11.64 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.539e-05/0.2906, allocations: 3.938 kB / 214.3 MB, free: 11.63 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.36e-05/0.2906, allocations: 16 kB / 214.3 MB, free: 11.62 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.2906, allocations: 7.953 kB / 214.3 MB, free: 11.61 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.2911, allocations: 152.8 kB / 214.4 MB, free: 11.46 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.2925, allocations: 0.9289 MB / 215.4 MB, free: 10.46 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.2929, allocations: 159.1 kB / 215.5 MB, free: 10.29 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.2931, allocations: 73.22 kB / 215.6 MB, free: 10.22 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.2931, allocations: 4.188 kB / 215.6 MB, free: 10.21 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002389/0.2933, allocations: 107.4 kB / 215.7 MB, free: 10.1 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 3.14e-06/0.2934, allocations: 7.875 kB / 215.7 MB, free: 10.09 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004026/0.2938, allocations: 153 kB / 215.9 MB, free: 9.938 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.144e-05/0.2939, allocations: 71.25 kB / 215.9 MB, free: 9.855 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.294, allocations: 139.5 kB / 216.1 MB, free: 9.715 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.346e-05/0.2941, allocations: 33.7 kB / 216.1 MB, free: 9.676 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.2942, allocations: 206.8 kB / 216.3 MB, free: 9.473 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-05/0.2943, allocations: 55.25 kB / 216.4 MB, free: 9.418 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.742e-05/0.2943, allocations: 4 kB / 216.4 MB, free: 9.414 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2945, allocations: 330.8 kB / 216.7 MB, free: 9.082 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.2947, allocations: 60.64 kB / 216.7 MB, free: 9.02 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.2949, allocations: 134.5 kB / 216.9 MB, free: 8.859 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001907/0.2951, allocations: 67.95 kB / 216.9 MB, free: 8.793 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.471e-06/0.2952, allocations: 4 kB / 216.9 MB, free: 8.789 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005346/0.2957, allocations: 229.2 kB / 217.2 MB, free: 8.559 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.2957, allocations: 12.22 kB / 217.2 MB, free: 8.547 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.622e-06/0.2958, allocations: 8 kB / 217.2 MB, free: 8.539 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2958, allocations: 4 kB / 217.2 MB, free: 8.535 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.296, allocations: 35.92 kB / 217.2 MB, free: 8.5 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.296, allocations: 4 kB / 217.2 MB, free: 8.496 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.2962, allocations: 23.83 kB / 217.2 MB, free: 8.473 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-05/0.2963, allocations: 12 kB / 217.3 MB, free: 8.461 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,SetBoolean1.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.0001865/0.2965, allocations: 132 kB / 217.4 MB, free: 8.328 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.144e-05/0.2965, allocations: 15.84 kB / 217.4 MB, free: 8.312 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004451/0.297, allocations: 186.3 kB / 217.6 MB, free: 8.121 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.455e-06/0.297, allocations: 4 kB / 217.6 MB, free: 8.117 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.304e-06/0.297, allocations: 0 / 217.6 MB, free: 8.117 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.352e-06/0.297, allocations: 0 / 217.6 MB, free: 8.117 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.298, allocations: 0.5836 MB / 218.2 MB, free: 7.473 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.621e-06/0.2981, allocations: 4 kB / 218.2 MB, free: 7.469 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.2982, allocations: 15.98 kB / 218.2 MB, free: 7.453 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.76e-06/0.2982, allocations: 3.938 kB / 218.2 MB, free: 7.449 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.2982, allocations: 4 kB / 218.2 MB, free: 7.445 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.516e-06/0.2982, allocations: 7.938 kB / 218.2 MB, free: 7.438 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.2982, allocations: 0 / 218.2 MB, free: 7.438 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004107/0.2987, allocations: 267.7 kB / 218.5 MB, free: 7.16 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.523e-05/0.2987, allocations: 92.91 kB / 218.6 MB, free: 7.051 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.2988, allocations: 8 kB / 218.6 MB, free: 7.043 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.2989, allocations: 11.98 kB / 218.6 MB, free: 7.031 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.118e-05/0.299, allocations: 19.97 kB / 218.6 MB, free: 7.012 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.2991, allocations: 12 kB / 218.6 MB, free: 7 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.54e-05/0.2992, allocations: 100.6 kB / 218.7 MB, free: 6.902 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.57e-07/0.2992, allocations: 0 / 218.7 MB, free: 6.902 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004069/0.2996, allocations: 40 kB / 218.8 MB, free: 6.863 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,SetBoolean1.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.0001817/0.2998, allocations: 119 kB / 218.9 MB, free: 6.738 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004143/0.3002, allocations: 179.8 kB / 219 MB, free: 6.562 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.889e-06/0.3002, allocations: 0 / 219 MB, free: 6.562 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.3004, allocations: 67.94 kB / 219.1 MB, free: 6.496 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.3007, allocations: 27.91 kB / 219.1 MB, free: 6.469 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005711/0.3013, allocations: 248.8 kB / 219.4 MB, free: 6.203 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.3017, allocations: 0.7487 MB / 220.1 MB, free: 5.422 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.832e-05/0.3018, allocations: 19.44 kB / 220.1 MB, free: 5.402 MB / 186.7 MB Notification: Performance of SimCode: time 4.669e-06/0.3018, allocations: 0 / 220.1 MB, free: 5.402 MB / 186.7 MB Notification: Performance of Templates: time 0.005131/0.307, allocations: 2.295 MB / 222.4 MB, free: 3.109 MB / 186.7 MB