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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.675e-05, allocations: 0 / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07557/0.07562, allocations: 44.51 MB / 299.9 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3167/0.3923, allocations: 71.42 MB / 371.3 MB, free: 21.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.3926, allocations: 63.92 kB / 371.3 MB, free: 21.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01091/0.4035, allocations: 2.942 MB / 374.3 MB, free: 21.01 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.811e-06/0.4036, allocations: 1.156 kB / 374.3 MB, free: 21.01 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.4036, allocations: 8.344 kB / 374.3 MB, free: 21.01 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.00053/0.4041, allocations: 440.6 kB / 374.7 MB, free: 20.63 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.4042, allocations: 13.28 kB / 374.7 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.4043, allocations: 21.36 kB / 374.7 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.4045, allocations: 228.2 kB / 375 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.4046, allocations: 18.56 kB / 375 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.354e-05/0.4046, allocations: 28.12 kB / 375 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005061/0.4052, allocations: 261.6 kB / 375.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.4052, allocations: 0 / 375.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.4052, allocations: 10.5 kB / 375.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.4053, allocations: 9.688 kB / 375.3 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003986/0.4057, allocations: 158.1 kB / 375.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.4069, allocations: 0.9504 MB / 376.4 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003192/0.4072, allocations: 147 kB / 376.5 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.4074, allocations: 80.05 kB / 376.6 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.4074, allocations: 3.109 kB / 376.6 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.4076, allocations: 110.8 kB / 376.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.928e-06/0.4077, allocations: 0 / 376.7 MB, free: 19.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003836/0.408, allocations: 160 kB / 376.9 MB, free: 19.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.4081, allocations: 56.38 kB / 376.9 MB, free: 19.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.4082, allocations: 140 kB / 377.1 MB, free: 19.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.4083, allocations: 40.22 kB / 377.1 MB, free: 19.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.4084, allocations: 209 kB / 377.3 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.4084, allocations: 64.11 kB / 377.4 MB, free: 19.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-05/0.4085, allocations: 4.844 kB / 377.4 MB, free: 19.12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.777e-05/0.4085, allocations: 324.5 kB / 377.7 MB, free: 18.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.4087, allocations: 58.5 kB / 377.8 MB, free: 18.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.4089, allocations: 131.7 kB / 377.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.4091, allocations: 69.84 kB / 378 MB, free: 18.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.545e-06/0.4091, allocations: 1.188 kB / 378 MB, free: 18.72 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004847/0.4096, allocations: 243.3 kB / 378.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.4096, allocations: 6.344 kB / 378.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.4097, allocations: 1.969 kB / 378.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.4097, allocations: 4.219 kB / 378.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.4099, allocations: 35.62 kB / 378.2 MB, free: 18.65 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.4099, allocations: 13.31 kB / 378.3 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.41, allocations: 23.59 kB / 378.3 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.4101, allocations: 11.41 kB / 378.3 MB, free: 18.63 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 8.991e-05/0.4102, allocations: 135.5 kB / 378.4 MB, free: 18.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.115e-05/0.4102, allocations: 18 kB / 378.4 MB, free: 18.51 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004012/0.4107, allocations: 188 kB / 378.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.4107, allocations: 2.625 kB / 378.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.4107, allocations: 0 / 378.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.345e-06/0.4107, allocations: 7 kB / 378.6 MB, free: 18.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008275/0.4116, allocations: 0.5801 MB / 379.2 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.521e-06/0.4116, allocations: 0 / 379.2 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-05/0.4117, allocations: 17.09 kB / 379.2 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.536e-06/0.4117, allocations: 1.156 kB / 379.2 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.4117, allocations: 12.11 kB / 379.2 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.975e-06/0.4117, allocations: 1.094 kB / 379.2 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.899e-06/0.4118, allocations: 7.938 kB / 379.3 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003463/0.4121, allocations: 272.7 kB / 379.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.127e-05/0.4122, allocations: 85.8 kB / 379.6 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.4122, allocations: 5.031 kB / 379.6 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.4123, allocations: 9.891 kB / 379.6 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.004e-05/0.4124, allocations: 24.14 kB / 379.6 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.4125, allocations: 8.25 kB / 379.6 MB, free: 17.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.906e-05/0.4125, allocations: 106.7 kB / 379.8 MB, free: 17.77 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.4126, allocations: 0 / 379.8 MB, free: 17.77 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004086/0.413, allocations: 46.88 kB / 379.8 MB, free: 17.77 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.0001439/0.4131, allocations: 112.2 kB / 379.9 MB, free: 17.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003804/0.4135, allocations: 167.5 kB / 380.1 MB, free: 17.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.523e-06/0.4135, allocations: 0 / 380.1 MB, free: 17.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.4137, allocations: 82.05 kB / 380.2 MB, free: 17.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.414, allocations: 26.23 kB / 380.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000527/0.4145, allocations: 253.2 kB / 380.4 MB, free: 17.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.4147, allocations: 0.7342 MB / 381.2 MB, free: 16.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.787e-05/0.4148, allocations: 27.08 kB / 381.2 MB, free: 16.8 MB / 314.7 MB Notification: Performance of SimCode: time 1.584e-06/0.4148, allocations: 0 / 381.2 MB, free: 16.8 MB / 314.7 MB Notification: Performance of Templates: time 0.004917/0.4198, allocations: 2.313 MB / 383.5 MB, free: 16.59 MB / 314.7 MB