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.938/1.938, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.178e-05/2.183e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2554, allocations: 44.5 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3649, allocations: 70.78 MB / 364.9 MB, free: 11.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.3652, allocations: 75.91 kB / 364.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01077/0.376, allocations: 2.869 MB / 367.8 MB, free: 8.277 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.197e-06/0.376, allocations: 0 / 367.8 MB, free: 8.277 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.885e-05/0.3761, allocations: 8 kB / 367.8 MB, free: 8.27 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.0006437/0.3767, allocations: 435.3 kB / 368.3 MB, free: 7.801 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3768, allocations: 8.031 kB / 368.3 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.081e-05/0.3769, allocations: 19.81 kB / 368.3 MB, free: 7.773 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00035/0.3772, allocations: 226.8 kB / 368.5 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.3773, allocations: 11.98 kB / 368.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.3774, allocations: 16 kB / 368.5 MB, free: 7.484 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004008/0.3778, allocations: 149 kB / 368.7 MB, free: 7.336 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.3783, allocations: 225 kB / 368.9 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.3783, allocations: 0 / 368.9 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.3783, allocations: 0 / 368.9 MB, free: 7.098 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.3783, allocations: 8 kB / 368.9 MB, free: 7.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/0.3798, allocations: 0.8934 MB / 369.8 MB, free: 6.137 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003247/0.3801, allocations: 151.1 kB / 369.9 MB, free: 5.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.3803, allocations: 65.17 kB / 370 MB, free: 5.914 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.3803, allocations: 4.188 kB / 370 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.3806, allocations: 107.5 kB / 370.1 MB, free: 5.793 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.661e-06/0.3806, allocations: 0 / 370.1 MB, free: 5.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003986/0.381, allocations: 149.2 kB / 370.3 MB, free: 5.641 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.3811, allocations: 55.41 kB / 370.3 MB, free: 5.574 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.3813, allocations: 147.5 kB / 370.5 MB, free: 5.426 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.3813, allocations: 29.69 kB / 370.5 MB, free: 5.391 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.3815, allocations: 206.8 kB / 370.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.647e-05/0.3816, allocations: 55.34 kB / 370.7 MB, free: 5.133 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.3816, allocations: 0 / 370.7 MB, free: 5.133 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.3818, allocations: 322.8 kB / 371.1 MB, free: 4.809 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.3819, allocations: 52.66 kB / 371.1 MB, free: 4.754 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.3821, allocations: 131.1 kB / 371.2 MB, free: 4.598 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.3823, allocations: 59.91 kB / 371.3 MB, free: 4.539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3823, allocations: 0 / 371.3 MB, free: 4.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005251/0.3829, allocations: 217.2 kB / 371.5 MB, free: 4.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.3829, allocations: 11.98 kB / 371.5 MB, free: 4.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3829, allocations: 3.953 kB / 371.5 MB, free: 4.305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/0.383, allocations: 4 kB / 371.5 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.3832, allocations: 35.92 kB / 371.6 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3832, allocations: 4 kB / 371.6 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.3833, allocations: 11.84 kB / 371.6 MB, free: 4.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.3834, allocations: 16.27 kB / 371.6 MB, free: 4.234 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 0.0001404/0.3836, allocations: 131.8 kB / 371.7 MB, free: 4.098 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.34e-05/0.3836, allocations: 7.906 kB / 371.7 MB, free: 4.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004637/0.3841, allocations: 170.2 kB / 371.9 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/0.3841, allocations: 7.953 kB / 371.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.3841, allocations: 0 / 371.9 MB, free: 3.906 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.686e-06/0.3841, allocations: 3.938 kB / 371.9 MB, free: 3.902 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009969/0.3851, allocations: 0.518 MB / 372.4 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.286e-06/0.3852, allocations: 0 / 372.4 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.3853, allocations: 23.94 kB / 372.5 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.959e-06/0.3853, allocations: 0 / 372.5 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.795e-05/0.3854, allocations: 0 / 372.5 MB, free: 3.312 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.305e-06/0.3854, allocations: 4 kB / 372.5 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.724e-06/0.3854, allocations: 0 / 372.5 MB, free: 3.309 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004329/0.3858, allocations: 263.3 kB / 372.7 MB, free: 3.035 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.405e-05/0.3859, allocations: 85.02 kB / 372.8 MB, free: 2.934 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.386, allocations: 3.953 kB / 372.8 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.3861, allocations: 15.92 kB / 372.8 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/0.3862, allocations: 23.91 kB / 372.8 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.3863, allocations: 8 kB / 372.8 MB, free: 2.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.562e-05/0.3864, allocations: 95.27 kB / 372.9 MB, free: 2.789 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.3864, allocations: 0 / 372.9 MB, free: 2.789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004362/0.3868, allocations: 36 kB / 373 MB, free: 2.754 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.0001911/0.387, allocations: 111.2 kB / 373.1 MB, free: 2.637 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003775/0.3874, allocations: 151.9 kB / 373.2 MB, free: 2.488 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.837e-06/0.3874, allocations: 0 / 373.2 MB, free: 2.488 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.3876, allocations: 71.92 kB / 373.3 MB, free: 2.418 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.3879, allocations: 10.59 kB / 373.3 MB, free: 2.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006314/0.3885, allocations: 247.1 kB / 373.6 MB, free: 2.133 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.389, allocations: 0.7401 MB / 374.3 MB, free: 1.367 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.562e-05/0.3891, allocations: 23.38 kB / 374.3 MB, free: 1.344 MB / 314.7 MB Notification: Performance of SimCode: time 1.767e-06/0.3891, allocations: 0 / 374.3 MB, free: 1.344 MB / 314.7 MB Notification: Performance of Templates: time 0.005478/0.3946, allocations: 2.292 MB / 376.6 MB, free: 15.05 MB / 330.7 MB