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.903/1.903, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.338e-05/4.355e-05, allocations: 7.078 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07694/0.07701, allocations: 44.5 MB / 299.8 MB, free: 6.645 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3174/0.3945, allocations: 71.43 MB / 371.3 MB, free: 21.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.3947, allocations: 62.42 kB / 371.3 MB, free: 21.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01173/0.4065, allocations: 2.934 MB / 374.3 MB, free: 20.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.995e-06/0.4065, allocations: 4 kB / 374.3 MB, free: 20.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.4066, allocations: 4.906 kB / 374.3 MB, free: 20.54 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.0005408/0.4071, allocations: 430.8 kB / 374.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.4072, allocations: 9.844 kB / 374.7 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.409e-05/0.4073, allocations: 19.83 kB / 374.7 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.4075, allocations: 235.8 kB / 374.9 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.992e-05/0.4076, allocations: 19.22 kB / 375 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.284e-05/0.4076, allocations: 29.19 kB / 375 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.4081, allocations: 257.8 kB / 375.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.4082, allocations: 0 / 375.2 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.4082, allocations: 13.38 kB / 375.3 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.4082, allocations: 6.938 kB / 375.3 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003999/0.4087, allocations: 164 kB / 375.4 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.4099, allocations: 0.9483 MB / 376.4 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.4102, allocations: 146.2 kB / 376.5 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.4104, allocations: 80.25 kB / 376.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.4104, allocations: 12.36 kB / 376.6 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.4106, allocations: 106.6 kB / 376.7 MB, free: 19.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.424e-06/0.4107, allocations: 0 / 376.7 MB, free: 19.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003869/0.4111, allocations: 157.5 kB / 376.9 MB, free: 19.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.4111, allocations: 57.34 kB / 376.9 MB, free: 19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.4112, allocations: 148.8 kB / 377.1 MB, free: 18.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.4113, allocations: 36.83 kB / 377.1 MB, free: 18.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.987e-05/0.4114, allocations: 207.1 kB / 377.3 MB, free: 18.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.489e-05/0.4115, allocations: 58.7 kB / 377.4 MB, free: 18.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.494e-05/0.4115, allocations: 5.781 kB / 377.4 MB, free: 18.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.085e-05/0.4116, allocations: 325.4 kB / 377.7 MB, free: 18.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.4117, allocations: 60.34 kB / 377.7 MB, free: 18.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.4119, allocations: 135.5 kB / 377.9 MB, free: 18.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.4121, allocations: 65.33 kB / 377.9 MB, free: 18.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.634e-06/0.4121, allocations: 4 kB / 377.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004981/0.4126, allocations: 252.7 kB / 378.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.4127, allocations: 7.281 kB / 378.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.084e-06/0.4127, allocations: 2.188 kB / 378.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.4127, allocations: 4.312 kB / 378.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001853/0.4129, allocations: 30.2 kB / 378.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.4129, allocations: 7.5 kB / 378.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.4131, allocations: 26.75 kB / 378.3 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.955e-05/0.4132, allocations: 11.95 kB / 378.3 MB, free: 18.17 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 9.8e-05/0.4133, allocations: 132.1 kB / 378.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.4133, allocations: 14.58 kB / 378.4 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004154/0.4137, allocations: 184.6 kB / 378.6 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.803e-06/0.4138, allocations: 3.188 kB / 378.6 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.996e-06/0.4138, allocations: 0 / 378.6 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.733e-06/0.4138, allocations: 6.891 kB / 378.6 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008884/0.4147, allocations: 0.5837 MB / 379.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.285e-06/0.4147, allocations: 1.438 kB / 379.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.4148, allocations: 21.84 kB / 379.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.179e-06/0.4149, allocations: 2.094 kB / 379.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.4149, allocations: 1.125 kB / 379.2 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.184e-06/0.4149, allocations: 5.406 kB / 379.2 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.078e-06/0.4149, allocations: 4 kB / 379.2 MB, free: 17.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003564/0.4153, allocations: 275.9 kB / 379.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.333e-05/0.4153, allocations: 84.77 kB / 379.6 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.4154, allocations: 10.64 kB / 379.6 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001376/0.4155, allocations: 9.422 kB / 379.6 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.848e-05/0.4156, allocations: 24.8 kB / 379.6 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.4157, allocations: 6.141 kB / 379.6 MB, free: 17.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.902e-05/0.4157, allocations: 100.8 kB / 379.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.27e-07/0.4158, allocations: 0 / 379.7 MB, free: 17.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004477/0.4162, allocations: 40.59 kB / 379.8 MB, free: 17.3 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.0001517/0.4164, allocations: 109.6 kB / 379.9 MB, free: 17.21 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.4168, allocations: 174.2 kB / 380 MB, free: 17.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.88e-06/0.4168, allocations: 64 / 380 MB, free: 17.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.417, allocations: 80.77 kB / 380.1 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.4172, allocations: 20.41 kB / 380.1 MB, free: 17.18 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006162/0.4179, allocations: 252.4 kB / 380.4 MB, free: 17.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006082/0.4185, allocations: 0.7473 MB / 381.1 MB, free: 32.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.953e-05/0.4186, allocations: 20 kB / 381.2 MB, free: 32.33 MB / 330.7 MB Notification: Performance of SimCode: time 1.723e-06/0.4186, allocations: 0 / 381.2 MB, free: 32.33 MB / 330.7 MB Notification: Performance of Templates: time 0.005143/0.4238, allocations: 2.303 MB / 383.5 MB, free: 32.14 MB / 330.7 MB