Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.575/1.575, allocations: 171.2 MB / 183.8 MB, free: 12.09 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.758e-05/2.772e-05, allocations: 4 kB / 225 MB, free: 2.844 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2551, allocations: 38.77 MB / 263.7 MB, free: 9.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09881/0.3539, allocations: 65.49 MB / 329.2 MB, free: 8.316 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.3542, allocations: 59.97 kB / 329.3 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01054/0.3647, allocations: 2.785 MB / 332.1 MB, free: 5.445 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3648, allocations: 0 / 332.1 MB, free: 5.445 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.3648, allocations: 4 kB / 332.1 MB, free: 5.441 MB / 282.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.0006935/0.3655, allocations: 443.5 kB / 332.5 MB, free: 4.969 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3656, allocations: 8.031 kB / 332.5 MB, free: 4.961 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.194e-05/0.3657, allocations: 19.81 kB / 332.5 MB, free: 4.941 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.366, allocations: 218.8 kB / 332.8 MB, free: 4.688 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/0.3661, allocations: 20.42 kB / 332.8 MB, free: 4.668 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.196e-05/0.3661, allocations: 28 kB / 332.8 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005332/0.3667, allocations: 225 kB / 333 MB, free: 4.406 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3667, allocations: 0 / 333 MB, free: 4.406 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.436e-05/0.3668, allocations: 16 kB / 333 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.3668, allocations: 7.984 kB / 333 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004051/0.3672, allocations: 148.8 kB / 333.2 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.3685, allocations: 0.6821 MB / 333.9 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000407/0.369, allocations: 166.3 kB / 334 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001782/0.3692, allocations: 77.17 kB / 334.1 MB, free: 3.254 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.3692, allocations: 4.188 kB / 334.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.3695, allocations: 119.5 kB / 334.2 MB, free: 3.121 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 7.697e-06/0.3695, allocations: 0 / 334.2 MB, free: 3.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004335/0.3699, allocations: 161.4 kB / 334.4 MB, free: 2.957 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.37, allocations: 59.41 kB / 334.5 MB, free: 2.887 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001516/0.3702, allocations: 137 kB / 334.6 MB, free: 2.742 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/0.3702, allocations: 37.7 kB / 334.6 MB, free: 2.699 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.3704, allocations: 194.9 kB / 334.8 MB, free: 2.508 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.056e-05/0.3705, allocations: 67.16 kB / 334.9 MB, free: 2.441 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.3705, allocations: 4 kB / 334.9 MB, free: 2.438 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.3707, allocations: 326.8 kB / 335.2 MB, free: 2.109 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.3709, allocations: 56.66 kB / 335.3 MB, free: 2.051 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002294/0.3711, allocations: 131.8 kB / 335.4 MB, free: 1.898 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.3713, allocations: 59.97 kB / 335.4 MB, free: 1.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.948e-06/0.3713, allocations: 4 kB / 335.4 MB, free: 1.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005348/0.3719, allocations: 233.5 kB / 335.7 MB, free: 1.602 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3719, allocations: 8 kB / 335.7 MB, free: 1.594 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.078e-06/0.3719, allocations: 0 / 335.7 MB, free: 1.594 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.3719, allocations: 4 kB / 335.7 MB, free: 1.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3721, allocations: 31.86 kB / 335.7 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.3722, allocations: 7.984 kB / 335.7 MB, free: 1.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001443/0.3723, allocations: 19.84 kB / 335.7 MB, free: 1.531 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.3724, allocations: 19.97 kB / 335.8 MB, free: 1.512 MB / 282.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.0001422/0.3725, allocations: 136.1 kB / 335.9 MB, free: 1.371 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.313e-05/0.3726, allocations: 11.91 kB / 335.9 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000467/0.3731, allocations: 182.3 kB / 336.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.3731, allocations: 4 kB / 336.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.865e-06/0.3731, allocations: 0 / 336.1 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.445e-06/0.3731, allocations: 3.984 kB / 336.1 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.3742, allocations: 0.5571 MB / 336.7 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.3742, allocations: 0 / 336.7 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.3743, allocations: 19.92 kB / 336.7 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.147e-05/0.3744, allocations: 4 kB / 336.7 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.983e-05/0.3744, allocations: 4 kB / 336.7 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.517e-06/0.3744, allocations: 0 / 336.7 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.427e-06/0.3744, allocations: 7.938 kB / 336.7 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.3749, allocations: 275.7 kB / 337 MB, free: 232 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.375, allocations: 92.86 kB / 337 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.375, allocations: 8 kB / 337.1 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.3751, allocations: 11.92 kB / 337.1 MB, free: 100 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.759e-05/0.3753, allocations: 27.91 kB / 337.1 MB, free: 72 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.3753, allocations: 4 kB / 337.1 MB, free: 68 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001213/0.3754, allocations: 103.2 kB / 337.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.3755, allocations: 0 / 337.2 MB, free: 15.96 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004358/0.3759, allocations: 51.98 kB / 337.2 MB, free: 15.91 MB / 298.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.3761, allocations: 115.2 kB / 337.4 MB, free: 15.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004454/0.3766, allocations: 172 kB / 337.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3766, allocations: 0 / 337.5 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.3768, allocations: 83.88 kB / 337.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.377, allocations: 15.98 kB / 337.6 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006216/0.3777, allocations: 248.6 kB / 337.9 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.3781, allocations: 0.7326 MB / 338.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.084e-05/0.3782, allocations: 27.42 kB / 338.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of SimCode: time 1.459e-06/0.3782, allocations: 0 / 338.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of Templates: time 0.005201/0.3835, allocations: 2.237 MB / 340.9 MB, free: 12.23 MB / 298.7 MB