Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 2.136/2.136, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.516e-05/6.539e-05, allocations: 4 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09924/0.09935, allocations: 50.41 MB / 342.5 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4212/0.5206, allocations: 76.83 MB / 419.4 MB, free: 1.289 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.5209, allocations: 70.91 kB / 419.4 MB, free: 1.254 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01162/0.5325, allocations: 3.074 MB / 422.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.156e-06/0.5326, allocations: 0 / 422.5 MB, free: 14.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.5326, allocations: 4 kB / 422.5 MB, free: 14.57 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.00069/0.5333, allocations: 446.3 kB / 423 MB, free: 14.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.5334, allocations: 12.03 kB / 423 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.506e-05/0.5335, allocations: 27.72 kB / 423 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003208/0.5338, allocations: 217.9 kB / 423.2 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.618e-05/0.5338, allocations: 23.94 kB / 423.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.5339, allocations: 23.44 kB / 423.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005598/0.5345, allocations: 276.8 kB / 423.5 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5345, allocations: 0 / 423.5 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.5346, allocations: 15.5 kB / 423.5 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.363e-05/0.5346, allocations: 8 kB / 423.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.535, allocations: 151.3 kB / 423.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001539/0.5366, allocations: 0.9563 MB / 424.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000358/0.5369, allocations: 171.2 kB / 424.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.5371, allocations: 77.17 kB / 424.9 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.5372, allocations: 12.11 kB / 424.9 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002904/0.5375, allocations: 139 kB / 425 MB, free: 12.24 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.464e-06/0.5375, allocations: 0 / 425 MB, free: 12.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004542/0.538, allocations: 167.3 kB / 425.2 MB, free: 12.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.77e-05/0.5381, allocations: 85.05 kB / 425.3 MB, free: 12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.5382, allocations: 141 kB / 425.4 MB, free: 11.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/0.5383, allocations: 41.44 kB / 425.5 MB, free: 11.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.5384, allocations: 135.6 kB / 425.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.906e-05/0.5385, allocations: 62.44 kB / 425.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.636e-05/0.5386, allocations: 9.156 kB / 425.7 MB, free: 11.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.5387, allocations: 329.1 kB / 426 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.5389, allocations: 61.88 kB / 426.1 MB, free: 11.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.5392, allocations: 132 kB / 426.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.5394, allocations: 72.39 kB / 426.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.555e-06/0.5394, allocations: 0 / 426.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005341/0.5399, allocations: 240 kB / 426.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.54, allocations: 8 kB / 426.5 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.88e-06/0.54, allocations: 0 / 426.5 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.202e-05/0.54, allocations: 8 kB / 426.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.5402, allocations: 39.48 kB / 426.5 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.51e-05/0.5403, allocations: 7.953 kB / 426.6 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.5404, allocations: 20.12 kB / 426.6 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.632e-05/0.5405, allocations: 19.86 kB / 426.6 MB, free: 10.82 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,greaterEqual.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.0001367/0.5406, allocations: 131 kB / 426.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.5407, allocations: 11.91 kB / 426.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004421/0.5411, allocations: 193.7 kB / 426.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-06/0.5412, allocations: 4 kB / 426.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.001e-06/0.5412, allocations: 0 / 426.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.5412, allocations: 7.938 kB / 426.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.5422, allocations: 0.584 MB / 427.5 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.5423, allocations: 3.984 kB / 427.5 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.5424, allocations: 12 kB / 427.5 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.302e-06/0.5424, allocations: 3.953 kB / 427.5 MB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.5424, allocations: 11.23 kB / 427.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.742e-06/0.5425, allocations: 0 / 427.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.5425, allocations: 3.938 kB / 427.5 MB, free: 9.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004381/0.5429, allocations: 293.2 kB / 427.8 MB, free: 9.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.696e-05/0.543, allocations: 92.95 kB / 427.9 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.5431, allocations: 3.438 kB / 427.9 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.5432, allocations: 11.3 kB / 427.9 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.712e-05/0.5433, allocations: 31.2 kB / 428 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.5433, allocations: 7.188 kB / 428 MB, free: 9.504 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.194e-05/0.5435, allocations: 103.9 kB / 428.1 MB, free: 9.406 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.29e-07/0.5435, allocations: 0 / 428.1 MB, free: 9.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005048/0.544, allocations: 54.45 kB / 428.1 MB, free: 9.363 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,greaterEqual.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.0002098/0.5442, allocations: 112.3 kB / 428.2 MB, free: 9.246 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004241/0.5447, allocations: 171.5 kB / 428.4 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.5447, allocations: 8.188 kB / 428.4 MB, free: 9.113 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001858/0.5449, allocations: 80.98 kB / 428.5 MB, free: 9.055 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.5451, allocations: 11.94 kB / 428.5 MB, free: 9.047 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/0.5458, allocations: 256.4 kB / 428.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.5463, allocations: 0.7405 MB / 429.5 MB, free: 8.043 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001206/0.5464, allocations: 22.06 kB / 429.5 MB, free: 8.023 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8e-05/0.5465, allocations: 19.44 kB / 429.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of SimCode: time 2.027e-06/0.5465, allocations: 0 / 429.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of Templates: time 0.007577/0.5541, allocations: 1.684 MB / 431.2 MB, free: 6.336 MB / 346.7 MB