Running command: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Discrete") Notification: Performance of loadModel(ModelicaTest): time 2.356/2.356, allocations: 270 MB / 282.7 MB, free: 1.762 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.554e-05, allocations: 7.984 kB / 347 MB, free: 3.148 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3225, allocations: 61.87 MB / 408.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1371/0.4597, allocations: 88.86 MB / 497.7 MB, free: 1.785 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001811/0.4599, allocations: 63.92 kB / 497.8 MB, free: 1.723 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01729/0.4772, allocations: 3.969 MB / 0.49 GB, free: 13.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.678e-06/0.4772, allocations: 0 / 0.49 GB, free: 13.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.86e-05/0.4773, allocations: 4 kB / 0.49 GB, free: 13.72 MB / 426.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.001273/0.4785, allocations: 0.5802 MB / 0.4905 GB, free: 13.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4786, allocations: 8.031 kB / 0.4905 GB, free: 13.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.123e-05/0.4787, allocations: 27.72 kB / 0.4906 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.4791, allocations: 243.6 kB / 0.4908 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.4791, allocations: 23.89 kB / 0.4908 GB, free: 12.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.768e-05/0.4792, allocations: 23.98 kB / 0.4908 GB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005182/0.4797, allocations: 209.5 kB / 0.491 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.4798, allocations: 3.984 kB / 0.4911 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.4798, allocations: 8 kB / 0.4911 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.732e-06/0.4798, allocations: 4 kB / 0.4911 GB, free: 12.51 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003423/0.4802, allocations: 119.9 kB / 0.4912 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.4815, allocations: 0.5626 MB / 0.4917 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006567/0.4822, allocations: 302.9 kB / 0.492 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.4825, allocations: 120.8 kB / 0.4921 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.4826, allocations: 4 kB / 0.4921 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005114/0.4831, allocations: 235.5 kB / 0.4924 GB, free: 11.11 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 4.067e-06/0.4831, allocations: 0 / 0.4924 GB, free: 11.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.001023/0.4841, allocations: 445.1 kB / 0.4928 GB, free: 10.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.4842, allocations: 79.38 kB / 0.4929 GB, free: 10.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002565/0.4845, allocations: 187 kB / 0.493 GB, free: 10.39 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.855e-05/0.4846, allocations: 41.7 kB / 0.4931 GB, free: 10.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.4847, allocations: 187.4 kB / 0.4933 GB, free: 10.15 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.4849, allocations: 102.8 kB / 0.4934 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.716e-05/0.4849, allocations: 12 kB / 0.4934 GB, free: 10.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.4851, allocations: 330.8 kB / 0.4937 GB, free: 9.707 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/0.4854, allocations: 93.12 kB / 0.4938 GB, free: 9.617 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.4858, allocations: 276.2 kB / 0.494 GB, free: 9.262 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003402/0.4861, allocations: 143.9 kB / 0.4942 GB, free: 9.121 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.517e-06/0.4862, allocations: 0 / 0.4942 GB, free: 9.121 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008864/0.487, allocations: 397.4 kB / 0.4945 GB, free: 8.727 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.4871, allocations: 8 kB / 0.4946 GB, free: 8.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.4871, allocations: 4 kB / 0.4946 GB, free: 8.715 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/0.4871, allocations: 12 kB / 0.4946 GB, free: 8.703 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.4874, allocations: 59.84 kB / 0.4946 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.207e-05/0.4875, allocations: 15.89 kB / 0.4946 GB, free: 8.629 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.4878, allocations: 44.05 kB / 0.4947 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.677e-05/0.4878, allocations: 24 kB / 0.4947 GB, free: 8.562 MB / 426.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.0002197/0.4881, allocations: 178.9 kB / 0.4949 GB, free: 8.383 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.628e-05/0.4881, allocations: 23.72 kB / 0.4949 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.437e-05/0.4882, allocations: 30.77 kB / 0.4949 GB, free: 8.328 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.787e-06/0.4882, allocations: 4 kB / 0.4949 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.491e-06/0.4883, allocations: 0 / 0.4949 GB, free: 8.324 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4883, allocations: 7.938 kB / 0.4949 GB, free: 8.316 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.4903, allocations: 0.9321 MB / 0.4959 GB, free: 7.328 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.073e-06/0.4903, allocations: 4 kB / 0.4959 GB, free: 7.324 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001027/0.4904, allocations: 11.98 kB / 0.4959 GB, free: 7.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.459e-06/0.4905, allocations: 4 kB / 0.4959 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/0.4905, allocations: 11.98 kB / 0.4959 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.561e-06/0.4905, allocations: 0 / 0.4959 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.077e-06/0.4905, allocations: 3.938 kB / 0.4959 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.4916, allocations: 0.5345 MB / 0.4964 GB, free: 6.742 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.981e-05/0.4917, allocations: 108.7 kB / 0.4965 GB, free: 6.617 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-05/0.4918, allocations: 23.98 kB / 0.4965 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/0.4921, allocations: 35.91 kB / 0.4966 GB, free: 6.559 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-05/0.4922, allocations: 31.94 kB / 0.4966 GB, free: 6.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.4923, allocations: 15.98 kB / 0.4966 GB, free: 6.512 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001852/0.4925, allocations: 149.5 kB / 0.4968 GB, free: 6.367 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.089e-06/0.4925, allocations: 4 kB / 0.4968 GB, free: 6.363 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005654/0.4931, allocations: 71.91 kB / 0.4968 GB, free: 6.293 MB / 426.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.0002128/0.4933, allocations: 135.2 kB / 0.497 GB, free: 6.152 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007115/0.494, allocations: 300.6 kB / 0.4972 GB, free: 5.859 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.418e-06/0.4941, allocations: 4.562 kB / 0.4973 GB, free: 5.855 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.4944, allocations: 167.8 kB / 0.4974 GB, free: 5.691 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.4948, allocations: 27.97 kB / 0.4974 GB, free: 5.664 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.4961, allocations: 425.1 kB / 0.4978 GB, free: 5.215 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.4966, allocations: 0.7686 MB / 0.4986 GB, free: 4.422 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.282e-05/0.4967, allocations: 35.42 kB / 0.4986 GB, free: 4.387 MB / 426.7 MB Notification: Performance of SimCode: time 1.562e-06/0.4967, allocations: 0 / 0.4986 GB, free: 4.387 MB / 426.7 MB Notification: Performance of Templates: time 0.006971/0.5037, allocations: 3.345 MB / 0.5019 GB, free: 1.055 MB / 426.7 MB