Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.828/1.828, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.308e-05/2.311e-05, allocations: 0 / 255.4 MB, free: 2.703 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07602/0.07606, allocations: 44.5 MB / 299.9 MB, free: 6.137 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3398/0.4159, allocations: 71.42 MB / 371.3 MB, free: 21.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003572/0.4163, allocations: 66.52 kB / 371.4 MB, free: 21.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02198/0.4383, allocations: 2.95 MB / 374.3 MB, free: 21.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.4384, allocations: 0 / 374.3 MB, free: 21.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.029e-05/0.4384, allocations: 5.625 kB / 374.3 MB, free: 21.3 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.001039/0.4395, allocations: 435.5 kB / 374.7 MB, free: 20.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.222e-05/0.4396, allocations: 12.05 kB / 374.7 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.4398, allocations: 24 kB / 374.8 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000503/0.4403, allocations: 234.3 kB / 375 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.932e-05/0.4404, allocations: 23.22 kB / 375 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.4406, allocations: 30.05 kB / 375.1 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.4417, allocations: 254.8 kB / 375.3 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.4417, allocations: 1.828 kB / 375.3 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.455e-05/0.4418, allocations: 10.28 kB / 375.3 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.4419, allocations: 5.344 kB / 375.3 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008438/0.4427, allocations: 159.7 kB / 375.5 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.4452, allocations: 0.9442 MB / 376.4 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006859/0.4459, allocations: 150.1 kB / 376.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003328/0.4463, allocations: 82.09 kB / 376.6 MB, free: 19.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.4463, allocations: 7.297 kB / 376.7 MB, free: 19.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000442/0.4468, allocations: 107.3 kB / 376.8 MB, free: 19.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 6.327e-06/0.4468, allocations: 0 / 376.8 MB, free: 19.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008411/0.4477, allocations: 161.7 kB / 376.9 MB, free: 19.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.039e-05/0.4478, allocations: 55.5 kB / 377 MB, free: 19.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.4481, allocations: 141.9 kB / 377.1 MB, free: 19.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.959e-05/0.4482, allocations: 42.39 kB / 377.2 MB, free: 19.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.4483, allocations: 139.5 kB / 377.3 MB, free: 19.51 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.4485, allocations: 57.84 kB / 377.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.4485, allocations: 8.406 kB / 377.4 MB, free: 19.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4487, allocations: 323.4 kB / 377.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003631/0.449, allocations: 61.61 kB / 377.7 MB, free: 19.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/0.4495, allocations: 137 kB / 377.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003773/0.4499, allocations: 68.08 kB / 377.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.682e-06/0.4499, allocations: 1.406 kB / 377.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001087/0.451, allocations: 246.1 kB / 378.2 MB, free: 19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.4511, allocations: 8.656 kB / 378.2 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.4512, allocations: 2.25 kB / 378.2 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.425e-05/0.4512, allocations: 4.719 kB / 378.2 MB, free: 19 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003686/0.4516, allocations: 34 kB / 378.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.857e-05/0.4517, allocations: 8.281 kB / 378.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.452, allocations: 16.75 kB / 378.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.84e-05/0.4521, allocations: 10.41 kB / 378.3 MB, free: 18.99 MB / 314.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: 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,greaterEqual.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.00018/0.4523, allocations: 134.1 kB / 378.4 MB, free: 18.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.807e-05/0.4524, allocations: 17.8 kB / 378.4 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008539/0.4533, allocations: 187.9 kB / 378.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.4533, allocations: 3.156 kB / 378.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.4533, allocations: 0 / 378.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.4534, allocations: 2.891 kB / 378.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.4552, allocations: 0.58 MB / 379.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.601e-06/0.4552, allocations: 1.219 kB / 379.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002062/0.4554, allocations: 21.86 kB / 379.2 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.4555, allocations: 5.562 kB / 379.2 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.526e-05/0.4555, allocations: 5.125 kB / 379.2 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.4556, allocations: 1.344 kB / 379.2 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.042e-06/0.4556, allocations: 0 / 379.2 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007446/0.4563, allocations: 274.4 kB / 379.5 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.576e-05/0.4564, allocations: 94.05 kB / 379.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.4565, allocations: 5.531 kB / 379.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004258/0.457, allocations: 9.891 kB / 379.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.4572, allocations: 25.67 kB / 379.6 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.226e-05/0.4572, allocations: 10.03 kB / 379.6 MB, free: 18.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001031/0.4574, allocations: 103.4 kB / 379.7 MB, free: 18.12 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.147e-06/0.4574, allocations: 0.9688 kB / 379.7 MB, free: 18.12 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008743/0.4583, allocations: 43.72 kB / 379.8 MB, free: 18.12 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 (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: 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.0002238/0.4585, allocations: 114.5 kB / 379.9 MB, free: 18.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006977/0.4593, allocations: 171.6 kB / 380 MB, free: 18.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.891e-06/0.4593, allocations: 1.5 kB / 380 MB, free: 18.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.4596, allocations: 76.47 kB / 380.1 MB, free: 18 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.4601, allocations: 22.94 kB / 380.1 MB, free: 18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009513/0.4611, allocations: 227.5 kB / 380.4 MB, free: 17.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.4614, allocations: 0.7414 MB / 381.1 MB, free: 17.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002126/0.4616, allocations: 20.33 kB / 381.1 MB, free: 17.2 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.4618, allocations: 23.3 kB / 381.1 MB, free: 17.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.981e-06/0.4618, allocations: 4 kB / 381.1 MB, free: 17.18 MB / 314.7 MB Notification: Performance of Templates: time 0.01064/0.4725, allocations: 1.651 MB / 382.8 MB, free: 17.04 MB / 314.7 MB