Running command: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Discrete") Notification: Performance of loadModel(ModelicaTest): time 2.423/2.423, allocations: 270.1 MB / 283.6 MB, free: 3.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.594e-05/3.626e-05, allocations: 4 kB / 348.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1144, allocations: 61.9 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4118/0.5263, allocations: 88.85 MB / 499.1 MB, free: 15.27 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.5265, allocations: 63.97 kB / 499.2 MB, free: 15.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01845/0.545, allocations: 3.979 MB / 0.4914 GB, free: 11.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.499e-06/0.545, allocations: 0 / 0.4914 GB, free: 11.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.5451, allocations: 4 kB / 0.4914 GB, free: 11.21 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001296/0.5464, allocations: 0.5806 MB / 0.492 GB, free: 10.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5465, allocations: 8.031 kB / 0.492 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.5466, allocations: 31.72 kB / 0.492 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.547, allocations: 239.6 kB / 0.4922 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.547, allocations: 23.94 kB / 0.4922 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.872e-05/0.5471, allocations: 23.98 kB / 0.4923 GB, free: 10.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005455/0.5477, allocations: 217.5 kB / 0.4925 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.5477, allocations: 0 / 0.4925 GB, free: 10.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.834e-05/0.5477, allocations: 8 kB / 0.4925 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.5478, allocations: 4 kB / 0.4925 GB, free: 9.996 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.5481, allocations: 119.9 kB / 0.4926 GB, free: 9.879 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.5496, allocations: 0.5665 MB / 0.4931 GB, free: 9.262 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006825/0.5503, allocations: 305.3 kB / 0.4934 GB, free: 8.957 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.5506, allocations: 116.8 kB / 0.4936 GB, free: 8.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.78e-05/0.5507, allocations: 11.98 kB / 0.4936 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005408/0.5512, allocations: 239.5 kB / 0.4938 GB, free: 8.582 MB / 410.7 MB Notification: Performance of pre-optimization done (n=43): time 4.819e-06/0.5512, allocations: 0 / 0.4938 GB, free: 8.582 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.001086/0.5523, allocations: 437.1 kB / 0.4942 GB, free: 8.148 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.958e-05/0.5524, allocations: 71.39 kB / 0.4943 GB, free: 8.066 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.5527, allocations: 187 kB / 0.4945 GB, free: 7.879 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.635e-05/0.5528, allocations: 45.7 kB / 0.4945 GB, free: 7.828 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.5529, allocations: 137 kB / 0.4946 GB, free: 7.688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.5531, allocations: 102.8 kB / 0.4947 GB, free: 7.586 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.661e-05/0.5531, allocations: 8 kB / 0.4947 GB, free: 7.578 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.5533, allocations: 342.8 kB / 0.4951 GB, free: 7.234 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.5536, allocations: 89.12 kB / 0.4951 GB, free: 7.148 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.554, allocations: 280.2 kB / 0.4954 GB, free: 6.789 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.5544, allocations: 143.8 kB / 0.4956 GB, free: 6.648 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.998e-06/0.5544, allocations: 0 / 0.4956 GB, free: 6.648 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009858/0.5554, allocations: 417.1 kB / 0.4959 GB, free: 6.234 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.5555, allocations: 8 kB / 0.496 GB, free: 6.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.5555, allocations: 4 kB / 0.496 GB, free: 6.223 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.055e-05/0.5555, allocations: 12 kB / 0.496 GB, free: 6.211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.5558, allocations: 63.78 kB / 0.496 GB, free: 6.148 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.197e-05/0.5559, allocations: 11.95 kB / 0.496 GB, free: 6.137 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002997/0.5562, allocations: 44.17 kB / 0.4961 GB, free: 6.094 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.5563, allocations: 24.05 kB / 0.4961 GB, free: 6.07 MB / 410.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: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,sampler.y,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002615/0.5565, allocations: 176.7 kB / 0.4963 GB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-05/0.5566, allocations: 27.7 kB / 0.4963 GB, free: 5.863 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.238e-05/0.5567, allocations: 26.78 kB / 0.4963 GB, free: 5.836 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.467e-06/0.5567, allocations: 4 kB / 0.4963 GB, free: 5.832 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5568, allocations: 4 kB / 0.4963 GB, free: 5.828 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.5568, allocations: 7.938 kB / 0.4963 GB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.5589, allocations: 0.9244 MB / 0.4972 GB, free: 4.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.987e-06/0.5589, allocations: 0 / 0.4972 GB, free: 4.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.5591, allocations: 19.92 kB / 0.4973 GB, free: 4.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.281e-05/0.5591, allocations: 4 kB / 0.4973 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.199e-05/0.5591, allocations: 11.98 kB / 0.4973 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.192e-06/0.5592, allocations: 0 / 0.4973 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.002e-06/0.5592, allocations: 0 / 0.4973 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.5603, allocations: 0.5422 MB / 0.4978 GB, free: 4.246 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.5604, allocations: 100.8 kB / 0.4979 GB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.008e-05/0.5605, allocations: 19.98 kB / 0.4979 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/0.5609, allocations: 31.97 kB / 0.498 GB, free: 4.078 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.575e-05/0.561, allocations: 31.95 kB / 0.498 GB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.561, allocations: 15.98 kB / 0.498 GB, free: 4.031 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002076/0.5613, allocations: 153.5 kB / 0.4981 GB, free: 3.883 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.77e-07/0.5613, allocations: 0 / 0.4981 GB, free: 3.883 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005935/0.5619, allocations: 75.92 kB / 0.4982 GB, free: 3.809 MB / 410.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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulseStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.0002309/0.5621, allocations: 131.2 kB / 0.4983 GB, free: 3.672 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007761/0.5629, allocations: 305 kB / 0.4986 GB, free: 3.375 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.292e-06/0.5629, allocations: 4.125 kB / 0.4986 GB, free: 3.371 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.5633, allocations: 155.8 kB / 0.4988 GB, free: 3.219 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004373/0.5638, allocations: 35.91 kB / 0.4988 GB, free: 3.184 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.5651, allocations: 387.3 kB / 0.4992 GB, free: 2.777 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.5656, allocations: 0.7686 MB / 0.4999 GB, free: 1.984 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.5658, allocations: 38.97 kB / 0.5 GB, free: 1.949 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.552e-05/0.5659, allocations: 27.44 kB / 0.5 GB, free: 1.922 MB / 410.7 MB Notification: Performance of SimCode: time 1.953e-06/0.5659, allocations: 0 / 0.5 GB, free: 1.922 MB / 410.7 MB Notification: Performance of Templates: time 0.009428/0.5754, allocations: 2.748 MB / 0.5027 GB, free: 15.19 MB / 426.7 MB