Running command: translateModel(Modelica.StateGraph.Examples.ShowCompositeStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|compositeStep.transition3.enableFire|compositeStep.transition4.enableFire|compositeStep.transition4a.enableFire|compositeStep.transition5.enableFire|compositeStep.transition6.enableFire|compositeStep.transition6a.enableFire|transition1.enableFire|transition2.enableFire|transition7.enableFire",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 2.195/2.195, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.053e-05/3.043e-05, allocations: 7.984 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3025, allocations: 44.49 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.ShowCompositeStep): time 0.003763/0.3064, allocations: 2.227 MB / 305.5 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002671/0.3091, allocations: 0.9085 MB / 306.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003703/0.3095, allocations: 32.44 kB / 306.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002692/0.3098, allocations: 94.78 kB / 306.5 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.3101, allocations: 47.47 kB / 306.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.3114, allocations: 386.2 kB / 307 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.3127, allocations: 0.6133 MB / 307.6 MB, free: 9.336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.3137, allocations: 0.5973 MB / 308.2 MB, free: 8.785 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003641/0.3141, allocations: 263.4 kB / 308.4 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005061/0.3146, allocations: 298.8 kB / 308.7 MB, free: 8.234 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001929/0.3148, allocations: 55.98 kB / 308.8 MB, free: 8.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.315, allocations: 47.94 kB / 308.8 MB, free: 8.133 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002519/0.3152, allocations: 191.4 kB / 309 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.3154, allocations: 56 kB / 309.1 MB, free: 7.891 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.3167, allocations: 0.9214 MB / 310 MB, free: 6.969 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3168, allocations: 0 / 310 MB, free: 6.969 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3168, allocations: 0 / 310 MB, free: 6.969 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.08e-05/0.3168, allocations: 0 / 310 MB, free: 6.969 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002137/0.3189, allocations: 0.9151 MB / 310.9 MB, free: 5.992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.112e-05/0.319, allocations: 8.031 kB / 310.9 MB, free: 5.984 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002633/0.3193, allocations: 94.88 kB / 311 MB, free: 5.891 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009766/0.3203, allocations: 0.4936 MB / 311.5 MB, free: 5.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.3204, allocations: 93.94 kB / 311.6 MB, free: 5.262 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002484/0.3207, allocations: 116 kB / 311.7 MB, free: 5.148 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.3234, allocations: 1.031 MB / 312.7 MB, free: 4.094 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.371e-05/0.3235, allocations: 0 / 312.7 MB, free: 4.094 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.3236, allocations: 43.94 kB / 312.8 MB, free: 4.051 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-05/0.3237, allocations: 24 kB / 312.8 MB, free: 4.027 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002448/0.3261, allocations: 0.8315 MB / 313.6 MB, free: 3.195 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006135/0.3323, allocations: 2.975 MB / 316.6 MB, free: 116 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.3343, allocations: 0.7297 MB / 317.3 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.037e-05/0.3344, allocations: 17 kB / 317.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.3355, allocations: 433.5 kB / 317.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=104): time 4.549e-06/0.3356, allocations: 0 / 317.8 MB, free: 14.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=104): time 0.002722/0.3383, allocations: 0.9373 MB / 318.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/0.3384, allocations: 80.39 kB / 318.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005364/0.3389, allocations: 324.7 kB / 319.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.3391, allocations: 77.69 kB / 319.2 MB, free: 13.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003572/0.3395, allocations: 375.4 kB / 319.5 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.3398, allocations: 260.6 kB / 319.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.283e-05/0.3399, allocations: 28 kB / 319.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001913/0.3401, allocations: 362.7 kB / 320.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009423/0.3411, allocations: 310.5 kB / 320.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.3422, allocations: 0.5372 MB / 321 MB, free: 11.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009434/0.3432, allocations: 318.4 kB / 321.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.3432, allocations: 0 / 321.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002502/0.3457, allocations: 0.9608 MB / 322.3 MB, free: 10.26 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.3458, allocations: 10.03 kB / 322.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.3458, allocations: 8 kB / 322.3 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.537e-05/0.3459, allocations: 15.94 kB / 322.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007599/0.3466, allocations: 119.7 kB / 322.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.21e-05/0.3467, allocations: 16.53 kB / 322.5 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006376/0.3473, allocations: 130.9 kB / 322.6 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.3475, allocations: 47.98 kB / 322.6 MB, free: 9.922 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 133 ($PRE.compositeStep.transition3.enableFire,$PRE.compositeStep.transition4.enableFire,$PRE.compositeStep.transition5.enableFire,$PRE.compositeStep.transition6.enableFire,$PRE.compositeStep.transition4a.enableFire,$PRE.compositeStep.transition6a.enableFire,$PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition7.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,compositeStep.resume[1].set,compositeStep.suspend[1].reset,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,$PRE.compositeStep.newActive,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.enableFire,compositeStep.transition3.fire,$PRE.compositeStep.transition3.t_start,compositeStep.transition3.t_start,compositeStep.transition4.enableFire,compositeStep.transition4.fire,$PRE.compositeStep.transition4.t_start,compositeStep.transition4.t_start,compositeStep.step3.active,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step4.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.transition5.enableFire,compositeStep.transition5.fire,$PRE.compositeStep.transition5.t_start,compositeStep.transition5.t_start,compositeStep.transition6.enableFire,compositeStep.transition6.fire,$PRE.compositeStep.transition6.t_start,compositeStep.transition6.t_start,compositeStep.transition4a.enableFire,compositeStep.transition4a.fire,$PRE.compositeStep.transition4a.t_start,compositeStep.transition4a.t_start,compositeStep.step4a.active,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,compositeStep.initStep.active,$PRE.compositeStep.initStep.localActive,compositeStep.initStep.localActive,compositeStep.initStep.outPort[1].reset,$PRE.compositeStep.initStep.newActive,compositeStep.initStep.newActive,$PRE.compositeStep.initStep.oldActive,compositeStep.initStep.oldActive,compositeStep.exitStep.active,$PRE.compositeStep.exitStep.localActive,compositeStep.exitStep.localActive,compositeStep.exitStep.inPort[1].set,$PRE.compositeStep.exitStep.newActive,compositeStep.exitStep.newActive,$PRE.compositeStep.exitStep.oldActive,compositeStep.exitStep.oldActive,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.active,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,transition1.enableFire,transition1.fire,transition1.outPort.occupied,$PRE.transition1.t_start,transition1.t_start,step1.active,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,step6.active,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,transition7.condition,transition7.enableFire,Parallel1.outPort.available,stateGraphRoot.activeSteps,compositeStep.stateGraphRoot.resume,compositeStep.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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.0006742/0.3482, allocations: 356.8 kB / 323 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.3483, allocations: 51.42 kB / 323 MB, free: 9.512 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002163/0.3505, allocations: 0.7769 MB / 323.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.3505, allocations: 15.94 kB / 323.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3506, allocations: 0 / 323.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.441e-05/0.3506, allocations: 3.984 kB / 323.8 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004561/0.3552, allocations: 1.855 MB / 325.7 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.3552, allocations: 3.938 kB / 325.7 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005166/0.3557, allocations: 75.78 kB / 325.8 MB, free: 6.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.454e-05/0.3558, allocations: 4 kB / 325.8 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.718e-05/0.3558, allocations: 19.98 kB / 325.8 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/0.3559, allocations: 4 kB / 325.8 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3559, allocations: 0 / 325.8 MB, free: 6.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.3578, allocations: 0.8278 MB / 326.6 MB, free: 5.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.3579, allocations: 128.4 kB / 326.7 MB, free: 5.703 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.3581, allocations: 31.94 kB / 326.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000441/0.3585, allocations: 39.97 kB / 326.8 MB, free: 5.633 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003941/0.3589, allocations: 128.8 kB / 326.9 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.359, allocations: 35.98 kB / 327 MB, free: 5.469 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002236/0.3593, allocations: 173.9 kB / 327.1 MB, free: 5.297 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3593, allocations: 0 / 327.1 MB, free: 5.297 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009081/0.3602, allocations: 223.2 kB / 327.4 MB, free: 5.078 MB / 266.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: 80 (compositeStep.transition4a.enableFire,compositeStep.transition4.enableFire,step6.localActive,transition2.enableFire,transition1.enableFire,step1.localActive,step0.localActive,compositeStep.exitStep.localActive,compositeStep.transition5.enableFire,compositeStep.transition6.enableFire,compositeStep.transition6a.enableFire,compositeStep.initStep.localActive,compositeStep.transition3.enableFire,compositeStep.step4a.localActive,compositeStep.step4.localActive,compositeStep.step3.localActive,$cse1,$cse2,$cse3,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,compositeStep.active,compositeStep.newActive,compositeStep.activeSteps,compositeStep.transition3.fire,compositeStep.transition3.t_start,compositeStep.transition4.fire,compositeStep.transition4.t_start,compositeStep.step3.active,compositeStep.step3.newActive,compositeStep.step3.oldActive,compositeStep.step4.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.active,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.active,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.exitStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.active,step0.newActive,step0.oldActive,transition1.fire,transition1.outPort.occupied,transition1.t_start,step1.active,step1.newActive,step1.oldActive,transition2.fire,transition2.t_start,step6.active,step6.newActive,step6.oldActive,transition7.condition,transition7.enableFire,Parallel1.outPort.available,stateGraphRoot.activeSteps) * Number of discrete states: 9 (compositeStep.step3.newActive,compositeStep.step4.newActive,compositeStep.step4a.newActive,compositeStep.initStep.newActive,compositeStep.exitStep.newActive,compositeStep.newActive,step0.newActive,step1.newActive,step6.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 16 * 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.0003242/0.3605, allocations: 163.3 kB / 327.5 MB, free: 4.902 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/0.3628, allocations: 0.8384 MB / 328.4 MB, free: 4.066 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3628, allocations: 0 / 328.4 MB, free: 4.066 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009809/0.3638, allocations: 397.5 kB / 328.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.3644, allocations: 73.66 kB / 328.8 MB, free: 3.613 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00333/0.3678, allocations: 1.49 MB / 330.3 MB, free: 2.082 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006916/0.3685, allocations: 0.9668 MB / 331.3 MB, free: 1.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/0.369, allocations: 79.39 kB / 331.4 MB, free: 1.008 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.369, allocations: 0 / 331.4 MB, free: 1.008 MB / 266.7 MB Notification: Performance of Templates: time 0.02271/0.3917, allocations: 9.787 MB / 341.1 MB, free: 7.203 MB / 282.7 MB