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_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadModel(ModelicaTest): time 2.295/2.295, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.49e-05, allocations: 4 kB / 304.9 MB, free: 5.16 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3243, allocations: 54.85 MB / 359.8 MB, free: 3.141 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4552, allocations: 82.99 MB / 442.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001882/0.4554, allocations: 63.97 kB / 442.8 MB, free: 13.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01754/0.473, allocations: 3.888 MB / 446.7 MB, free: 9.992 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.519e-06/0.473, allocations: 0 / 446.7 MB, free: 9.992 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.4731, allocations: 4 kB / 446.7 MB, free: 9.988 MB / 378.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.00126/0.4743, allocations: 0.5648 MB / 447.3 MB, free: 9.371 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.4744, allocations: 8.031 kB / 447.3 MB, free: 9.363 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.784e-05/0.4745, allocations: 35.61 kB / 447.3 MB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003735/0.4749, allocations: 235.7 kB / 447.6 MB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.4749, allocations: 15.98 kB / 447.6 MB, free: 9.039 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.475, allocations: 27.98 kB / 447.6 MB, free: 9.012 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.4756, allocations: 217.5 kB / 447.8 MB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.4756, allocations: 0 / 447.8 MB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.4756, allocations: 11.94 kB / 447.8 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.4757, allocations: 4 kB / 447.8 MB, free: 8.777 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.476, allocations: 123.9 kB / 448 MB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001393/0.4774, allocations: 0.5553 MB / 448.5 MB, free: 8.051 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006925/0.4781, allocations: 302.9 kB / 448.8 MB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.4785, allocations: 116.8 kB / 448.9 MB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.4785, allocations: 11.98 kB / 448.9 MB, free: 7.617 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005375/0.4791, allocations: 233.4 kB / 449.2 MB, free: 7.379 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 4.358e-06/0.4791, allocations: 4 kB / 449.2 MB, free: 7.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001085/0.4802, allocations: 437.2 kB / 449.6 MB, free: 6.941 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/0.4803, allocations: 79.31 kB / 449.7 MB, free: 6.852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.4806, allocations: 187 kB / 449.9 MB, free: 6.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.488e-05/0.4807, allocations: 45.69 kB / 449.9 MB, free: 6.613 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.4809, allocations: 125 kB / 450 MB, free: 6.484 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.481, allocations: 99.89 kB / 450.1 MB, free: 6.387 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.481, allocations: 8 kB / 450.1 MB, free: 6.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.4813, allocations: 354.8 kB / 450.5 MB, free: 6.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.4815, allocations: 93.11 kB / 450.6 MB, free: 5.934 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000411/0.482, allocations: 272.4 kB / 450.8 MB, free: 5.586 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.4823, allocations: 139.8 kB / 451 MB, free: 5.449 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.764e-06/0.4823, allocations: 0 / 451 MB, free: 5.449 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009474/0.4833, allocations: 409.5 kB / 451.4 MB, free: 5.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.4833, allocations: 12 kB / 451.4 MB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.4834, allocations: 8 kB / 451.4 MB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.62e-05/0.4834, allocations: 8 kB / 451.4 MB, free: 5.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.4837, allocations: 64.88 kB / 451.5 MB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.482e-05/0.4838, allocations: 15.92 kB / 451.5 MB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.4841, allocations: 39.69 kB / 451.5 MB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.4841, allocations: 27.98 kB / 451.5 MB, free: 4.871 MB / 378.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.pulsStart,booleanPulse.pulsStart,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.0002496/0.4844, allocations: 174.5 kB / 451.7 MB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.086e-05/0.4845, allocations: 31.72 kB / 451.7 MB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.277e-05/0.4846, allocations: 30.77 kB / 451.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.4846, allocations: 4 kB / 451.8 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.172e-06/0.4846, allocations: 0 / 451.8 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.484e-06/0.4846, allocations: 0 / 451.8 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002056/0.4867, allocations: 0.928 MB / 452.7 MB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.072e-06/0.4867, allocations: 0.75 kB / 452.7 MB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.4869, allocations: 15.98 kB / 452.7 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/0.4869, allocations: 4 kB / 452.7 MB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.465e-05/0.487, allocations: 15.98 kB / 452.7 MB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.822e-06/0.487, allocations: 7.938 kB / 452.7 MB, free: 3.605 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.337e-06/0.487, allocations: 3.953 kB / 452.7 MB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.4881, allocations: 0.5383 MB / 453.3 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.4882, allocations: 100.8 kB / 453.4 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.4883, allocations: 17.67 kB / 453.4 MB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.4886, allocations: 39.95 kB / 453.4 MB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.4888, allocations: 31.92 kB / 453.5 MB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.927e-05/0.4888, allocations: 15.98 kB / 453.5 MB, free: 2.828 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002025/0.489, allocations: 153.5 kB / 453.6 MB, free: 2.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.4891, allocations: 0 / 453.6 MB, free: 2.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006004/0.4897, allocations: 75.89 kB / 453.7 MB, free: 2.605 MB / 378.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.pulsStart,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.0002215/0.4899, allocations: 131.2 kB / 453.8 MB, free: 2.469 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00081/0.4907, allocations: 303.6 kB / 454.1 MB, free: 2.172 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.448e-06/0.4908, allocations: 1.562 kB / 454.1 MB, free: 2.172 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.4911, allocations: 155.8 kB / 454.3 MB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000426/0.4916, allocations: 40.44 kB / 454.3 MB, free: 1.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.4929, allocations: 395.4 kB / 454.7 MB, free: 1.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.4935, allocations: 0.7692 MB / 455.5 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.4936, allocations: 34.97 kB / 455.5 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.259e-05/0.4938, allocations: 27.42 kB / 455.5 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of SimCode: time 1.751e-06/0.4938, allocations: 0 / 455.5 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of Templates: time 0.00925/0.503, allocations: 2.76 MB / 458.3 MB, free: 13.98 MB / 394.7 MB