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.579/2.579, allocations: 234.9 MB / 249.4 MB, free: 9.801 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.77e-05/3.768e-05, allocations: 4 kB / 308 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3831/0.3831, allocations: 54.86 MB / 362.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003478/0.3867, allocations: 1.55 MB / 364.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.3886, allocations: 0.6053 MB / 365 MB, free: 9.535 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.3888, allocations: 7.938 kB / 365 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.389, allocations: 31.83 kB / 365.1 MB, free: 9.496 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.3893, allocations: 59.81 kB / 365.1 MB, free: 9.438 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004709/0.3898, allocations: 75.84 kB / 365.2 MB, free: 9.363 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.3901, allocations: 131.7 kB / 365.3 MB, free: 9.234 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.3903, allocations: 23.97 kB / 365.4 MB, free: 9.211 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.3905, allocations: 91.75 kB / 365.4 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003854/0.391, allocations: 131.7 kB / 365.6 MB, free: 8.992 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.707e-05/0.391, allocations: 12 kB / 365.6 MB, free: 8.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.222e-05/0.3911, allocations: 11.94 kB / 365.6 MB, free: 8.969 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001585/0.3913, allocations: 67.8 kB / 365.7 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.194e-05/0.3914, allocations: 20 kB / 365.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003757/0.3918, allocations: 182 kB / 365.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3918, allocations: 0 / 365.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3918, allocations: 0 / 365.9 MB, free: 8.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.42e-05/0.3919, allocations: 0 / 365.9 MB, free: 8.707 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.002364/0.3942, allocations: 0.5854 MB / 366.4 MB, free: 8.074 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.3943, allocations: 12.03 kB / 366.5 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.3945, allocations: 31.72 kB / 366.5 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.395, allocations: 247.5 kB / 366.7 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.201e-05/0.3951, allocations: 19.97 kB / 366.7 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.3952, allocations: 20 kB / 366.8 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009425/0.3961, allocations: 229.4 kB / 367 MB, free: 7.477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.3962, allocations: 4 kB / 367 MB, free: 7.473 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.92e-05/0.3963, allocations: 11.98 kB / 367 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.3963, allocations: 7.953 kB / 367 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006975/0.397, allocations: 135.9 kB / 367.1 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.3991, allocations: 0.5629 MB / 367.7 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.4002, allocations: 311.5 kB / 368 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.376e-05/0.4003, allocations: 12.2 kB / 368 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008947/0.4012, allocations: 251.6 kB / 368.3 MB, free: 6.125 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.93e-06/0.4012, allocations: 0 / 368.3 MB, free: 6.125 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.002475/0.4037, allocations: 0.6583 MB / 368.9 MB, free: 5.441 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.909e-05/0.4038, allocations: 75.38 kB / 369 MB, free: 5.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/0.4042, allocations: 190.8 kB / 369.2 MB, free: 5.164 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.991e-05/0.4043, allocations: 41.7 kB / 369.2 MB, free: 5.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.4045, allocations: 137 kB / 369.4 MB, free: 4.977 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.4047, allocations: 102.8 kB / 369.5 MB, free: 4.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.4047, allocations: 8 kB / 369.5 MB, free: 4.867 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.405, allocations: 342.8 kB / 369.8 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/0.4054, allocations: 97.08 kB / 369.9 MB, free: 4.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007126/0.4062, allocations: 289.4 kB / 370.2 MB, free: 4.066 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.4068, allocations: 151.8 kB / 370.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.4068, allocations: 0 / 370.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001272/0.4081, allocations: 445 kB / 370.8 MB, free: 3.477 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/0.4082, allocations: 11.98 kB / 370.8 MB, free: 3.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.4082, allocations: 4 kB / 370.8 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.36e-05/0.4083, allocations: 12 kB / 370.8 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003958/0.4087, allocations: 59.84 kB / 370.9 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.642e-05/0.4087, allocations: 16.34 kB / 370.9 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003377/0.409, allocations: 47.67 kB / 370.9 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.137e-05/0.4091, allocations: 27.98 kB / 370.9 MB, free: 3.301 MB / 298.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[2],transferFunction.xext[2],$PRE.transferFunction.xext[1],transferFunction.xext[1],$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.000358/0.4095, allocations: 197.6 kB / 371.1 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/0.4096, allocations: 27.72 kB / 371.2 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.911e-05/0.4097, allocations: 23 kB / 371.2 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.4097, allocations: 7.984 kB / 371.2 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.4097, allocations: 4 kB / 371.2 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.4097, allocations: 4 kB / 371.2 MB, free: 3.035 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.4123, allocations: 0.9683 MB / 372.2 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.4123, allocations: 0 / 372.2 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.4125, allocations: 19.92 kB / 372.2 MB, free: 1.992 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/0.4125, allocations: 4 kB / 372.2 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.887e-05/0.4126, allocations: 11.98 kB / 372.2 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.4126, allocations: 3.938 kB / 372.2 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4126, allocations: 0 / 372.2 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.4141, allocations: 0.5768 MB / 372.8 MB, free: 1.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.4142, allocations: 104.7 kB / 372.9 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/0.4143, allocations: 15.98 kB / 372.9 MB, free: 1.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000444/0.4148, allocations: 35.97 kB / 372.9 MB, free: 1.207 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.4149, allocations: 31.95 kB / 373 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.53e-05/0.415, allocations: 19.98 kB / 373 MB, free: 1.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002251/0.4152, allocations: 157.8 kB / 373.1 MB, free: 1.004 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4152, allocations: 0 / 373.1 MB, free: 1.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005867/0.4158, allocations: 71.94 kB / 373.2 MB, free: 0.9336 MB / 298.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 (42): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * 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.0002603/0.4161, allocations: 136.2 kB / 373.3 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.4171, allocations: 337.7 kB / 373.7 MB, free: 472 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4172, allocations: 0 / 373.7 MB, free: 472 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004974/0.4177, allocations: 183.7 kB / 373.9 MB, free: 288 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.4182, allocations: 27.98 kB / 373.9 MB, free: 260 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.42, allocations: 0.5659 MB / 374.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.4205, allocations: 0.7683 MB / 375.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001778/0.4207, allocations: 34.97 kB / 375.2 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.4208, allocations: 31.42 kB / 375.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of SimCode: time 1.273e-06/0.4208, allocations: 0 / 375.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of Templates: time 0.01109/0.4319, allocations: 2.806 MB / 378.1 MB, free: 12.02 MB / 314.7 MB