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.912/1.912, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.471e-05/2.479e-05, allocations: 8 kB / 249.6 MB, free: 15.31 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2534, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.3656, allocations: 70.76 MB / 364.9 MB, free: 11.25 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.3659, allocations: 63.91 kB / 364.9 MB, free: 11.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01085/0.3767, allocations: 2.908 MB / 367.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.18e-06/0.3768, allocations: 0 / 367.8 MB, free: 8.262 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.3768, allocations: 7.938 kB / 367.8 MB, free: 8.254 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.0006653/0.3775, allocations: 443.3 kB / 368.3 MB, free: 7.777 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.3775, allocations: 8.031 kB / 368.3 MB, free: 7.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.474e-05/0.3776, allocations: 19.81 kB / 368.3 MB, free: 7.75 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.378, allocations: 226.8 kB / 368.5 MB, free: 7.488 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.378, allocations: 8 kB / 368.5 MB, free: 7.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.308e-05/0.3781, allocations: 16 kB / 368.5 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004181/0.3785, allocations: 149.1 kB / 368.7 MB, free: 7.316 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004974/0.379, allocations: 232.9 kB / 368.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.3791, allocations: 0 / 368.9 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.3791, allocations: 3.984 kB / 368.9 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.734e-06/0.3791, allocations: 4 kB / 368.9 MB, free: 7.062 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.3806, allocations: 0.8934 MB / 369.8 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.381, allocations: 139.2 kB / 370 MB, free: 5.965 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.3812, allocations: 65.23 kB / 370 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.3812, allocations: 8.156 kB / 370 MB, free: 5.891 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.3814, allocations: 103.5 kB / 370.1 MB, free: 5.777 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.498e-06/0.3815, allocations: 0 / 370.1 MB, free: 5.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004258/0.3819, allocations: 157.1 kB / 370.3 MB, free: 5.617 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.382, allocations: 59.39 kB / 370.3 MB, free: 5.547 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.3821, allocations: 139.9 kB / 370.5 MB, free: 5.406 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3822, allocations: 33.7 kB / 370.5 MB, free: 5.367 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.3824, allocations: 202.7 kB / 370.7 MB, free: 5.168 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.811e-05/0.3824, allocations: 67.23 kB / 370.8 MB, free: 5.102 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.196e-05/0.3825, allocations: 0 / 370.8 MB, free: 5.102 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.3826, allocations: 318.8 kB / 371.1 MB, free: 4.781 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.3828, allocations: 56.66 kB / 371.1 MB, free: 4.723 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.383, allocations: 129.4 kB / 371.3 MB, free: 4.566 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.3832, allocations: 65.55 kB / 371.3 MB, free: 4.504 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.956e-06/0.3832, allocations: 0 / 371.3 MB, free: 4.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004809/0.3837, allocations: 209.3 kB / 371.5 MB, free: 4.293 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.3837, allocations: 8.234 kB / 371.5 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3838, allocations: 8 kB / 371.5 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3838, allocations: 4 kB / 371.5 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.384, allocations: 35.92 kB / 371.6 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.384, allocations: 7.938 kB / 371.6 MB, free: 4.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.3842, allocations: 11.89 kB / 371.6 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/0.3842, allocations: 12 kB / 371.6 MB, free: 4.207 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.0001394/0.3844, allocations: 127.8 kB / 371.7 MB, free: 4.074 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.3844, allocations: 11.91 kB / 371.8 MB, free: 4.062 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004589/0.3849, allocations: 174.2 kB / 371.9 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/0.3849, allocations: 11.97 kB / 371.9 MB, free: 3.875 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.877e-06/0.3849, allocations: 3.938 kB / 371.9 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.534e-06/0.385, allocations: 0 / 371.9 MB, free: 3.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000976/0.3859, allocations: 0.5103 MB / 372.4 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.6e-06/0.386, allocations: 7.953 kB / 372.5 MB, free: 3.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.3861, allocations: 19.92 kB / 372.5 MB, free: 3.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.272e-06/0.3861, allocations: 4 kB / 372.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.3861, allocations: 0 / 372.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.043e-06/0.3862, allocations: 4 kB / 372.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.46e-06/0.3862, allocations: 0 / 372.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004276/0.3866, allocations: 259.4 kB / 372.7 MB, free: 3.008 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.839e-05/0.3867, allocations: 88.97 kB / 372.8 MB, free: 2.902 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.3867, allocations: 0 / 372.8 MB, free: 2.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.3869, allocations: 8 kB / 372.8 MB, free: 2.895 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/0.387, allocations: 31.89 kB / 372.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.387, allocations: 4 kB / 372.9 MB, free: 2.859 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.977e-05/0.3871, allocations: 99.22 kB / 373 MB, free: 2.762 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.77e-07/0.3871, allocations: 3.938 kB / 373 MB, free: 2.758 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004344/0.3876, allocations: 43.81 kB / 373 MB, free: 2.715 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.000186/0.3878, allocations: 103.2 kB / 373.1 MB, free: 2.602 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003867/0.3882, allocations: 159.9 kB / 373.3 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.627e-06/0.3882, allocations: 0 / 373.3 MB, free: 2.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.3883, allocations: 71.88 kB / 373.3 MB, free: 2.375 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.3886, allocations: 18.02 kB / 373.4 MB, free: 2.359 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006274/0.3893, allocations: 243.1 kB / 373.6 MB, free: 2.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.3897, allocations: 0.7445 MB / 374.3 MB, free: 1.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.261e-05/0.3898, allocations: 27.42 kB / 374.4 MB, free: 1.293 MB / 314.7 MB Notification: Performance of SimCode: time 1.688e-06/0.3899, allocations: 0 / 374.4 MB, free: 1.293 MB / 314.7 MB Notification: Performance of Templates: time 0.005539/0.3954, allocations: 2.296 MB / 376.7 MB, free: 15 MB / 330.7 MB