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.3_ModelicaTest.Blocks.Discrete") Notification: Performance of loadModel(ModelicaTest): time 2.387/2.387, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 2.888e-05/2.893e-05, allocations: 4 kB / 323.4 MB, free: 4.324 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3567, allocations: 58.85 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4926, allocations: 87.91 MB / 470.1 MB, free: 4.602 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002132/0.4929, allocations: 59.97 kB / 470.2 MB, free: 4.543 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.0178/0.5107, allocations: 3.922 MB / 474.1 MB, free: 0.5977 MB / 394.8 MB Notification: Performance of FrontEnd: time 2.16e-06/0.5108, allocations: 0 / 474.1 MB, free: 0.5977 MB / 394.8 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.5108, allocations: 4 kB / 474.1 MB, free: 0.5938 MB / 394.8 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.001228/0.512, allocations: 0.5572 MB / 474.7 MB, free: 15.99 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.5121, allocations: 12.03 kB / 474.7 MB, free: 15.98 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.682e-05/0.5122, allocations: 27.72 kB / 474.7 MB, free: 15.95 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.5126, allocations: 251.5 kB / 474.9 MB, free: 15.66 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.5127, allocations: 12 kB / 475 MB, free: 15.65 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/0.5127, allocations: 27.98 kB / 475 MB, free: 15.62 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005282/0.5133, allocations: 217.9 kB / 475.2 MB, free: 15.41 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.5133, allocations: 0 / 475.2 MB, free: 15.41 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.5134, allocations: 15.92 kB / 475.2 MB, free: 15.39 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.5134, allocations: 7.984 kB / 475.2 MB, free: 15.38 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003429/0.5137, allocations: 116 kB / 475.3 MB, free: 15.27 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.5152, allocations: 0.5587 MB / 475.9 MB, free: 14.66 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006898/0.5159, allocations: 310.8 kB / 476.2 MB, free: 14.35 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.5162, allocations: 125.9 kB / 476.3 MB, free: 14.22 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.5162, allocations: 4 kB / 476.3 MB, free: 14.22 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005204/0.5168, allocations: 235.5 kB / 476.6 MB, free: 13.98 MB / 410.8 MB Notification: Performance of pre-optimization done (n=43): time 4.6e-06/0.5168, allocations: 4 kB / 476.6 MB, free: 13.97 MB / 410.8 MB Notification: Performance of matching and sorting (n=43): time 0.001042/0.5179, allocations: 441.1 kB / 477 MB, free: 13.54 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.518, allocations: 75.34 kB / 477.1 MB, free: 13.45 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.5182, allocations: 191 kB / 477.2 MB, free: 13.26 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 5.89e-05/0.5183, allocations: 41.7 kB / 477.3 MB, free: 13.21 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.5184, allocations: 125 kB / 477.4 MB, free: 13.08 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.5186, allocations: 106.8 kB / 477.5 MB, free: 12.98 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.589e-05/0.5186, allocations: 15.94 kB / 477.5 MB, free: 12.96 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.5188, allocations: 350.8 kB / 477.9 MB, free: 12.61 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.5191, allocations: 93.11 kB / 478 MB, free: 12.52 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.5195, allocations: 264.4 kB / 478.2 MB, free: 12.17 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003478/0.5199, allocations: 139.8 kB / 478.4 MB, free: 12.04 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.456e-06/0.5199, allocations: 4 kB / 478.4 MB, free: 12.03 MB / 410.8 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009344/0.5208, allocations: 413.5 kB / 478.8 MB, free: 11.62 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.614e-05/0.5209, allocations: 12 kB / 478.8 MB, free: 11.61 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.5209, allocations: 4 kB / 478.8 MB, free: 11.61 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/0.521, allocations: 12 kB / 478.8 MB, free: 11.59 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.5213, allocations: 59.84 kB / 478.9 MB, free: 11.54 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.256e-05/0.5213, allocations: 15.94 kB / 478.9 MB, free: 11.52 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002785/0.5216, allocations: 43.67 kB / 478.9 MB, free: 11.48 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.5217, allocations: 23.94 kB / 478.9 MB, free: 11.45 MB / 410.8 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.0002362/0.5219, allocations: 172.8 kB / 479.1 MB, free: 11.28 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.845e-05/0.522, allocations: 31.67 kB / 479.1 MB, free: 11.25 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.6e-05/0.5221, allocations: 26.77 kB / 479.2 MB, free: 11.22 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.5221, allocations: 4 kB / 479.2 MB, free: 11.22 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.471e-06/0.5221, allocations: 0 / 479.2 MB, free: 11.22 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.321e-06/0.5222, allocations: 0 / 479.2 MB, free: 11.22 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002008/0.5242, allocations: 0.9247 MB / 480.1 MB, free: 10.24 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.915e-06/0.5242, allocations: 0 / 480.1 MB, free: 10.24 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.5243, allocations: 16 kB / 480.1 MB, free: 10.22 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.355e-06/0.5244, allocations: 4 kB / 480.1 MB, free: 10.22 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.374e-05/0.5244, allocations: 15.97 kB / 480.1 MB, free: 10.2 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.566e-06/0.5244, allocations: 0 / 480.1 MB, free: 10.2 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.5244, allocations: 0 / 480.1 MB, free: 10.2 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.5255, allocations: 0.5463 MB / 480.7 MB, free: 9.641 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.5256, allocations: 96.83 kB / 480.8 MB, free: 9.527 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.5257, allocations: 23.97 kB / 480.8 MB, free: 9.504 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.526, allocations: 35.97 kB / 480.8 MB, free: 9.469 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.5262, allocations: 27.95 kB / 480.9 MB, free: 9.441 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.115e-05/0.5262, allocations: 19.98 kB / 480.9 MB, free: 9.422 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.0002095/0.5264, allocations: 145.5 kB / 481 MB, free: 9.281 MB / 410.8 MB Notification: Performance of sort global known variables: time 8.25e-07/0.5265, allocations: 0 / 481 MB, free: 9.281 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0006291/0.5271, allocations: 75.94 kB / 481.1 MB, free: 9.207 MB / 410.8 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.0002189/0.5273, allocations: 131.2 kB / 481.2 MB, free: 9.07 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0007511/0.5281, allocations: 303.6 kB / 481.5 MB, free: 8.773 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 3.258e-06/0.5281, allocations: 1.562 kB / 481.5 MB, free: 8.773 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003542/0.5285, allocations: 159.8 kB / 481.7 MB, free: 8.617 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.5289, allocations: 47.64 kB / 481.7 MB, free: 8.57 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.5302, allocations: 391.3 kB / 482.1 MB, free: 8.16 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.5308, allocations: 0.7724 MB / 482.9 MB, free: 7.363 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.000153/0.5309, allocations: 34.95 kB / 482.9 MB, free: 7.332 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.19e-05/0.531, allocations: 27.44 kB / 482.9 MB, free: 7.305 MB / 410.8 MB Notification: Performance of SimCode: time 1.526e-06/0.5311, allocations: 0 / 482.9 MB, free: 7.305 MB / 410.8 MB Notification: Performance of Templates: time 0.008997/0.5401, allocations: 2.752 MB / 485.7 MB, free: 4.57 MB / 410.8 MB