Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.151/2.151, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.621e-05, allocations: 0 / 292.1 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09262/0.09267, allocations: 50.42 MB / 342.5 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4384/0.5312, allocations: 76.21 MB / 418.8 MB, free: 1.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/0.5315, allocations: 66.39 kB / 418.8 MB, free: 1.895 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01848/0.55, allocations: 2.907 MB / 421.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.396e-06/0.5501, allocations: 0 / 421.7 MB, free: 15.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.306e-05/0.5501, allocations: 4 kB / 421.7 MB, free: 15.36 MB / 346.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.0009948/0.5511, allocations: 436.1 kB / 422.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.5512, allocations: 8.031 kB / 422.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.5513, allocations: 23.72 kB / 422.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00048/0.5518, allocations: 224.8 kB / 422.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.912e-05/0.5519, allocations: 22.19 kB / 422.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.801e-05/0.552, allocations: 22.31 kB / 422.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008763/0.5529, allocations: 239.8 kB / 422.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.335e-05/0.553, allocations: 0 / 422.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.5531, allocations: 16.88 kB / 422.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.5531, allocations: 4 kB / 422.7 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006377/0.5537, allocations: 145.7 kB / 422.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/0.5558, allocations: 0.6895 MB / 423.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.5564, allocations: 163.1 kB / 423.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.5567, allocations: 79.17 kB / 423.8 MB, free: 13.51 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/0.5568, allocations: 11.23 kB / 423.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003553/0.5571, allocations: 108.4 kB / 423.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 5.196e-06/0.5572, allocations: 0 / 423.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004342/0.5576, allocations: 165 kB / 424.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.5577, allocations: 59.03 kB / 424.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.5578, allocations: 131 kB / 424.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.5579, allocations: 41.52 kB / 424.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.558, allocations: 128.2 kB / 424.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.177e-05/0.5581, allocations: 61.36 kB / 424.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.5581, allocations: 7.188 kB / 424.5 MB, free: 12.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.5583, allocations: 330 kB / 424.8 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.5585, allocations: 58.91 kB / 424.9 MB, free: 12.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.5587, allocations: 134.1 kB / 425 MB, free: 12.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000171/0.5589, allocations: 66.98 kB / 425.1 MB, free: 12.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.48e-06/0.5589, allocations: 0 / 425.1 MB, free: 12.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005599/0.5595, allocations: 230.1 kB / 425.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.5595, allocations: 4 kB / 425.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.319e-06/0.5595, allocations: 4 kB / 425.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.5596, allocations: 0 / 425.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.5598, allocations: 30.23 kB / 425.3 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.885e-05/0.5598, allocations: 15.86 kB / 425.3 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.5599, allocations: 19.22 kB / 425.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/0.56, allocations: 15.56 kB / 425.4 MB, free: 12.06 MB / 346.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.0001301/0.5601, allocations: 134.8 kB / 425.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.5602, allocations: 15.8 kB / 425.5 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004421/0.5607, allocations: 187.5 kB / 425.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.5607, allocations: 0 / 425.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.5607, allocations: 8 kB / 425.7 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.42e-06/0.5607, allocations: 0 / 425.7 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.5618, allocations: 0.5591 MB / 426.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.69e-06/0.5618, allocations: 0 / 426.3 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.5619, allocations: 19.92 kB / 426.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.982e-06/0.5619, allocations: 4 kB / 426.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.728e-05/0.562, allocations: 2.875 kB / 426.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.231e-06/0.562, allocations: 0 / 426.3 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.513e-06/0.562, allocations: 7.938 kB / 426.3 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.5625, allocations: 277.2 kB / 426.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.622e-05/0.5625, allocations: 88.95 kB / 426.7 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.371e-05/0.5626, allocations: 7.062 kB / 426.7 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.5628, allocations: 7.125 kB / 426.7 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5629, allocations: 31.03 kB / 426.7 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.5629, allocations: 4 kB / 426.7 MB, free: 10.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.563, allocations: 105.8 kB / 426.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.552e-06/0.5631, allocations: 0 / 426.8 MB, free: 10.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004946/0.5636, allocations: 46.59 kB / 426.8 MB, free: 10.67 MB / 346.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.0001986/0.5638, allocations: 106.8 kB / 427 MB, free: 10.56 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004717/0.5643, allocations: 166.5 kB / 427.1 MB, free: 10.44 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.691e-06/0.5643, allocations: 3.562 kB / 427.1 MB, free: 10.44 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.5645, allocations: 84.86 kB / 427.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.5648, allocations: 11.88 kB / 427.2 MB, free: 10.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006992/0.5655, allocations: 235.8 kB / 427.4 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/0.5661, allocations: 0.7442 MB / 428.2 MB, free: 9.383 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.5662, allocations: 22.08 kB / 428.2 MB, free: 9.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.084e-05/0.5663, allocations: 23.42 kB / 428.2 MB, free: 9.34 MB / 346.7 MB Notification: Performance of SimCode: time 1.686e-06/0.5664, allocations: 0 / 428.2 MB, free: 9.34 MB / 346.7 MB Notification: Performance of Templates: time 0.007431/0.5738, allocations: 1.674 MB / 429.9 MB, free: 7.684 MB / 346.7 MB