Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadModel(Modelica): time 2.154/2.154, allocations: 225.8 MB / 239.4 MB, free: 1.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.965e-05, allocations: 4 kB / 292.7 MB, free: 11.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09154/0.0916, allocations: 50.41 MB / 343.1 MB, free: 9.094 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4599, allocations: 81.1 MB / 424.2 MB, free: 8.168 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003337/0.4603, allocations: 89.39 kB / 424.3 MB, free: 8.156 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03311/0.4934, allocations: 6.649 MB / 430.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.155e-06/0.4935, allocations: 0 / 430.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.283e-05/0.4935, allocations: 3.812 kB / 430.9 MB, free: 6.512 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000825/0.4944, allocations: 0.4938 MB / 431.4 MB, free: 6.031 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.4945, allocations: 7.781 kB / 431.4 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.4946, allocations: 23.25 kB / 431.4 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007338/0.4953, allocations: 292.7 kB / 431.7 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.4954, allocations: 0 / 431.7 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.075e-05/0.4955, allocations: 11.5 kB / 431.7 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.496, allocations: 145 kB / 431.9 MB, free: 5.668 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.496, allocations: 4 kB / 431.9 MB, free: 5.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.4961, allocations: 3.953 kB / 431.9 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.07e-06/0.4961, allocations: 7.906 kB / 431.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.4963, allocations: 42.84 kB / 431.9 MB, free: 5.648 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009012/0.4972, allocations: 384.7 kB / 432.3 MB, free: 5.324 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003316/0.4976, allocations: 120.3 kB / 432.4 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.4977, allocations: 43.66 kB / 432.5 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.12e-05/0.4978, allocations: 3.984 kB / 432.5 MB, free: 5.207 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.4981, allocations: 90.81 kB / 432.6 MB, free: 5.137 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 6.254e-06/0.4981, allocations: 0 / 432.6 MB, free: 5.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005455/0.4986, allocations: 117.4 kB / 432.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.4988, allocations: 157.5 kB / 432.8 MB, free: 4.898 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000645/0.4994, allocations: 304.3 kB / 433.1 MB, free: 4.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.4995, allocations: 33.55 kB / 433.2 MB, free: 4.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.4996, allocations: 125.4 kB / 433.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.4997, allocations: 14.41 kB / 433.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/0.4997, allocations: 3.188 kB / 433.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.663e-05/0.4999, allocations: 340.5 kB / 433.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.5, allocations: 19.56 kB / 433.6 MB, free: 4.309 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.5002, allocations: 95.39 kB / 433.7 MB, free: 4.238 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.5003, allocations: 35.31 kB / 433.8 MB, free: 4.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.017e-06/0.5004, allocations: 0 / 433.8 MB, free: 4.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004492/0.5008, allocations: 120.6 kB / 433.9 MB, free: 4.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.5009, allocations: 7.969 kB / 433.9 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.863e-06/0.5009, allocations: 3.844 kB / 433.9 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.425e-05/0.501, allocations: 0 / 433.9 MB, free: 4.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000249/0.5012, allocations: 22.5 kB / 433.9 MB, free: 4.164 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.5013, allocations: 7.828 kB / 433.9 MB, free: 4.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002419/0.5015, allocations: 7.75 kB / 433.9 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.5016, allocations: 3.812 kB / 433.9 MB, free: 4.156 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001208/0.5017, allocations: 109.8 kB / 434.1 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.5019, allocations: 75.33 kB / 434.1 MB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004596/0.5024, allocations: 116.6 kB / 434.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.487e-06/0.5024, allocations: 0 / 434.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.59e-06/0.5025, allocations: 3.844 kB / 434.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.5025, allocations: 128 / 434.2 MB, free: 3.945 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000371/0.5029, allocations: 256.1 kB / 434.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.508e-06/0.5029, allocations: 0 / 434.5 MB, free: 3.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.5031, allocations: 15.59 kB / 434.5 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.194e-05/0.5032, allocations: 3.984 kB / 434.5 MB, free: 3.707 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.5032, allocations: 15.33 kB / 434.5 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.776e-06/0.5032, allocations: 3.531 kB / 434.5 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.481e-06/0.5032, allocations: 0 / 434.5 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004603/0.5037, allocations: 191.7 kB / 434.7 MB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001976/0.504, allocations: 123.4 kB / 434.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.485e-05/0.5041, allocations: 3.844 kB / 434.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.5043, allocations: 3.844 kB / 434.8 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.214e-05/0.5044, allocations: 11.7 kB / 434.9 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.5044, allocations: 3.844 kB / 434.9 MB, free: 3.438 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004733/0.5049, allocations: 241.4 kB / 435.1 MB, free: 3.336 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.375e-06/0.5049, allocations: 0 / 435.1 MB, free: 3.336 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007461/0.5057, allocations: 54 kB / 435.2 MB, free: 3.32 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002206/0.5079, allocations: 429.7 kB / 435.6 MB, free: 3.082 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004686/0.5085, allocations: 82.66 kB / 435.7 MB, free: 3.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.168e-06/0.5085, allocations: 7.875 kB / 435.7 MB, free: 3.066 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.5086, allocations: 29.73 kB / 435.7 MB, free: 3.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007154/0.5094, allocations: 60.5 kB / 435.7 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006295/0.51, allocations: 278.2 kB / 436 MB, free: 2.883 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.5104, allocations: 0.7477 MB / 436.8 MB, free: 18.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.5106, allocations: 24.92 kB / 436.8 MB, free: 18.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.148e-05/0.5107, allocations: 23.83 kB / 436.8 MB, free: 18.14 MB / 346.7 MB Notification: Performance of SimCode: time 1.892e-06/0.5107, allocations: 0 / 436.8 MB, free: 18.14 MB / 346.7 MB Notification: Performance of Templates: time 0.008015/0.5187, allocations: 2.718 MB / 439.5 MB, free: 16.8 MB / 346.7 MB