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.88/1.88, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.536e-05/2.548e-05, allocations: 4 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07658/0.07663, allocations: 44.5 MB / 299.8 MB, free: 6.629 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3016/0.3783, allocations: 70.8 MB / 370.6 MB, free: 70.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.3786, allocations: 63.92 kB / 370.7 MB, free: 70.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0103/0.3889, allocations: 2.786 MB / 373.5 MB, free: 70.17 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.075e-06/0.3889, allocations: 4 kB / 373.5 MB, free: 70.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.627e-05/0.389, allocations: 6.219 kB / 373.5 MB, free: 70.16 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.0005741/0.3896, allocations: 426.4 kB / 373.9 MB, free: 69.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.3896, allocations: 9.469 kB / 373.9 MB, free: 69.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.04e-05/0.3897, allocations: 24.55 kB / 374 MB, free: 69.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.39, allocations: 225.2 kB / 374.2 MB, free: 69.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.075e-05/0.39, allocations: 23.23 kB / 374.2 MB, free: 69.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.3901, allocations: 26.94 kB / 374.2 MB, free: 69.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.3906, allocations: 223.3 kB / 374.4 MB, free: 69.51 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3906, allocations: 1.156 kB / 374.4 MB, free: 69.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.3907, allocations: 10.14 kB / 374.5 MB, free: 69.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.3907, allocations: 5.344 kB / 374.5 MB, free: 69.51 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003846/0.3911, allocations: 152.1 kB / 374.6 MB, free: 69.51 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.3922, allocations: 0.6846 MB / 375.3 MB, free: 69.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003614/0.3926, allocations: 164.4 kB / 375.5 MB, free: 69.09 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.3928, allocations: 81.53 kB / 375.5 MB, free: 69.07 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.3928, allocations: 3.438 kB / 375.5 MB, free: 69.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.3931, allocations: 112.1 kB / 375.6 MB, free: 69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.68e-06/0.3931, allocations: 0 / 375.6 MB, free: 69 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004028/0.3935, allocations: 166.4 kB / 375.8 MB, free: 68.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.3936, allocations: 58.47 kB / 375.9 MB, free: 68.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3937, allocations: 135.8 kB / 376 MB, free: 68.74 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.3937, allocations: 34.39 kB / 376 MB, free: 68.7 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.496e-05/0.3938, allocations: 196.4 kB / 376.2 MB, free: 68.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.98e-05/0.3939, allocations: 60.45 kB / 376.3 MB, free: 68.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/0.3939, allocations: 5.375 kB / 376.3 MB, free: 68.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.138e-05/0.394, allocations: 326.5 kB / 376.6 MB, free: 68.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.3941, allocations: 58.28 kB / 376.7 MB, free: 68.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.3944, allocations: 123.6 kB / 376.8 MB, free: 68.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.3945, allocations: 65.25 kB / 376.8 MB, free: 68.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3946, allocations: 5.031 kB / 376.9 MB, free: 68.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004875/0.395, allocations: 231.1 kB / 377.1 MB, free: 67.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3951, allocations: 8.703 kB / 377.1 MB, free: 67.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.511e-06/0.3951, allocations: 1.656 kB / 377.1 MB, free: 67.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.3951, allocations: 4.688 kB / 377.1 MB, free: 67.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.3953, allocations: 43.81 kB / 377.1 MB, free: 67.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.3954, allocations: 8.219 kB / 377.1 MB, free: 67.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.3955, allocations: 17.47 kB / 377.2 MB, free: 67.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.036e-05/0.3956, allocations: 9.766 kB / 377.2 MB, free: 67.88 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 9.593e-05/0.3957, allocations: 137.3 kB / 377.3 MB, free: 67.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.184e-05/0.3957, allocations: 15.77 kB / 377.3 MB, free: 67.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004287/0.3961, allocations: 187.6 kB / 377.5 MB, free: 67.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.473e-06/0.3962, allocations: 3.922 kB / 377.5 MB, free: 67.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.384e-06/0.3962, allocations: 7.953 kB / 377.5 MB, free: 67.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.249e-06/0.3962, allocations: 1.406 kB / 377.5 MB, free: 67.65 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008757/0.3971, allocations: 0.5507 MB / 378.1 MB, free: 67.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.385e-06/0.3971, allocations: 0 / 378.1 MB, free: 67.26 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3972, allocations: 19.05 kB / 378.1 MB, free: 67.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.32e-06/0.3972, allocations: 5.422 kB / 378.1 MB, free: 67.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.3973, allocations: 10.8 kB / 378.1 MB, free: 67.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.826e-06/0.3973, allocations: 1.469 kB / 378.1 MB, free: 67.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.553e-06/0.3973, allocations: 0 / 378.1 MB, free: 67.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.3977, allocations: 272.9 kB / 378.4 MB, free: 67.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.3977, allocations: 89.86 kB / 378.5 MB, free: 66.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.514e-05/0.3978, allocations: 11.89 kB / 378.5 MB, free: 66.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.3979, allocations: 18.3 kB / 378.5 MB, free: 66.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.058e-05/0.398, allocations: 25.16 kB / 378.5 MB, free: 66.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.409e-05/0.3981, allocations: 9.719 kB / 378.5 MB, free: 66.94 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.498e-05/0.3981, allocations: 92.31 kB / 378.6 MB, free: 66.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.89e-07/0.3981, allocations: 0 / 378.6 MB, free: 66.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004164/0.3986, allocations: 43.75 kB / 378.7 MB, free: 66.85 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.0001451/0.3987, allocations: 111.4 kB / 378.8 MB, free: 66.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003974/0.3991, allocations: 169.4 kB / 378.9 MB, free: 66.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.3991, allocations: 5.5 kB / 378.9 MB, free: 66.7 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001805/0.3993, allocations: 82.02 kB / 379 MB, free: 66.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.3996, allocations: 14.78 kB / 379 MB, free: 66.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005487/0.4002, allocations: 245.7 kB / 379.3 MB, free: 66.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001964/0.4004, allocations: 0.739 MB / 380 MB, free: 65.8 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.306e-05/0.4005, allocations: 24.67 kB / 380 MB, free: 65.79 MB / 314.7 MB Notification: Performance of SimCode: time 1.647e-06/0.4005, allocations: 0 / 380 MB, free: 65.79 MB / 314.7 MB Notification: Performance of Templates: time 0.00481/0.4053, allocations: 2.248 MB / 382.3 MB, free: 64.72 MB / 314.7 MB