Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadModel(Modelica): time 1.689/1.689, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.941e-05/2.957e-05, allocations: 0 / 225 MB, free: 2.84 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2123, allocations: 38.77 MB / 263.7 MB, free: 9.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3137, allocations: 66.13 MB / 329.9 MB, free: 7.664 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002151/0.3139, allocations: 67.97 kB / 329.9 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01104/0.325, allocations: 2.927 MB / 332.9 MB, free: 4.648 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.799e-06/0.325, allocations: 0 / 332.9 MB, free: 4.648 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.631e-05/0.3251, allocations: 8 kB / 332.9 MB, free: 4.641 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006557/0.3257, allocations: 427.9 kB / 333.3 MB, free: 4.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3258, allocations: 8.031 kB / 333.3 MB, free: 4.168 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.3259, allocations: 23.72 kB / 333.3 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.3262, allocations: 226.8 kB / 333.6 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.3263, allocations: 24.56 kB / 333.6 MB, free: 3.859 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.3264, allocations: 31.98 kB / 333.6 MB, free: 3.828 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005626/0.3269, allocations: 252.9 kB / 333.9 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.327, allocations: 3.938 kB / 333.9 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.307e-05/0.327, allocations: 11.94 kB / 333.9 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.327, allocations: 8 kB / 333.9 MB, free: 3.535 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004253/0.3275, allocations: 156.8 kB / 334 MB, free: 3.383 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.329, allocations: 0.9406 MB / 335 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003618/0.3294, allocations: 159 kB / 335.1 MB, free: 2.203 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.3296, allocations: 77.27 kB / 335.2 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.3296, allocations: 4.188 kB / 335.2 MB, free: 2.121 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.3299, allocations: 107.6 kB / 335.3 MB, free: 2.004 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 5.846e-06/0.3299, allocations: 0 / 335.3 MB, free: 2.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.00044/0.3303, allocations: 169.2 kB / 335.5 MB, free: 1.832 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3304, allocations: 55.41 kB / 335.5 MB, free: 1.766 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.3306, allocations: 143.4 kB / 335.7 MB, free: 1.621 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.3307, allocations: 41.7 kB / 335.7 MB, free: 1.574 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.3308, allocations: 198.8 kB / 335.9 MB, free: 1.379 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.763e-05/0.3309, allocations: 63.23 kB / 336 MB, free: 1.316 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.789e-05/0.3309, allocations: 8 kB / 336 MB, free: 1.309 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3311, allocations: 322.8 kB / 336.3 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.3313, allocations: 56.66 kB / 336.3 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.3316, allocations: 129.6 kB / 336.5 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.3318, allocations: 71.89 kB / 336.5 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.845e-06/0.3318, allocations: 0 / 336.5 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005388/0.3323, allocations: 237.2 kB / 336.8 MB, free: 472 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.3324, allocations: 4 kB / 336.8 MB, free: 468 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3324, allocations: 4 kB / 336.8 MB, free: 464 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3324, allocations: 7.984 kB / 336.8 MB, free: 456 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.3326, allocations: 36.2 kB / 336.8 MB, free: 420 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.3327, allocations: 7.953 kB / 336.8 MB, free: 412 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000153/0.3328, allocations: 15.94 kB / 336.8 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.3329, allocations: 12 kB / 336.9 MB, free: 384 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001412/0.333, allocations: 132 kB / 337 MB, free: 244 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.89e-05/0.3331, allocations: 15.81 kB / 337 MB, free: 228 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000444/0.3335, allocations: 186.2 kB / 337.2 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.066e-06/0.3336, allocations: 4 kB / 337.2 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.796e-06/0.3336, allocations: 0 / 337.2 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.864e-06/0.3336, allocations: 7.938 kB / 337.2 MB, free: 28 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.3347, allocations: 0.5797 MB / 337.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.216e-06/0.3347, allocations: 4 kB / 337.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.925e-05/0.3348, allocations: 11.94 kB / 337.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.205e-05/0.3349, allocations: 4 kB / 337.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.3349, allocations: 15.94 kB / 337.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.6e-06/0.3349, allocations: 3.938 kB / 337.8 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.137e-06/0.3349, allocations: 3.938 kB / 337.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000438/0.3354, allocations: 267.7 kB / 338.1 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.279e-05/0.3355, allocations: 92.91 kB / 338.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.3355, allocations: 4 kB / 338.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3357, allocations: 11.95 kB / 338.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/0.3358, allocations: 23.97 kB / 338.2 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.3358, allocations: 11.98 kB / 338.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.862e-05/0.3359, allocations: 98.38 kB / 338.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.83e-07/0.3359, allocations: 0 / 338.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004378/0.3364, allocations: 40 kB / 338.4 MB, free: 14.77 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 (step.active,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,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001919/0.3366, allocations: 115 kB / 338.5 MB, free: 14.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004217/0.337, allocations: 168.3 kB / 338.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.054e-06/0.337, allocations: 4.062 kB / 338.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.3372, allocations: 75.94 kB / 338.7 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.3375, allocations: 15.98 kB / 338.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006181/0.3381, allocations: 256 kB / 339 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004555/0.3386, allocations: 0.748 MB / 339.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.44e-05/0.3387, allocations: 23.44 kB / 339.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.992e-06/0.3387, allocations: 0 / 339.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of Templates: time 0.005481/0.3442, allocations: 2.298 MB / 342 MB, free: 11.02 MB / 298.7 MB