Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 194.9 MB / 211.2 MB, free: 7.863 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.3e-05/3.314e-05, allocations: 7.906 kB / 258.8 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3154, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002259/0.3177, allocations: 1.177 MB / 304.4 MB, free: 11.77 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008098/0.3186, allocations: 227.3 kB / 304.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.3188, allocations: 5.344 kB / 304.7 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.3189, allocations: 19.02 kB / 304.7 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.024e-05/0.319, allocations: 9.047 kB / 304.7 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004149/0.3194, allocations: 85.33 kB / 304.8 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.3197, allocations: 123.7 kB / 304.9 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000298/0.32, allocations: 116.3 kB / 305 MB, free: 11.33 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.3202, allocations: 60 kB / 305.1 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.3203, allocations: 68.55 kB / 305.1 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.253e-05/0.3205, allocations: 16.81 kB / 305.2 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.3205, allocations: 9.312 kB / 305.2 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.438e-05/0.3206, allocations: 36.58 kB / 305.2 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.22e-05/0.3206, allocations: 15.44 kB / 305.2 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003204/0.321, allocations: 143.8 kB / 305.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.321, allocations: 0 / 305.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.321, allocations: 0 / 305.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.321, allocations: 0 / 305.4 MB, free: 11.11 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009133/0.322, allocations: 442.9 kB / 305.8 MB, free: 10.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.322, allocations: 13.12 kB / 305.8 MB, free: 10.67 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.3222, allocations: 26.31 kB / 305.8 MB, free: 10.66 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.3225, allocations: 229.8 kB / 306.1 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/0.3226, allocations: 19.16 kB / 306.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.3227, allocations: 25.34 kB / 306.1 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.3234, allocations: 229.2 kB / 306.3 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.3234, allocations: 0 / 306.3 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.3235, allocations: 6.938 kB / 306.3 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3235, allocations: 4.531 kB / 306.3 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005028/0.324, allocations: 163.5 kB / 306.5 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.3256, allocations: 0.6945 MB / 307.2 MB, free: 9.531 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.3262, allocations: 175.2 kB / 307.4 MB, free: 9.379 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.3262, allocations: 4.188 kB / 307.4 MB, free: 9.375 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003212/0.3266, allocations: 111.4 kB / 307.5 MB, free: 9.254 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 3.106e-06/0.3266, allocations: 0 / 307.5 MB, free: 9.254 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006962/0.3273, allocations: 231.4 kB / 307.7 MB, free: 9.023 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.3274, allocations: 55.41 kB / 307.8 MB, free: 8.957 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.3276, allocations: 148.9 kB / 307.9 MB, free: 8.801 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.3276, allocations: 33.7 kB / 307.9 MB, free: 8.762 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.3278, allocations: 195.2 kB / 308.1 MB, free: 8.57 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.43e-05/0.3279, allocations: 59.19 kB / 308.2 MB, free: 8.512 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.3279, allocations: 4 kB / 308.2 MB, free: 8.508 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3281, allocations: 326.8 kB / 308.5 MB, free: 8.18 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.3283, allocations: 60.62 kB / 308.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.3286, allocations: 124.1 kB / 308.7 MB, free: 7.973 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002361/0.3289, allocations: 67.94 kB / 308.8 MB, free: 7.906 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.3289, allocations: 4 kB / 308.8 MB, free: 7.902 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006308/0.3295, allocations: 237.3 kB / 309 MB, free: 7.664 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.3296, allocations: 11.94 kB / 309 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.3296, allocations: 0 / 309 MB, free: 7.652 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.3296, allocations: 7.938 kB / 309 MB, free: 7.645 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002372/0.3299, allocations: 27.92 kB / 309 MB, free: 7.617 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.3299, allocations: 12.17 kB / 309 MB, free: 7.605 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.3301, allocations: 31.67 kB / 309.1 MB, free: 7.574 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.3302, allocations: 16 kB / 309.1 MB, free: 7.559 MB / 250.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,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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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.0002265/0.3304, allocations: 149.8 kB / 309.2 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.759e-05/0.3305, allocations: 15.89 kB / 309.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005783/0.331, allocations: 194.3 kB / 309.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.3311, allocations: 0 / 309.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.3311, allocations: 8 kB / 309.5 MB, free: 7.18 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3311, allocations: 7.953 kB / 309.5 MB, free: 7.172 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.3323, allocations: 0.5611 MB / 310 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.3324, allocations: 0 / 310 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.3325, allocations: 15.98 kB / 310 MB, free: 6.539 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.3326, allocations: 4 kB / 310 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.3326, allocations: 11.95 kB / 310.1 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.3326, allocations: 0 / 310.1 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3326, allocations: 0 / 310.1 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005454/0.3332, allocations: 279.1 kB / 310.3 MB, free: 6.234 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.521e-05/0.3333, allocations: 88.95 kB / 310.4 MB, free: 6.129 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.717e-05/0.3333, allocations: 11.98 kB / 310.4 MB, free: 6.117 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.3335, allocations: 11.95 kB / 310.4 MB, free: 6.105 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3336, allocations: 27.97 kB / 310.5 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.764e-05/0.3336, allocations: 11.92 kB / 310.5 MB, free: 6.066 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.468e-05/0.3337, allocations: 95.27 kB / 310.6 MB, free: 5.973 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3338, allocations: 0 / 310.6 MB, free: 5.973 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004211/0.3342, allocations: 47.84 kB / 310.6 MB, free: 5.926 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,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.0002054/0.3344, allocations: 111.2 kB / 310.7 MB, free: 5.809 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005432/0.335, allocations: 176.1 kB / 310.9 MB, free: 5.637 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.335, allocations: 4.125 kB / 310.9 MB, free: 5.633 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002173/0.3352, allocations: 79.91 kB / 311 MB, free: 5.555 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.3355, allocations: 19.98 kB / 311 MB, free: 5.535 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009421/0.3365, allocations: 389.5 kB / 311.4 MB, free: 5.121 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004575/0.337, allocations: 0.7406 MB / 312.1 MB, free: 4.355 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3371, allocations: 19.44 kB / 312.1 MB, free: 4.336 MB / 250.7 MB Notification: Performance of SimCode: time 1.172e-06/0.3371, allocations: 3.938 kB / 312.1 MB, free: 4.332 MB / 250.7 MB Notification: Performance of Templates: time 0.006689/0.3438, allocations: 2.26 MB / 314.4 MB, free: 2.074 MB / 250.7 MB