Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.884/1.884, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.503e-05/2.521e-05, allocations: 0 / 269.3 MB, free: 6.41 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08233, allocations: 47.58 MB / 316.9 MB, free: 6.746 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3346/0.417, allocations: 75.08 MB / 392 MB, free: 12.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.4173, allocations: 62.16 kB / 392.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01085/0.4281, allocations: 2.833 MB / 394.9 MB, free: 10.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.868e-06/0.4282, allocations: 4 kB / 394.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.4282, allocations: 8.656 kB / 394.9 MB, free: 10.48 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006707/0.4289, allocations: 427.2 kB / 395.3 MB, free: 10.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.429, allocations: 15.95 kB / 395.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.226e-05/0.429, allocations: 19.81 kB / 395.4 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.4294, allocations: 227.4 kB / 395.6 MB, free: 9.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.005e-05/0.4294, allocations: 26.17 kB / 395.6 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.4295, allocations: 26.69 kB / 395.6 MB, free: 9.711 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.43, allocations: 230.5 kB / 395.9 MB, free: 9.547 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.43, allocations: 0 / 395.9 MB, free: 9.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.4301, allocations: 11.5 kB / 395.9 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.19e-06/0.4301, allocations: 4 kB / 395.9 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000377/0.4305, allocations: 153.2 kB / 396 MB, free: 9.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.4319, allocations: 0.6864 MB / 396.7 MB, free: 8.812 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/0.4323, allocations: 168.9 kB / 396.9 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.4325, allocations: 80.16 kB / 397 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.4325, allocations: 192 / 397 MB, free: 8.637 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.4328, allocations: 118.6 kB / 397.1 MB, free: 8.531 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.311e-06/0.4328, allocations: 0 / 397.1 MB, free: 8.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004153/0.4332, allocations: 164.1 kB / 397.2 MB, free: 8.395 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.348e-05/0.4333, allocations: 59.34 kB / 397.3 MB, free: 8.324 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.4335, allocations: 140.5 kB / 397.4 MB, free: 8.191 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.64e-05/0.4335, allocations: 37.2 kB / 397.5 MB, free: 8.156 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4336, allocations: 128.2 kB / 397.6 MB, free: 8.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.603e-05/0.4337, allocations: 66.67 kB / 397.6 MB, free: 7.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.4337, allocations: 3.688 kB / 397.7 MB, free: 7.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4339, allocations: 326.6 kB / 398 MB, free: 7.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.4341, allocations: 56.16 kB / 398 MB, free: 7.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.4343, allocations: 122.3 kB / 398.1 MB, free: 7.504 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.4345, allocations: 63.27 kB / 398.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.099e-06/0.4345, allocations: 0 / 398.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005174/0.435, allocations: 235.4 kB / 398.4 MB, free: 7.266 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.4351, allocations: 8 kB / 398.4 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.52e-06/0.4351, allocations: 0 / 398.4 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.4351, allocations: 11.95 kB / 398.5 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.4353, allocations: 36.02 kB / 398.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/0.4354, allocations: 4 kB / 398.5 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.4355, allocations: 19.42 kB / 398.5 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/0.4356, allocations: 11.94 kB / 398.5 MB, free: 7.188 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.0001348/0.4357, allocations: 127.8 kB / 398.7 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.4358, allocations: 19.62 kB / 398.7 MB, free: 7.047 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000465/0.4362, allocations: 192.5 kB / 398.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4363, allocations: 11.95 kB / 398.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.4363, allocations: 0 / 398.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.893e-06/0.4363, allocations: 0 / 398.9 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.4373, allocations: 0.5573 MB / 399.4 MB, free: 6.348 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.741e-06/0.4373, allocations: 3.953 kB / 399.4 MB, free: 6.344 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.4375, allocations: 12 kB / 399.4 MB, free: 6.332 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.825e-06/0.4375, allocations: 7.984 kB / 399.5 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/0.4375, allocations: 7.75 kB / 399.5 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.88e-06/0.4375, allocations: 0 / 399.5 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.935e-06/0.4376, allocations: 0 / 399.5 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.438, allocations: 277.6 kB / 399.7 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.545e-05/0.4381, allocations: 96.81 kB / 399.8 MB, free: 5.957 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.104e-05/0.4381, allocations: 7.875 kB / 399.8 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.4383, allocations: 15.69 kB / 399.8 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.138e-05/0.4384, allocations: 23.89 kB / 399.9 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.4384, allocations: 8 kB / 399.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.033e-05/0.4385, allocations: 94.95 kB / 400 MB, free: 5.824 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.64e-07/0.4385, allocations: 0 / 400 MB, free: 5.824 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004257/0.4389, allocations: 39.69 kB / 400 MB, free: 5.793 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.0001941/0.4392, allocations: 123 kB / 400.1 MB, free: 5.668 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004127/0.4396, allocations: 174.5 kB / 400.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.763e-06/0.4396, allocations: 0 / 400.3 MB, free: 5.539 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001754/0.4398, allocations: 81.11 kB / 400.4 MB, free: 5.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.4401, allocations: 10.88 kB / 400.4 MB, free: 5.473 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005889/0.4407, allocations: 230.7 kB / 400.6 MB, free: 5.262 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.4411, allocations: 0.7403 MB / 401.4 MB, free: 4.496 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001184/0.4413, allocations: 26.06 kB / 401.4 MB, free: 4.469 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.482e-05/0.4413, allocations: 19.44 kB / 401.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of SimCode: time 1.536e-06/0.4414, allocations: 0 / 401.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of Templates: time 0.006479/0.4478, allocations: 1.671 MB / 403.1 MB, free: 2.805 MB / 314.7 MB