Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.723/1.723, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.275e-05/2.282e-05, allocations: 0 / 255.4 MB, free: 2.727 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07517/0.07521, allocations: 44.51 MB / 299.9 MB, free: 6.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3102/0.3854, allocations: 70.79 MB / 370.7 MB, free: 21.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3857, allocations: 62.67 kB / 370.7 MB, free: 21.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009758/0.3955, allocations: 2.786 MB / 373.5 MB, free: 20.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.751e-06/0.3955, allocations: 5.859 kB / 373.5 MB, free: 20.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.3955, allocations: 5.875 kB / 373.5 MB, free: 20.98 MB / 314.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.0004884/0.396, allocations: 430.2 kB / 373.9 MB, free: 20.6 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3961, allocations: 9.531 kB / 374 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.3961, allocations: 24.67 kB / 374 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.3964, allocations: 218.5 kB / 374.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.3964, allocations: 26.41 kB / 374.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.333e-05/0.3965, allocations: 28.98 kB / 374.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.397, allocations: 222.4 kB / 374.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.397, allocations: 1.188 kB / 374.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.3971, allocations: 6.047 kB / 374.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3971, allocations: 5.156 kB / 374.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003823/0.3975, allocations: 164.5 kB / 374.6 MB, free: 20.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.3985, allocations: 0.6786 MB / 375.3 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003526/0.3989, allocations: 167 kB / 375.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.3991, allocations: 75.06 kB / 375.5 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.3991, allocations: 6.984 kB / 375.6 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.3993, allocations: 110.9 kB / 375.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.087e-06/0.3993, allocations: 0 / 375.7 MB, free: 19.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004032/0.3997, allocations: 165.1 kB / 375.8 MB, free: 19.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.3998, allocations: 61.56 kB / 375.9 MB, free: 19.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3999, allocations: 138.1 kB / 376 MB, free: 19.62 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.3999, allocations: 38.89 kB / 376.1 MB, free: 19.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.447e-05/0.4, allocations: 127.1 kB / 376.2 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.654e-05/0.4001, allocations: 60.31 kB / 376.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.468e-05/0.4001, allocations: 5.375 kB / 376.2 MB, free: 19.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.998e-05/0.4002, allocations: 326.4 kB / 376.6 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.4004, allocations: 59.78 kB / 376.6 MB, free: 19.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.4005, allocations: 124 kB / 376.7 MB, free: 19.06 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001608/0.4007, allocations: 67.5 kB / 376.8 MB, free: 19.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4007, allocations: 5.344 kB / 376.8 MB, free: 19.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004919/0.4012, allocations: 232.6 kB / 377 MB, free: 18.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4013, allocations: 8.344 kB / 377.1 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.906e-06/0.4013, allocations: 2.156 kB / 377.1 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.4013, allocations: 3.688 kB / 377.1 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.4015, allocations: 35.3 kB / 377.1 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.4015, allocations: 4.156 kB / 377.1 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.4016, allocations: 20.83 kB / 377.1 MB, free: 18.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.4017, allocations: 11.64 kB / 377.1 MB, free: 18.98 MB / 314.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 8.901e-05/0.4018, allocations: 132.4 kB / 377.3 MB, free: 18.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.4018, allocations: 12.94 kB / 377.3 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004007/0.4023, allocations: 191.5 kB / 377.5 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.03e-06/0.4023, allocations: 6.594 kB / 377.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.723e-06/0.4023, allocations: 5.141 kB / 377.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.4023, allocations: 1.875 kB / 377.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008285/0.4031, allocations: 0.5577 MB / 378 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.495e-06/0.4032, allocations: 0 / 378 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.825e-05/0.4033, allocations: 15.17 kB / 378 MB, free: 18.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.218e-06/0.4033, allocations: 9.141 kB / 378 MB, free: 18.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.4033, allocations: 10.55 kB / 378.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.073e-06/0.4033, allocations: 1.125 kB / 378.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.678e-06/0.4034, allocations: 0 / 378.1 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003527/0.4037, allocations: 274 kB / 378.3 MB, free: 18.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.149e-05/0.4038, allocations: 94.25 kB / 378.4 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.251e-05/0.4038, allocations: 13.94 kB / 378.4 MB, free: 18.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.4039, allocations: 15.19 kB / 378.4 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.066e-05/0.404, allocations: 22.61 kB / 378.5 MB, free: 18.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.4041, allocations: 6.438 kB / 378.5 MB, free: 18.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.066e-05/0.4041, allocations: 95.8 kB / 378.6 MB, free: 18.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.4042, allocations: 0 / 378.6 MB, free: 18.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004036/0.4046, allocations: 46.47 kB / 378.6 MB, free: 18.14 MB / 314.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.0001355/0.4047, allocations: 110.6 kB / 378.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000388/0.4051, allocations: 170.9 kB / 378.9 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.191e-06/0.4051, allocations: 0 / 378.9 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.4053, allocations: 81.53 kB / 379 MB, free: 18.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000232/0.4056, allocations: 20.34 kB / 379 MB, free: 18.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004886/0.4061, allocations: 223.2 kB / 379.2 MB, free: 17.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.4063, allocations: 0.7367 MB / 379.9 MB, free: 17.23 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.4064, allocations: 23.28 kB / 380 MB, free: 17.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.318e-05/0.4065, allocations: 20 kB / 380 MB, free: 17.21 MB / 314.7 MB Notification: Performance of SimCode: time 1.429e-06/0.4065, allocations: 0 / 380 MB, free: 17.21 MB / 314.7 MB Notification: Performance of Templates: time 0.005918/0.4124, allocations: 1.662 MB / 381.6 MB, free: 17.07 MB / 314.7 MB