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_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadModel(Modelica): time 1.87/1.87, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.341e-05, allocations: 0 / 258.8 MB, free: 8.066 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3395, allocations: 44.51 MB / 303.3 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002025/0.3415, allocations: 1.18 MB / 304.5 MB, free: 11.9 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000693/0.3423, allocations: 215.3 kB / 304.7 MB, free: 11.74 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.544e-05/0.3424, allocations: 4.562 kB / 304.7 MB, free: 11.74 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.3425, allocations: 27.97 kB / 304.7 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.844e-05/0.3426, allocations: 3.984 kB / 304.7 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003598/0.3429, allocations: 90.31 kB / 304.8 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.3432, allocations: 119.7 kB / 304.9 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002657/0.3435, allocations: 108.6 kB / 305.1 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.359e-05/0.3436, allocations: 59.12 kB / 305.1 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.3437, allocations: 69.36 kB / 305.2 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.427e-05/0.3438, allocations: 16.47 kB / 305.2 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.345e-05/0.3439, allocations: 8.812 kB / 305.2 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.115e-05/0.344, allocations: 37 kB / 305.2 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.344, allocations: 11.72 kB / 305.3 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002618/0.3443, allocations: 150.7 kB / 305.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3443, allocations: 1.031 kB / 305.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3443, allocations: 0 / 305.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.3443, allocations: 0 / 305.4 MB, free: 11.25 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.0007523/0.3451, allocations: 439.7 kB / 305.8 MB, free: 10.82 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3451, allocations: 13.03 kB / 305.8 MB, free: 10.82 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.3452, allocations: 22.66 kB / 305.9 MB, free: 10.81 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.3456, allocations: 228.8 kB / 306.1 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-05/0.3456, allocations: 19.62 kB / 306.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.701e-05/0.3457, allocations: 24.19 kB / 306.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.3463, allocations: 230.4 kB / 306.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3463, allocations: 0 / 306.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.3464, allocations: 14.06 kB / 306.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3464, allocations: 5.219 kB / 306.4 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005602/0.3469, allocations: 167.1 kB / 306.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.3491, allocations: 0.6897 MB / 307.2 MB, free: 9.516 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007109/0.3499, allocations: 167.4 kB / 307.4 MB, free: 9.344 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.35, allocations: 4.188 kB / 307.4 MB, free: 9.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004586/0.3504, allocations: 123.4 kB / 307.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 4.699e-06/0.3505, allocations: 0 / 307.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.00109/0.3516, allocations: 219.4 kB / 307.7 MB, free: 8.988 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.3517, allocations: 63.39 kB / 307.8 MB, free: 8.914 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002324/0.3519, allocations: 133 kB / 307.9 MB, free: 8.773 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.549e-05/0.352, allocations: 41.64 kB / 308 MB, free: 8.727 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.3522, allocations: 120.7 kB / 308.1 MB, free: 8.605 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.3523, allocations: 63.19 kB / 308.1 MB, free: 8.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.709e-05/0.3524, allocations: 8 kB / 308.1 MB, free: 8.535 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3526, allocations: 334.8 kB / 308.5 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.3529, allocations: 60.62 kB / 308.5 MB, free: 8.137 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.3533, allocations: 116.1 kB / 308.6 MB, free: 8 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.3537, allocations: 71.94 kB / 308.7 MB, free: 7.93 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.3537, allocations: 0 / 308.7 MB, free: 7.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001063/0.3548, allocations: 237.3 kB / 308.9 MB, free: 7.691 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.3548, allocations: 4 kB / 309 MB, free: 7.688 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3549, allocations: 4.219 kB / 309 MB, free: 7.684 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.998e-05/0.3549, allocations: 8 kB / 309 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003292/0.3553, allocations: 35.84 kB / 309 MB, free: 7.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-05/0.3553, allocations: 7.953 kB / 309 MB, free: 7.633 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002541/0.3556, allocations: 27.69 kB / 309 MB, free: 7.605 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.796e-05/0.3557, allocations: 12 kB / 309 MB, free: 7.594 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.0002832/0.356, allocations: 160.8 kB / 309.2 MB, free: 7.43 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.735e-05/0.356, allocations: 7.906 kB / 309.2 MB, free: 7.422 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000741/0.3568, allocations: 214.2 kB / 309.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.3568, allocations: 0 / 309.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.3568, allocations: 0 / 309.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.235e-05/0.3569, allocations: 3.953 kB / 309.4 MB, free: 7.199 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.3586, allocations: 0.5651 MB / 310 MB, free: 6.578 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.3586, allocations: 3.938 kB / 310 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.3588, allocations: 16 kB / 310 MB, free: 6.559 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.17e-05/0.3589, allocations: 3.984 kB / 310 MB, free: 6.555 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.262e-05/0.3589, allocations: 11.95 kB / 310 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.3589, allocations: 0 / 310 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3589, allocations: 0 / 310 MB, free: 6.543 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006967/0.3597, allocations: 279.1 kB / 310.3 MB, free: 6.254 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.994e-05/0.3598, allocations: 92.86 kB / 310.4 MB, free: 6.145 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.636e-05/0.3598, allocations: 8 kB / 310.4 MB, free: 6.137 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.3601, allocations: 19.94 kB / 310.4 MB, free: 6.117 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.3603, allocations: 23.97 kB / 310.4 MB, free: 6.094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.3603, allocations: 4 kB / 310.4 MB, free: 6.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001179/0.3604, allocations: 99.2 kB / 310.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.3605, allocations: 0 / 310.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0007048/0.3612, allocations: 47.84 kB / 310.6 MB, free: 5.945 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.0002849/0.3615, allocations: 119.2 kB / 310.7 MB, free: 5.82 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007608/0.3623, allocations: 179.8 kB / 310.9 MB, free: 5.645 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.3623, allocations: 0 / 310.9 MB, free: 5.645 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00032/0.3626, allocations: 79.91 kB / 311 MB, free: 5.566 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.3631, allocations: 18.56 kB / 311 MB, free: 5.551 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.3643, allocations: 368.2 kB / 311.3 MB, free: 5.164 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.3648, allocations: 0.7406 MB / 312.1 MB, free: 4.398 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.365, allocations: 21.95 kB / 312.1 MB, free: 4.379 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001382/0.3652, allocations: 23.42 kB / 312.1 MB, free: 4.355 MB / 250.7 MB Notification: Performance of SimCode: time 1.453e-06/0.3652, allocations: 8 kB / 312.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of Templates: time 0.01045/0.3757, allocations: 1.644 MB / 313.8 MB, free: 2.715 MB / 250.7 MB