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.1_cpp_Modelica.StateGraph.Examples.ShowCompositeStep") Notification: Performance of loadModel(Modelica): time 1.654/1.654, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.218e-05, allocations: 4 kB / 225 MB, free: 2.719 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2145, allocations: 38.78 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3163, allocations: 67.1 MB / 330.9 MB, free: 6.656 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.3166, allocations: 63.97 kB / 330.9 MB, free: 6.594 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05037/0.367, allocations: 13.5 MB / 344.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.166e-06/0.367, allocations: 4 kB / 344.4 MB, free: 9.004 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.967e-05/0.3671, allocations: 27.94 kB / 344.5 MB, free: 8.977 MB / 298.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.002024/0.3691, allocations: 0.9152 MB / 345.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3692, allocations: 12.03 kB / 345.4 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000313/0.3695, allocations: 94.95 kB / 345.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.3706, allocations: 493.9 kB / 346 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.3707, allocations: 90 kB / 346 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002236/0.371, allocations: 120 kB / 346.2 MB, free: 7.148 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.3735, allocations: 1.012 MB / 347.2 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.3736, allocations: 0 / 347.2 MB, free: 6.113 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.3738, allocations: 40 kB / 347.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/0.3738, allocations: 24 kB / 347.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/0.3759, allocations: 0.7966 MB / 348 MB, free: 5.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005704/0.3817, allocations: 2.909 MB / 350.9 MB, free: 2.234 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.3833, allocations: 0.6958 MB / 351.6 MB, free: 1.527 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008016/0.3842, allocations: 371.1 kB / 352 MB, free: 1.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.281e-05/0.3843, allocations: 16.75 kB / 352 MB, free: 1.145 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009508/0.3852, allocations: 415.6 kB / 352.4 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of pre-optimization done (n=104): time 1.705e-05/0.3853, allocations: 0 / 352.4 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.001719/0.387, allocations: 0.6728 MB / 353.1 MB, free: 52 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.453e-05/0.3871, allocations: 80.38 kB / 353.2 MB, free: 15.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005381/0.3877, allocations: 321.9 kB / 353.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001707/0.3879, allocations: 77.69 kB / 353.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003537/0.3882, allocations: 379.4 kB / 353.9 MB, free: 15.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003209/0.3886, allocations: 252.8 kB / 354.2 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.672e-05/0.3887, allocations: 28 kB / 354.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.3889, allocations: 358.8 kB / 354.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008118/0.3897, allocations: 298.6 kB / 354.8 MB, free: 14.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.3908, allocations: 0.5191 MB / 355.4 MB, free: 13.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008144/0.3916, allocations: 316.9 kB / 355.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-06/0.3916, allocations: 0 / 355.7 MB, free: 13.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002246/0.3939, allocations: 0.9295 MB / 356.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.3939, allocations: 8 kB / 356.6 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.3939, allocations: 4.812 kB / 356.6 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.413e-05/0.394, allocations: 12 kB / 356.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000575/0.3946, allocations: 131.6 kB / 356.8 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.986e-05/0.3946, allocations: 15.94 kB / 356.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005259/0.3952, allocations: 75.66 kB / 356.8 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.3953, allocations: 51.98 kB / 356.9 MB, free: 12.12 MB / 314.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.resume[1].set,compositeStep.suspend[1].reset,compositeStep.transition6a.condition,compositeStep.transition4a.condition,compositeStep.transition6.condition,compositeStep.transition5.condition,compositeStep.transition4.condition,compositeStep.transition3.condition,$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,$PRE.compositeStep.step3.localActive,compositeStep.step3.localActive,$PRE.compositeStep.step3.newActive,compositeStep.step3.newActive,$PRE.compositeStep.step3.oldActive,compositeStep.step3.oldActive,compositeStep.step3.active,$PRE.compositeStep.step4.localActive,compositeStep.step4.localActive,$PRE.compositeStep.step4.newActive,compositeStep.step4.newActive,$PRE.compositeStep.step4.oldActive,compositeStep.step4.oldActive,compositeStep.step4.active,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,$PRE.compositeStep.step4a.localActive,compositeStep.step4a.localActive,$PRE.compositeStep.step4a.newActive,compositeStep.step4a.newActive,$PRE.compositeStep.step4a.oldActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.enableFire,compositeStep.transition6a.fire,$PRE.compositeStep.transition6a.t_start,compositeStep.transition6a.t_start,$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.initStep.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.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,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.0003582/0.3957, allocations: 244 kB / 357.1 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.3958, allocations: 51.39 kB / 357.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001862/0.3977, allocations: 0.7691 MB / 358 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/0.3978, allocations: 8 kB / 358 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.093e-06/0.3978, allocations: 4 kB / 358 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-05/0.3978, allocations: 7.969 kB / 358 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004146/0.402, allocations: 1.806 MB / 359.8 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.242e-06/0.402, allocations: 0 / 359.8 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003854/0.4024, allocations: 79.81 kB / 359.9 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.416e-05/0.4024, allocations: 7.938 kB / 359.9 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.755e-05/0.4025, allocations: 19.98 kB / 359.9 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.224e-05/0.4026, allocations: 7.953 kB / 359.9 MB, free: 9.051 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.209e-06/0.4026, allocations: 3.938 kB / 359.9 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.4043, allocations: 0.8083 MB / 360.7 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.4045, allocations: 120.5 kB / 360.8 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.4046, allocations: 24 kB / 360.8 MB, free: 8.066 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003532/0.4049, allocations: 39.97 kB / 360.9 MB, free: 8.027 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003655/0.4053, allocations: 140.7 kB / 361 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.4054, allocations: 35.98 kB / 361.1 MB, free: 7.852 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002298/0.4057, allocations: 163.1 kB / 361.2 MB, free: 7.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.33e-07/0.4057, allocations: 0 / 361.2 MB, free: 7.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008728/0.4066, allocations: 168 kB / 361.4 MB, free: 7.527 MB / 314.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.newActive,compositeStep.step3.oldActive,compositeStep.step3.active,compositeStep.step4.newActive,compositeStep.step4.oldActive,compositeStep.step4.active,compositeStep.transition5.fire,compositeStep.transition5.t_start,compositeStep.transition6.fire,compositeStep.transition6.t_start,compositeStep.transition4a.fire,compositeStep.transition4a.t_start,compositeStep.step4a.newActive,compositeStep.step4a.oldActive,compositeStep.step4a.active,compositeStep.transition6a.fire,compositeStep.transition6a.t_start,compositeStep.initStep.outPort[1].reset,compositeStep.initStep.newActive,compositeStep.initStep.oldActive,compositeStep.initStep.active,compositeStep.exitStep.inPort[1].set,compositeStep.exitStep.newActive,compositeStep.exitStep.oldActive,compositeStep.exitStep.active,compositeStep.Alternative1.split[2].available,compositeStep.Alternative1.split[3].available,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,transition7.enableFire,Parallel1.inPort.occupied,Parallel1.outPort.available,setCondition.y,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.000322/0.4069, allocations: 183.2 kB / 361.6 MB, free: 7.328 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001895/0.4088, allocations: 0.7985 MB / 362.4 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.1e-06/0.4089, allocations: 0 / 362.4 MB, free: 6.531 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008321/0.4097, allocations: 383.7 kB / 362.7 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005379/0.4103, allocations: 70.16 kB / 362.8 MB, free: 6.09 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.4134, allocations: 1.091 MB / 363.9 MB, free: 4.965 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008246/0.4142, allocations: 0.9587 MB / 364.9 MB, free: 3.977 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004156/0.4146, allocations: 83.39 kB / 364.9 MB, free: 3.895 MB / 314.7 MB Notification: Performance of SimCode: time 2.246e-06/0.4147, allocations: 0 / 364.9 MB, free: 3.895 MB / 314.7 MB Notification: Performance of Templates: time 0.1977/0.6124, allocations: 9.715 MB / 374.6 MB, free: 87.16 MB / 314.7 MB