Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.561/2.561, allocations: 270 MB / 283.6 MB, free: 1.801 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.548e-05/4.56e-05, allocations: 7.938 kB / 348.4 MB, free: 2.699 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3373/0.3374, allocations: 61.87 MB / 410.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1525/0.4899, allocations: 86.67 MB / 496.9 MB, free: 3.965 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.4902, allocations: 63.97 kB / 497 MB, free: 3.902 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006082/0.4963, allocations: 1.466 MB / 498.5 MB, free: 2.426 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.4964, allocations: 3.938 kB / 498.5 MB, free: 2.422 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.4964, allocations: 4 kB / 498.5 MB, free: 2.418 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006154/0.497, allocations: 390.1 kB / 498.9 MB, free: 1.992 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.4971, allocations: 12.03 kB / 498.9 MB, free: 1.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.4971, allocations: 7.906 kB / 498.9 MB, free: 1.973 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.4973, allocations: 171.1 kB / 499 MB, free: 1.766 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.4973, allocations: 7.938 kB / 499.1 MB, free: 1.758 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.4974, allocations: 15.94 kB / 499.1 MB, free: 1.742 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.4976, allocations: 81.67 kB / 499.2 MB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.312e-06/0.4976, allocations: 0 / 499.2 MB, free: 1.656 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.844e-05/0.4976, allocations: 4 kB / 499.2 MB, free: 1.652 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.99e-06/0.4977, allocations: 3.984 kB / 499.2 MB, free: 1.648 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001153/0.4978, allocations: 32 kB / 499.2 MB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006771/0.4985, allocations: 332.6 kB / 499.5 MB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.4987, allocations: 74.58 kB / 499.6 MB, free: 1.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.4988, allocations: 40.84 kB / 499.6 MB, free: 1.117 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.4989, allocations: 7.984 kB / 499.6 MB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002095/0.4991, allocations: 87.39 kB / 499.7 MB, free: 1.012 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.733e-06/0.4991, allocations: 0 / 499.7 MB, free: 1.012 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004914/0.4996, allocations: 149.6 kB / 499.9 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.838e-05/0.4997, allocations: 55.41 kB / 499.9 MB, free: 0.793 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002247/0.5, allocations: 109.2 kB / 0.4883 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/0.5001, allocations: 29.7 kB / 0.4883 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.5002, allocations: 96.41 kB / 0.4884 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.5003, allocations: 31.55 kB / 0.4885 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-05/0.5004, allocations: 4 kB / 0.4885 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002929/0.5007, allocations: 323.2 kB / 0.4888 GB, free: 184 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.5009, allocations: 32.38 kB / 0.4888 GB, free: 152 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.5012, allocations: 73.7 kB / 0.4889 GB, free: 60 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.5015, allocations: 36.2 kB / 0.4889 GB, free: 24 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.5015, allocations: 11.81 kB / 0.4889 GB, free: 12 kB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007739/0.5023, allocations: 137.5 kB / 0.4891 GB, free: 15.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.5024, allocations: 7.984 kB / 0.4891 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.5024, allocations: 4 kB / 0.4891 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.523e-05/0.5025, allocations: 0 / 0.4891 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.5028, allocations: 19.94 kB / 0.4891 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/0.5029, allocations: 7.984 kB / 0.4891 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.5031, allocations: 12.06 kB / 0.4891 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.5032, allocations: 12 kB / 0.4891 GB, free: 15.81 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,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 (21): * Single equations (assignments): 21 * 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.0002293/0.5035, allocations: 123.1 kB / 0.4892 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.154e-05/0.5035, allocations: 11.89 kB / 0.4892 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.558e-05/0.5036, allocations: 16.73 kB / 0.4893 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.191e-06/0.5037, allocations: 0 / 0.4893 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.879e-06/0.5037, allocations: 0 / 0.4893 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.641e-06/0.5037, allocations: 0 / 0.4893 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001342/0.5051, allocations: 442.2 kB / 0.4897 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.092e-06/0.5051, allocations: 3.938 kB / 0.4897 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.5052, allocations: 11.98 kB / 0.4897 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.5053, allocations: 0 / 0.4897 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.5053, allocations: 0 / 0.4897 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.981e-06/0.5053, allocations: 0 / 0.4897 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5053, allocations: 0 / 0.4897 GB, free: 15.15 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006536/0.506, allocations: 239.5 kB / 0.4899 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.5062, allocations: 89 kB / 0.49 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.765e-05/0.5063, allocations: 4 kB / 0.49 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.5066, allocations: 7.984 kB / 0.49 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.5067, allocations: 12 kB / 0.49 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.092e-05/0.5068, allocations: 3.984 kB / 0.49 GB, free: 14.77 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001539/0.507, allocations: 95.22 kB / 0.4901 GB, free: 14.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.463e-06/0.507, allocations: 0 / 0.4901 GB, free: 14.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000896/0.5079, allocations: 23.91 kB / 0.4901 GB, free: 14.65 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0002828/0.5082, allocations: 117.6 kB / 0.4903 GB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005715/0.5088, allocations: 91.88 kB / 0.4903 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5089, allocations: 0 / 0.4903 GB, free: 14.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.5091, allocations: 47.92 kB / 0.4904 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.5097, allocations: 11.95 kB / 0.4904 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008081/0.5105, allocations: 129.7 kB / 0.4905 GB, free: 14.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000675/0.5113, allocations: 0.7007 MB / 0.4912 GB, free: 13.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001284/0.5114, allocations: 12.88 kB / 0.4912 GB, free: 13.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.03e-05/0.5115, allocations: 11.44 kB / 0.4912 GB, free: 13.48 MB / 426.7 MB Notification: Performance of SimCode: time 2.67e-06/0.5116, allocations: 0 / 0.4912 GB, free: 13.48 MB / 426.7 MB Notification: Performance of Templates: time 0.008004/0.5196, allocations: 0.8913 MB / 0.4921 GB, free: 12.6 MB / 426.7 MB