Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.906e-05/1.909e-05, allocations: 7.938 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2516, allocations: 44.49 MB / 294.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.3614, allocations: 70.14 MB / 364.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.3617, allocations: 55.97 kB / 364.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01015/0.3719, allocations: 2.739 MB / 367 MB, free: 9.062 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.489e-06/0.3719, allocations: 0 / 367 MB, free: 9.062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.3719, allocations: 11.92 kB / 367 MB, free: 9.051 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006637/0.3726, allocations: 426.8 kB / 367.5 MB, free: 8.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3727, allocations: 8.031 kB / 367.5 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.214e-05/0.3728, allocations: 23.72 kB / 367.5 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.3731, allocations: 222.9 kB / 367.7 MB, free: 8.301 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.3731, allocations: 8 kB / 367.7 MB, free: 8.293 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.3732, allocations: 16 kB / 367.7 MB, free: 8.277 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004004/0.3736, allocations: 148.8 kB / 367.9 MB, free: 8.133 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004445/0.3741, allocations: 193 kB / 368.1 MB, free: 7.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.3741, allocations: 0 / 368.1 MB, free: 7.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.3741, allocations: 3.984 kB / 368.1 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.3742, allocations: 8 kB / 368.1 MB, free: 7.918 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.3754, allocations: 0.631 MB / 368.7 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.3758, allocations: 163.7 kB / 368.9 MB, free: 7.074 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.376, allocations: 69.23 kB / 368.9 MB, free: 7.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.376, allocations: 4.188 kB / 368.9 MB, free: 7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000243/0.3763, allocations: 107.5 kB / 369 MB, free: 6.883 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.398e-06/0.3763, allocations: 4 kB / 369 MB, free: 6.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004448/0.3768, allocations: 157.2 kB / 369.2 MB, free: 6.719 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.3768, allocations: 59.41 kB / 369.3 MB, free: 6.648 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.377, allocations: 129 kB / 369.4 MB, free: 6.512 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.3771, allocations: 33.7 kB / 369.4 MB, free: 6.473 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.3772, allocations: 194.8 kB / 369.6 MB, free: 6.281 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.189e-05/0.3773, allocations: 51.27 kB / 369.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/0.3773, allocations: 0 / 369.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3775, allocations: 326.8 kB / 370 MB, free: 5.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.3776, allocations: 56.66 kB / 370 MB, free: 5.844 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.3779, allocations: 115.8 kB / 370.1 MB, free: 5.707 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.378, allocations: 69.44 kB / 370.2 MB, free: 5.641 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.693e-06/0.378, allocations: 0 / 370.2 MB, free: 5.641 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004736/0.3785, allocations: 205.3 kB / 370.4 MB, free: 5.434 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3786, allocations: 4 kB / 370.4 MB, free: 5.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.867e-06/0.3786, allocations: 4 kB / 370.4 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.3786, allocations: 4 kB / 370.4 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.3788, allocations: 32.14 kB / 370.5 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.3788, allocations: 7.984 kB / 370.5 MB, free: 5.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.379, allocations: 11.89 kB / 370.5 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/0.379, allocations: 16 kB / 370.5 MB, free: 5.355 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001393/0.3792, allocations: 123.8 kB / 370.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.268e-05/0.3792, allocations: 15.8 kB / 370.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004629/0.3797, allocations: 174.2 kB / 370.8 MB, free: 5.035 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3797, allocations: 8 kB / 370.8 MB, free: 5.027 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.617e-06/0.3798, allocations: 3.938 kB / 370.8 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.21e-06/0.3798, allocations: 0 / 370.8 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.3808, allocations: 0.4915 MB / 371.3 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.156e-06/0.3808, allocations: 0 / 371.3 MB, free: 4.488 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.3809, allocations: 19.98 kB / 371.3 MB, free: 4.469 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-06/0.381, allocations: 11.94 kB / 371.3 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.381, allocations: 3.984 kB / 371.3 MB, free: 4.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.765e-06/0.381, allocations: 3.953 kB / 371.3 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.783e-06/0.381, allocations: 0 / 371.3 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.3815, allocations: 267.3 kB / 371.6 MB, free: 4.172 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.75e-05/0.3816, allocations: 88.95 kB / 371.7 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.903e-05/0.3816, allocations: 0 / 371.7 MB, free: 4.066 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001464/0.3818, allocations: 15.98 kB / 371.7 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.456e-05/0.3819, allocations: 23.92 kB / 371.7 MB, free: 4.027 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.3819, allocations: 11.98 kB / 371.7 MB, free: 4.016 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.971e-05/0.382, allocations: 90.78 kB / 371.8 MB, free: 3.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.15e-07/0.382, allocations: 0 / 371.8 MB, free: 3.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004203/0.3824, allocations: 28 kB / 371.9 MB, free: 3.902 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0001989/0.3826, allocations: 115.2 kB / 372 MB, free: 3.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.383, allocations: 160.1 kB / 372.1 MB, free: 3.621 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.903e-06/0.3831, allocations: 0 / 372.1 MB, free: 3.621 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.3832, allocations: 71.94 kB / 372.2 MB, free: 3.551 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002644/0.3835, allocations: 21.95 kB / 372.2 MB, free: 3.531 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005859/0.3841, allocations: 231.1 kB / 372.4 MB, free: 3.281 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.3846, allocations: 0.7402 MB / 373.2 MB, free: 2.516 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.587e-05/0.3847, allocations: 27.42 kB / 373.2 MB, free: 2.488 MB / 314.7 MB Notification: Performance of SimCode: time 1.763e-06/0.3847, allocations: 0 / 373.2 MB, free: 2.488 MB / 314.7 MB Notification: Performance of Templates: time 0.005255/0.3899, allocations: 2.238 MB / 375.4 MB, free: 256 kB / 314.7 MB