Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadModel(Modelica): time 1.862/1.862, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.12e-05/3.086e-05, allocations: 4 kB / 258.8 MB, free: 8.07 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2989, allocations: 44.5 MB / 303.3 MB, free: 12.91 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002256/0.3012, allocations: 1.356 MB / 304.7 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007639/0.302, allocations: 244.9 kB / 304.9 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.3021, allocations: 5.656 kB / 304.9 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.3023, allocations: 23.23 kB / 304.9 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.294e-05/0.3023, allocations: 3.984 kB / 304.9 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004236/0.3028, allocations: 91.58 kB / 305 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002686/0.3031, allocations: 133.4 kB / 305.2 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002877/0.3034, allocations: 130.7 kB / 305.3 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.252e-05/0.3035, allocations: 55.28 kB / 305.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.3036, allocations: 66.16 kB / 305.4 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.836e-05/0.3037, allocations: 24.19 kB / 305.4 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.401e-05/0.3038, allocations: 14.16 kB / 305.4 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.3038, allocations: 36.92 kB / 305.5 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.172e-05/0.3039, allocations: 12.16 kB / 305.5 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00027/0.3042, allocations: 155.8 kB / 305.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3042, allocations: 0 / 305.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3042, allocations: 0 / 305.6 MB, free: 11.08 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3042, allocations: 1.188 kB / 305.6 MB, free: 11.08 MB / 250.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.0007382/0.305, allocations: 444.1 kB / 306.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.305, allocations: 9.531 kB / 306.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.931e-05/0.3051, allocations: 19.06 kB / 306.1 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.3054, allocations: 238 kB / 306.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.896e-05/0.3055, allocations: 20.16 kB / 306.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/0.3056, allocations: 25.97 kB / 306.4 MB, free: 10.36 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006279/0.3062, allocations: 268.5 kB / 306.6 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3062, allocations: 0 / 306.6 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.356e-05/0.3063, allocations: 12 kB / 306.7 MB, free: 10.15 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.3063, allocations: 8 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000521/0.3068, allocations: 165.6 kB / 306.8 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.3085, allocations: 0.956 MB / 307.8 MB, free: 8.953 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004117/0.3089, allocations: 155.4 kB / 307.9 MB, free: 8.793 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.4e-05/0.309, allocations: 12.11 kB / 307.9 MB, free: 8.781 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.3093, allocations: 111.4 kB / 308 MB, free: 8.66 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.116e-06/0.3093, allocations: 0 / 308 MB, free: 8.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006174/0.3099, allocations: 215.5 kB / 308.3 MB, free: 8.445 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.31, allocations: 59.41 kB / 308.3 MB, free: 8.375 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.3101, allocations: 141 kB / 308.5 MB, free: 8.23 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.3102, allocations: 45.62 kB / 308.5 MB, free: 8.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3103, allocations: 136.5 kB / 308.6 MB, free: 8.043 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.954e-05/0.3104, allocations: 59.25 kB / 308.7 MB, free: 7.984 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.3104, allocations: 4 kB / 308.7 MB, free: 7.98 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3106, allocations: 330.8 kB / 309 MB, free: 7.648 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002218/0.3108, allocations: 60.62 kB / 309.1 MB, free: 7.586 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.3111, allocations: 137.9 kB / 309.2 MB, free: 7.422 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.3113, allocations: 67.94 kB / 309.3 MB, free: 7.355 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3113, allocations: 0 / 309.3 MB, free: 7.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005872/0.3119, allocations: 257.2 kB / 309.5 MB, free: 7.098 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.3119, allocations: 4 kB / 309.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3119, allocations: 8.219 kB / 309.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.312, allocations: 8 kB / 309.5 MB, free: 7.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.3122, allocations: 31.92 kB / 309.6 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.3122, allocations: 7.938 kB / 309.6 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001651/0.3124, allocations: 31.69 kB / 309.6 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.475e-05/0.3125, allocations: 15.98 kB / 309.6 MB, free: 6.992 MB / 250.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,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.0002028/0.3127, allocations: 152.4 kB / 309.8 MB, free: 6.832 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.3127, allocations: 11.86 kB / 309.8 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005415/0.3133, allocations: 198.7 kB / 310 MB, free: 6.621 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3133, allocations: 4 kB / 310 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3133, allocations: 0 / 310 MB, free: 6.617 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3134, allocations: 4 kB / 310 MB, free: 6.613 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.3144, allocations: 0.5877 MB / 310.6 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.3145, allocations: 0 / 310.6 MB, free: 5.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.3146, allocations: 19.92 kB / 310.6 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.3146, allocations: 4 kB / 310.6 MB, free: 5.941 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.458e-05/0.3147, allocations: 4 kB / 310.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.3147, allocations: 4 kB / 310.6 MB, free: 5.934 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3147, allocations: 0 / 310.6 MB, free: 5.934 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.3152, allocations: 275.1 kB / 310.9 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.3153, allocations: 92.86 kB / 311 MB, free: 5.539 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.3153, allocations: 8 kB / 311 MB, free: 5.531 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.3155, allocations: 15.98 kB / 311 MB, free: 5.516 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/0.3156, allocations: 19.91 kB / 311 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.3157, allocations: 8 kB / 311 MB, free: 5.488 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3158, allocations: 100.6 kB / 311.1 MB, free: 5.391 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3158, allocations: 0 / 311.1 MB, free: 5.391 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008901/0.3167, allocations: 51.84 kB / 311.2 MB, free: 5.34 MB / 250.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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.0002134/0.317, allocations: 107.2 kB / 311.3 MB, free: 5.227 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005205/0.3175, allocations: 183.8 kB / 311.5 MB, free: 5.047 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3175, allocations: 0 / 311.5 MB, free: 5.047 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002051/0.3177, allocations: 79.91 kB / 311.5 MB, free: 4.969 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.318, allocations: 19.89 kB / 311.6 MB, free: 4.949 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009054/0.3189, allocations: 392.2 kB / 311.9 MB, free: 4.539 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.3193, allocations: 0.7406 MB / 312.7 MB, free: 3.773 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.3195, allocations: 33.88 kB / 312.7 MB, free: 3.742 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.501e-05/0.3196, allocations: 19.44 kB / 312.7 MB, free: 3.723 MB / 250.7 MB Notification: Performance of SimCode: time 7.42e-07/0.3196, allocations: 0 / 312.7 MB, free: 3.723 MB / 250.7 MB Notification: Performance of Templates: time 0.006912/0.3265, allocations: 1.646 MB / 314.4 MB, free: 2.086 MB / 250.7 MB