Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.222/2.222, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.726e-05/5.74e-05, allocations: 10.02 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1226, allocations: 50.42 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3571/0.4797, allocations: 76.22 MB / 419.3 MB, free: 1.961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.4799, allocations: 58.78 kB / 419.3 MB, free: 1.934 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0108/0.4907, allocations: 2.906 MB / 422.3 MB, free: 15.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.372e-06/0.4908, allocations: 0 / 422.3 MB, free: 15.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.4908, allocations: 4 kB / 422.3 MB, free: 15.39 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.0006805/0.4915, allocations: 439.8 kB / 422.7 MB, free: 14.94 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4916, allocations: 8.031 kB / 422.7 MB, free: 14.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.71e-05/0.4916, allocations: 23.72 kB / 422.7 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003098/0.492, allocations: 223.3 kB / 422.9 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.15e-05/0.492, allocations: 17.25 kB / 423 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.4921, allocations: 26.12 kB / 423 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005105/0.4926, allocations: 236.5 kB / 423.2 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.4926, allocations: 7.984 kB / 423.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.4927, allocations: 10.75 kB / 423.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.586e-06/0.4927, allocations: 8 kB / 423.2 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003735/0.4931, allocations: 152.5 kB / 423.4 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.4944, allocations: 0.6895 MB / 424.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.4948, allocations: 159.1 kB / 424.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.495, allocations: 80.33 kB / 424.3 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.495, allocations: 8.172 kB / 424.3 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.4953, allocations: 115.7 kB / 424.4 MB, free: 13.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 6.013e-06/0.4953, allocations: 3.984 kB / 424.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004382/0.4958, allocations: 163.2 kB / 424.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.4958, allocations: 55.41 kB / 424.6 MB, free: 13.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.496, allocations: 135.4 kB / 424.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.4961, allocations: 36.89 kB / 424.8 MB, free: 13.07 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.4962, allocations: 134 kB / 424.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.983e-05/0.4963, allocations: 57.94 kB / 425 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.4963, allocations: 7.688 kB / 425 MB, free: 12.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4965, allocations: 330 kB / 425.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.4966, allocations: 56.47 kB / 425.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.4969, allocations: 132.8 kB / 425.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001693/0.4971, allocations: 63.48 kB / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.776e-06/0.4971, allocations: 0 / 425.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005205/0.4976, allocations: 232.2 kB / 425.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.4976, allocations: 8 kB / 425.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.725e-06/0.4977, allocations: 0 / 425.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.232e-05/0.4977, allocations: 4 kB / 425.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.4979, allocations: 31.91 kB / 425.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/0.4979, allocations: 11.88 kB / 425.9 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.4981, allocations: 22.94 kB / 425.9 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.93e-05/0.4981, allocations: 11.28 kB / 425.9 MB, free: 12.09 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.0001525/0.4983, allocations: 138.5 kB / 426 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.968e-05/0.4984, allocations: 15.81 kB / 426 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.4988, allocations: 185.2 kB / 426.2 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.26e-06/0.4988, allocations: 4 kB / 426.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.495e-06/0.4989, allocations: 0 / 426.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.4989, allocations: 0 / 426.2 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.4999, allocations: 0.5624 MB / 426.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.4999, allocations: 0 / 426.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.5001, allocations: 23.05 kB / 426.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.188e-06/0.5001, allocations: 0 / 426.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.5001, allocations: 2.75 kB / 426.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.862e-06/0.5001, allocations: 4 kB / 426.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.527e-06/0.5001, allocations: 3.953 kB / 426.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004134/0.5006, allocations: 275 kB / 427.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.924e-05/0.5007, allocations: 88.95 kB / 427.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.5007, allocations: 7.438 kB / 427.2 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.5009, allocations: 15.42 kB / 427.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.628e-05/0.501, allocations: 23.36 kB / 427.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.501, allocations: 7.984 kB / 427.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.214e-05/0.5011, allocations: 106.4 kB / 427.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.5011, allocations: 4 kB / 427.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004394/0.5016, allocations: 42.53 kB / 427.4 MB, free: 10.7 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.0001917/0.5018, allocations: 109.7 kB / 427.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004241/0.5022, allocations: 168.7 kB / 427.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5022, allocations: 0 / 427.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001864/0.5024, allocations: 81.42 kB / 427.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002703/0.5027, allocations: 18.55 kB / 427.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006064/0.5033, allocations: 240.2 kB / 428 MB, free: 10.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.5038, allocations: 0.7326 MB / 428.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.5039, allocations: 22.08 kB / 428.7 MB, free: 9.387 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.246e-05/0.504, allocations: 31.23 kB / 428.8 MB, free: 9.363 MB / 346.7 MB Notification: Performance of SimCode: time 2.263e-06/0.5041, allocations: 0 / 428.8 MB, free: 9.363 MB / 346.7 MB Notification: Performance of Templates: time 0.006719/0.5108, allocations: 1.651 MB / 430.4 MB, free: 7.727 MB / 346.7 MB