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_cpp_ModelicaTest.Blocks.Discrete") Notification: Performance of loadModel(ModelicaTest): time 2.385/2.385, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.426e-05/3.417e-05, allocations: 4 kB / 308 MB, free: 4 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3742, allocations: 54.87 MB / 362.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.00276/0.377, allocations: 1.541 MB / 364.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3786, allocations: 0.605 MB / 365 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.3788, allocations: 6.969 kB / 365 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002117/0.379, allocations: 34.95 kB / 365 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.3792, allocations: 60.5 kB / 365.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.3796, allocations: 77.44 kB / 365.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.3799, allocations: 123.5 kB / 365.3 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.38, allocations: 27.14 kB / 365.3 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.3802, allocations: 97.73 kB / 365.4 MB, free: 9.883 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003027/0.3805, allocations: 136.5 kB / 365.5 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.574e-05/0.3806, allocations: 10.22 kB / 365.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.3807, allocations: 10.81 kB / 365.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001251/0.3808, allocations: 69.25 kB / 365.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.873e-05/0.3809, allocations: 17.06 kB / 365.7 MB, free: 9.758 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.3812, allocations: 178.2 kB / 365.8 MB, free: 9.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3812, allocations: 0 / 365.8 MB, free: 9.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3813, allocations: 1.406 kB / 365.8 MB, free: 9.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3813, allocations: 4 kB / 365.8 MB, free: 9.633 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.001881/0.3832, allocations: 0.5827 MB / 366.4 MB, free: 9.133 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3832, allocations: 12.53 kB / 366.4 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.3834, allocations: 27.78 kB / 366.5 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.3838, allocations: 239.1 kB / 366.7 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.3838, allocations: 17.61 kB / 366.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.958e-05/0.3839, allocations: 18.31 kB / 366.7 MB, free: 8.855 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006743/0.3846, allocations: 231.5 kB / 366.9 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3846, allocations: 5.172 kB / 367 MB, free: 8.711 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.3847, allocations: 9.484 kB / 367 MB, free: 8.703 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.3847, allocations: 9.141 kB / 367 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000501/0.3852, allocations: 142.4 kB / 367.1 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.3868, allocations: 0.5723 MB / 367.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007781/0.3876, allocations: 302.9 kB / 368 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.323e-05/0.3876, allocations: 9.094 kB / 368 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006557/0.3883, allocations: 247.2 kB / 368.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.289e-06/0.3883, allocations: 0 / 368.2 MB, free: 7.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.001837/0.3902, allocations: 0.6717 MB / 368.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.631e-05/0.3903, allocations: 74.8 kB / 369 MB, free: 7.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.3906, allocations: 190.9 kB / 369.2 MB, free: 7.199 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.271e-05/0.3907, allocations: 45.69 kB / 369.2 MB, free: 7.148 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.3908, allocations: 179.5 kB / 369.4 MB, free: 6.969 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001492/0.391, allocations: 102.8 kB / 369.5 MB, free: 6.867 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.391, allocations: 12 kB / 369.5 MB, free: 6.855 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3912, allocations: 334.8 kB / 369.8 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000329/0.3916, allocations: 105.1 kB / 369.9 MB, free: 6.418 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004657/0.392, allocations: 281.4 kB / 370.2 MB, free: 6.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004231/0.3925, allocations: 151.9 kB / 370.3 MB, free: 5.914 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.3925, allocations: 4 kB / 370.3 MB, free: 5.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001122/0.3936, allocations: 429.5 kB / 370.8 MB, free: 5.484 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.3937, allocations: 8 kB / 370.8 MB, free: 5.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.3937, allocations: 8 kB / 370.8 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/0.3937, allocations: 8 kB / 370.8 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.3941, allocations: 63.84 kB / 370.9 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.512e-05/0.3941, allocations: 15.94 kB / 370.9 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003244/0.3945, allocations: 43.67 kB / 370.9 MB, free: 5.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.753e-05/0.3945, allocations: 28.06 kB / 370.9 MB, free: 5.312 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.0003379/0.3949, allocations: 197.6 kB / 371.1 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.639e-05/0.395, allocations: 39.56 kB / 371.2 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.451e-05/0.3951, allocations: 26.98 kB / 371.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.3951, allocations: 4 kB / 371.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.3951, allocations: 4 kB / 371.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.3951, allocations: 3.984 kB / 371.2 MB, free: 5.035 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002382/0.3975, allocations: 0.9528 MB / 372.2 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.046e-06/0.3976, allocations: 7.938 kB / 372.2 MB, free: 4.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.3977, allocations: 15.98 kB / 372.2 MB, free: 4.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/0.3977, allocations: 4 kB / 372.2 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.419e-05/0.3978, allocations: 15.92 kB / 372.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3978, allocations: 0 / 372.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3978, allocations: 0 / 372.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.3991, allocations: 0.5768 MB / 372.8 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.916e-05/0.3993, allocations: 104.8 kB / 372.9 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.3994, allocations: 19.98 kB / 372.9 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004266/0.3998, allocations: 31.97 kB / 372.9 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.812e-05/0.3999, allocations: 27.95 kB / 373 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.544e-05/0.4, allocations: 23.98 kB / 373 MB, free: 3.168 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002119/0.4002, allocations: 153.8 kB / 373.1 MB, free: 3.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4002, allocations: 0 / 373.1 MB, free: 3.02 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005596/0.4008, allocations: 75.92 kB / 373.2 MB, free: 2.945 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.0002555/0.4011, allocations: 127.7 kB / 373.3 MB, free: 2.809 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009837/0.4021, allocations: 344.5 kB / 373.7 MB, free: 2.473 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4021, allocations: 5.562 kB / 373.7 MB, free: 2.469 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000473/0.4026, allocations: 179.4 kB / 373.8 MB, free: 2.293 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000458/0.4031, allocations: 37.38 kB / 373.9 MB, free: 2.258 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.4049, allocations: 0.5988 MB / 374.5 MB, free: 1.629 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.4053, allocations: 0.7644 MB / 375.2 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.4055, allocations: 31.44 kB / 375.3 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4055, allocations: 4 kB / 375.3 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of Templates: time 0.009183/0.4147, allocations: 3.364 MB / 378.6 MB, free: 13.45 MB / 314.7 MB