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_trunk_cpp_ModelicaTest.Blocks.Discrete") Notification: Performance of loadModel(ModelicaTest): time 2.362/2.362, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.22e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1416, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002695/0.1444, allocations: 1.557 MB / 412.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1458, allocations: 0.577 MB / 413 MB, free: 10.71 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1459, allocations: 7.938 kB / 413.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001964/0.1461, allocations: 31.83 kB / 413.1 MB, free: 10.67 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.1463, allocations: 63.81 kB / 413.2 MB, free: 10.61 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.1467, allocations: 79.83 kB / 413.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002165/0.1469, allocations: 123.7 kB / 413.3 MB, free: 10.41 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.147, allocations: 23.97 kB / 413.4 MB, free: 10.39 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.1472, allocations: 95.75 kB / 413.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.1475, allocations: 131.7 kB / 413.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.841e-05/0.1476, allocations: 12 kB / 413.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.1477, allocations: 8 kB / 413.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.1478, allocations: 71.78 kB / 413.7 MB, free: 10.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.782e-05/0.1479, allocations: 16 kB / 413.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002601/0.1481, allocations: 171.9 kB / 413.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415e-06/0.1482, allocations: 0 / 413.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.559e-06/0.1482, allocations: 4 kB / 413.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.1482, allocations: 0 / 413.9 MB, free: 9.887 MB / 346.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.001759/0.15, allocations: 0.5777 MB / 414.4 MB, free: 9.262 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.15, allocations: 8.031 kB / 414.5 MB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.531e-05/0.1501, allocations: 35.7 kB / 414.5 MB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.1505, allocations: 247.5 kB / 414.7 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.744e-05/0.1506, allocations: 16 kB / 414.7 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.691e-05/0.1506, allocations: 23.98 kB / 414.8 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.1513, allocations: 237.3 kB / 415 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1513, allocations: 0 / 415 MB, free: 8.656 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.1514, allocations: 8 kB / 415 MB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1514, allocations: 4 kB / 415 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000504/0.1519, allocations: 147.9 kB / 415.2 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.1534, allocations: 0.5629 MB / 415.7 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.1542, allocations: 303.5 kB / 416 MB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.304e-05/0.1543, allocations: 12.28 kB / 416 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006316/0.1549, allocations: 251 kB / 416.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.577e-06/0.1549, allocations: 0 / 416.3 MB, free: 7.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=43): time 0.001754/0.1567, allocations: 0.6637 MB / 416.9 MB, free: 6.621 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.1568, allocations: 79.38 kB / 417 MB, free: 6.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.1571, allocations: 186.9 kB / 417.2 MB, free: 6.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.83e-05/0.1571, allocations: 45.69 kB / 417.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1573, allocations: 183.4 kB / 417.4 MB, free: 6.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/0.1574, allocations: 106.8 kB / 417.5 MB, free: 6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.989e-05/0.1574, allocations: 8 kB / 417.5 MB, free: 5.992 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1576, allocations: 334.8 kB / 417.9 MB, free: 5.656 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003203/0.1579, allocations: 113 kB / 418 MB, free: 5.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004733/0.1584, allocations: 277.4 kB / 418.2 MB, free: 5.199 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004209/0.1588, allocations: 155.8 kB / 418.4 MB, free: 5.047 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/0.1589, allocations: 4 kB / 418.4 MB, free: 5.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001095/0.16, allocations: 437.5 kB / 418.8 MB, free: 4.609 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.16, allocations: 8 kB / 418.8 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.16, allocations: 4 kB / 418.8 MB, free: 4.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.649e-05/0.1601, allocations: 12 kB / 418.9 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003633/0.1604, allocations: 59.84 kB / 418.9 MB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.223e-05/0.1605, allocations: 19.92 kB / 418.9 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.1608, allocations: 35.78 kB / 419 MB, free: 4.473 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/0.1609, allocations: 27.98 kB / 419 MB, free: 4.445 MB / 346.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.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.0003178/0.1612, allocations: 197.6 kB / 419.2 MB, free: 4.242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.876e-05/0.1613, allocations: 35.61 kB / 419.2 MB, free: 4.207 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.281e-05/0.1614, allocations: 27 kB / 419.2 MB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.1614, allocations: 4 kB / 419.2 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.1614, allocations: 4 kB / 419.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.1614, allocations: 3.984 kB / 419.3 MB, free: 4.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.1638, allocations: 0.9633 MB / 420.2 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.1638, allocations: 3.938 kB / 420.2 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.164, allocations: 20 kB / 420.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.164, allocations: 0 / 420.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.164, allocations: 19.92 kB / 420.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.1641, allocations: 4 kB / 420.3 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1641, allocations: 0 / 420.3 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.1653, allocations: 0.5736 MB / 420.8 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.311e-05/0.1654, allocations: 100.8 kB / 420.9 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.1656, allocations: 19.98 kB / 421 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.166, allocations: 35.92 kB / 421 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.1661, allocations: 27.95 kB / 421 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.186e-05/0.1662, allocations: 19.98 kB / 421 MB, free: 2.297 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001861/0.1664, allocations: 145.9 kB / 421.2 MB, free: 2.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1664, allocations: 7.938 kB / 421.2 MB, free: 2.148 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005354/0.1669, allocations: 75.89 kB / 421.3 MB, free: 2.074 MB / 346.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 (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.0002223/0.1672, allocations: 131.2 kB / 421.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009569/0.1681, allocations: 347.6 kB / 421.7 MB, free: 1.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1681, allocations: 0 / 421.7 MB, free: 1.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.1686, allocations: 177.2 kB / 421.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1691, allocations: 27.98 kB / 421.9 MB, free: 1.395 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/0.1708, allocations: 0.6068 MB / 422.5 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3089/0.4797, allocations: 0.7655 MB / 423.3 MB, free: 12.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.4799, allocations: 28.62 kB / 423.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.4799, allocations: 0 / 423.3 MB, free: 12.47 MB / 346.7 MB Notification: Performance of Templates: time 0.01018/0.4901, allocations: 3.361 MB / 426.7 MB, free: 12.34 MB / 346.7 MB