Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.61e-05, allocations: 0 / 255.3 MB, free: 3.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07483/0.07488, allocations: 44.5 MB / 299.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3591/0.434, allocations: 71.43 MB / 371.3 MB, free: 21.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.4342, allocations: 65.47 kB / 371.3 MB, free: 21.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01057/0.4448, allocations: 2.928 MB / 374.3 MB, free: 20.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.937e-06/0.4449, allocations: 0 / 374.3 MB, free: 20.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.623e-05/0.4449, allocations: 9.5 kB / 374.3 MB, free: 20.97 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.0004868/0.4454, allocations: 432.7 kB / 374.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.4454, allocations: 10.41 kB / 374.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.485e-05/0.4455, allocations: 18.69 kB / 374.7 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002287/0.4458, allocations: 237.3 kB / 375 MB, free: 20.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/0.4458, allocations: 26.83 kB / 375 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.4459, allocations: 27.58 kB / 375 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005246/0.4464, allocations: 259 kB / 375.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.4464, allocations: 0 / 375.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.4465, allocations: 13.22 kB / 375.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.4465, allocations: 5.656 kB / 375.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003782/0.4469, allocations: 162.7 kB / 375.4 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.4481, allocations: 0.9453 MB / 376.4 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003165/0.4484, allocations: 142.8 kB / 376.5 MB, free: 19.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.4486, allocations: 79.02 kB / 376.6 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.4486, allocations: 4.375 kB / 376.6 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.4488, allocations: 111.7 kB / 376.7 MB, free: 19.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.16e-06/0.4488, allocations: 1.031 kB / 376.7 MB, free: 19.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003811/0.4492, allocations: 160.7 kB / 376.9 MB, free: 19.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.4493, allocations: 55.97 kB / 376.9 MB, free: 19.42 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.4494, allocations: 142.9 kB / 377.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.4494, allocations: 34.08 kB / 377.1 MB, free: 19.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.788e-05/0.4495, allocations: 206.9 kB / 377.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.632e-05/0.4496, allocations: 55.11 kB / 377.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.628e-05/0.4496, allocations: 4.469 kB / 377.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.879e-05/0.4497, allocations: 333.1 kB / 377.7 MB, free: 18.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.4499, allocations: 59.56 kB / 377.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002005/0.4501, allocations: 126.7 kB / 377.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001714/0.4503, allocations: 69.48 kB / 377.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.695e-06/0.4503, allocations: 0 / 377.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004833/0.4508, allocations: 250.4 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.4508, allocations: 5.812 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.335e-06/0.4508, allocations: 1.594 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.4509, allocations: 5.5 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.451, allocations: 34.25 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.4511, allocations: 4.422 kB / 378.2 MB, free: 18.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.4512, allocations: 19.59 kB / 378.3 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.4513, allocations: 16.27 kB / 378.3 MB, free: 18.6 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,SetBoolean1.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.984e-05/0.4514, allocations: 139.3 kB / 378.4 MB, free: 18.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.212e-05/0.4514, allocations: 14.23 kB / 378.4 MB, free: 18.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003984/0.4518, allocations: 183.3 kB / 378.6 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.247e-06/0.4519, allocations: 2.281 kB / 378.6 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.202e-06/0.4519, allocations: 1.062 kB / 378.6 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.298e-06/0.4519, allocations: 2.062 kB / 378.6 MB, free: 18.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008227/0.4527, allocations: 0.5896 MB / 379.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.672e-06/0.4527, allocations: 0 / 379.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.954e-05/0.4529, allocations: 21.08 kB / 379.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.517e-06/0.4529, allocations: 1.125 kB / 379.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.4529, allocations: 10.03 kB / 379.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.045e-06/0.4529, allocations: 1.344 kB / 379.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.778e-06/0.4529, allocations: 0 / 379.2 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.4533, allocations: 278.1 kB / 379.5 MB, free: 17.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.153e-05/0.4533, allocations: 87.56 kB / 379.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.4534, allocations: 5.141 kB / 379.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.4535, allocations: 8.797 kB / 379.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.4536, allocations: 23.23 kB / 379.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.4537, allocations: 8.531 kB / 379.6 MB, free: 17.81 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.604e-05/0.4537, allocations: 94.86 kB / 379.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.93e-07/0.4537, allocations: 1.219 kB / 379.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004258/0.4542, allocations: 45.53 kB / 379.8 MB, free: 17.73 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,SetBoolean1.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.0001392/0.4543, allocations: 113.8 kB / 379.9 MB, free: 17.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003712/0.4547, allocations: 162.6 kB / 380 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.642e-06/0.4547, allocations: 1.281 kB / 380 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000162/0.4549, allocations: 77.83 kB / 380.1 MB, free: 17.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.4552, allocations: 22.7 kB / 380.1 MB, free: 17.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005149/0.4557, allocations: 259.7 kB / 380.4 MB, free: 17.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.4559, allocations: 0.7389 MB / 381.1 MB, free: 16.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.679e-05/0.456, allocations: 21.75 kB / 381.2 MB, free: 16.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.422e-06/0.456, allocations: 0 / 381.2 MB, free: 16.77 MB / 314.7 MB Notification: Performance of Templates: time 0.004969/0.461, allocations: 2.299 MB / 383.5 MB, free: 16.56 MB / 314.7 MB