Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.99e-05/5.011e-05, allocations: 4 kB / 292.1 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.09885, allocations: 50.42 MB / 342.5 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.5154, allocations: 76.91 MB / 419.4 MB, free: 1.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.5156, allocations: 67.03 kB / 419.5 MB, free: 1.199 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01107/0.5267, allocations: 3.053 MB / 422.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5267, allocations: 0 / 422.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.5267, allocations: 8 kB / 422.6 MB, free: 14.53 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.0006263/0.5274, allocations: 438.4 kB / 423 MB, free: 14.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.5274, allocations: 8.031 kB / 423 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.453e-05/0.5275, allocations: 23.81 kB / 423 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.5278, allocations: 226 kB / 423.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.642e-05/0.5279, allocations: 20.12 kB / 423.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.189e-05/0.528, allocations: 31.25 kB / 423.3 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005367/0.5285, allocations: 268.6 kB / 423.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.5285, allocations: 3.938 kB / 423.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.5286, allocations: 11.62 kB / 423.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.514e-06/0.5286, allocations: 4 kB / 423.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.529, allocations: 162.2 kB / 423.7 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.5305, allocations: 0.9578 MB / 424.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003399/0.5308, allocations: 163.9 kB / 424.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.531, allocations: 77.17 kB / 424.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.531, allocations: 8.188 kB / 424.9 MB, free: 12.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.5313, allocations: 135.8 kB / 425.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.866e-06/0.5313, allocations: 0 / 425.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004175/0.5318, allocations: 171.6 kB / 425.2 MB, free: 12.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.686e-05/0.5318, allocations: 85.09 kB / 425.3 MB, free: 11.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.532, allocations: 148 kB / 425.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.337e-05/0.5321, allocations: 37.08 kB / 425.5 MB, free: 11.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001361/0.5322, allocations: 202.6 kB / 425.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.913e-05/0.5323, allocations: 58.69 kB / 425.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.453e-05/0.5323, allocations: 3.938 kB / 425.8 MB, free: 11.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.5325, allocations: 327.1 kB / 426.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001597/0.5327, allocations: 67.3 kB / 426.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.5329, allocations: 130.8 kB / 426.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.5331, allocations: 75.56 kB / 426.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.473e-06/0.5331, allocations: 0 / 426.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005069/0.5336, allocations: 230.7 kB / 426.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.5337, allocations: 8 kB / 426.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.972e-06/0.5337, allocations: 288 / 426.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.5337, allocations: 8 kB / 426.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.5339, allocations: 39.78 kB / 426.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.5339, allocations: 15.83 kB / 426.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.5341, allocations: 19.72 kB / 426.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.5341, allocations: 11.88 kB / 426.7 MB, free: 10.73 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,SetBoolean1.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.0001375/0.5343, allocations: 139.5 kB / 426.8 MB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.863e-05/0.5343, allocations: 15.81 kB / 426.8 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00041/0.5347, allocations: 180.7 kB / 427 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.235e-06/0.5348, allocations: 4 kB / 427 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.931e-06/0.5348, allocations: 4 kB / 427 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.5348, allocations: 3.953 kB / 427 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009757/0.5358, allocations: 0.585 MB / 427.6 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.625e-06/0.5358, allocations: 0 / 427.6 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.5359, allocations: 23.92 kB / 427.6 MB, free: 9.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.467e-06/0.536, allocations: 7.953 kB / 427.6 MB, free: 9.836 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.536, allocations: 7.625 kB / 427.6 MB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.644e-06/0.536, allocations: 4 kB / 427.7 MB, free: 9.828 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.922e-06/0.536, allocations: 0 / 427.7 MB, free: 9.828 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004202/0.5364, allocations: 286.6 kB / 427.9 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.5365, allocations: 100.8 kB / 428 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.5366, allocations: 7.062 kB / 428 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.5367, allocations: 11.92 kB / 428 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.056e-05/0.5368, allocations: 19.91 kB / 428.1 MB, free: 9.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.482e-05/0.5369, allocations: 8 kB / 428.1 MB, free: 9.406 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.749e-05/0.537, allocations: 98.08 kB / 428.2 MB, free: 9.316 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.537, allocations: 0 / 428.2 MB, free: 9.316 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004027/0.5374, allocations: 42.69 kB / 428.2 MB, free: 9.281 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,SetBoolean1.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.0001778/0.5376, allocations: 123.8 kB / 428.3 MB, free: 9.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.538, allocations: 166.2 kB / 428.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.467e-06/0.538, allocations: 0 / 428.5 MB, free: 9.035 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.5382, allocations: 78.44 kB / 428.6 MB, free: 8.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.5384, allocations: 18.11 kB / 428.6 MB, free: 8.969 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005957/0.539, allocations: 264.7 kB / 428.8 MB, free: 8.707 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.5395, allocations: 0.7433 MB / 429.6 MB, free: 7.941 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.446e-05/0.5396, allocations: 23.42 kB / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of SimCode: time 1.595e-06/0.5396, allocations: 0 / 429.6 MB, free: 7.918 MB / 346.7 MB Notification: Performance of Templates: time 0.005268/0.5449, allocations: 2.354 MB / 432 MB, free: 5.59 MB / 346.7 MB