Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.273/2.273, allocations: 270 MB / 282.7 MB, free: 1.758 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.869e-05/2.894e-05, allocations: 4 kB / 347 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 61.88 MB / 408.8 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1483/0.4693, allocations: 86.67 MB / 495.5 MB, free: 3.953 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.4697, allocations: 59.97 kB / 495.6 MB, free: 3.895 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009261/0.479, allocations: 1.458 MB / 497 MB, free: 2.426 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.134e-06/0.479, allocations: 0 / 497 MB, free: 2.426 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.4791, allocations: 4 kB / 497 MB, free: 2.422 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.000883/0.48, allocations: 394.1 kB / 497.4 MB, free: 1.992 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.4801, allocations: 8.031 kB / 497.4 MB, free: 1.984 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.4802, allocations: 7.906 kB / 497.4 MB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000238/0.4804, allocations: 175.1 kB / 497.6 MB, free: 1.766 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.851e-05/0.4805, allocations: 8 kB / 497.6 MB, free: 1.758 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.742e-05/0.4805, allocations: 23.88 kB / 497.6 MB, free: 1.734 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000315/0.4809, allocations: 77.67 kB / 497.7 MB, free: 1.652 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.4809, allocations: 0 / 497.7 MB, free: 1.652 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.4809, allocations: 0 / 497.7 MB, free: 1.652 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.481, allocations: 3.984 kB / 497.7 MB, free: 1.648 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.4812, allocations: 35.98 kB / 497.7 MB, free: 1.613 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.4822, allocations: 336.6 kB / 498.1 MB, free: 1.234 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003321/0.4826, allocations: 74.58 kB / 498.1 MB, free: 1.152 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001693/0.4828, allocations: 40.84 kB / 498.2 MB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.4828, allocations: 4 kB / 498.2 MB, free: 1.105 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.4832, allocations: 79.39 kB / 498.3 MB, free: 1.016 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 4.606e-06/0.4832, allocations: 0 / 498.3 MB, free: 1.016 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006213/0.4838, allocations: 153.6 kB / 498.4 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.4839, allocations: 59.39 kB / 498.5 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.4841, allocations: 113.1 kB / 498.6 MB, free: 0.668 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.101e-05/0.4842, allocations: 33.7 kB / 498.6 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.4843, allocations: 158.8 kB / 498.8 MB, free: 480 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-05/0.4844, allocations: 27.56 kB / 498.8 MB, free: 452 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.877e-05/0.4845, allocations: 4 kB / 498.8 MB, free: 448 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.4847, allocations: 326.8 kB / 499.1 MB, free: 112 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.4849, allocations: 32.38 kB / 499.2 MB, free: 80 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.4851, allocations: 68.7 kB / 499.2 MB, free: 16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.4853, allocations: 48.08 kB / 499.3 MB, free: 15.95 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.756e-06/0.4854, allocations: 4 kB / 499.3 MB, free: 15.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005478/0.4859, allocations: 133.5 kB / 499.4 MB, free: 15.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.486, allocations: 8 kB / 499.4 MB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.582e-06/0.486, allocations: 0 / 499.4 MB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.486, allocations: 4 kB / 499.4 MB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.4863, allocations: 27.92 kB / 499.4 MB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.574e-05/0.4863, allocations: 4 kB / 499.4 MB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.4865, allocations: 8.062 kB / 499.5 MB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.4866, allocations: 12 kB / 499.5 MB, free: 15.75 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.0001699/0.4868, allocations: 127.1 kB / 499.6 MB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.4868, allocations: 4 kB / 499.6 MB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.4869, allocations: 8.75 kB / 499.6 MB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.612e-06/0.4869, allocations: 4 kB / 499.6 MB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.158e-06/0.4869, allocations: 0 / 499.6 MB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.487, allocations: 0 / 499.6 MB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.4881, allocations: 446.2 kB / 0.4883 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.434e-06/0.4881, allocations: 0 / 0.4883 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.4883, allocations: 15.94 kB / 0.4883 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.36e-06/0.4883, allocations: 0 / 0.4883 GB, free: 15.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.179e-05/0.4883, allocations: 7.984 kB / 0.4883 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.285e-06/0.4884, allocations: 0 / 0.4883 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.782e-06/0.4884, allocations: 0 / 0.4883 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005947/0.489, allocations: 235.8 kB / 0.4886 GB, free: 14.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.698e-05/0.4891, allocations: 89.02 kB / 0.4887 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.94e-05/0.4892, allocations: 4 kB / 0.4887 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.4895, allocations: 15.97 kB / 0.4887 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/0.4896, allocations: 15.86 kB / 0.4887 GB, free: 14.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.4896, allocations: 8 kB / 0.4887 GB, free: 14.69 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001085/0.4897, allocations: 91.27 kB / 0.4888 GB, free: 14.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.041e-06/0.4898, allocations: 0 / 0.4888 GB, free: 14.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006645/0.4904, allocations: 24 kB / 0.4888 GB, free: 14.57 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.0001969/0.4907, allocations: 103.2 kB / 0.4889 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004263/0.4911, allocations: 95.92 kB / 0.489 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.222e-06/0.4911, allocations: 0 / 0.489 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.4914, allocations: 47.94 kB / 0.489 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003949/0.4918, allocations: 11.94 kB / 0.4891 GB, free: 14.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006363/0.4924, allocations: 152 kB / 0.4892 GB, free: 14.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.493, allocations: 0.7007 MB / 0.4899 GB, free: 13.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.063e-05/0.4931, allocations: 23.38 kB / 0.4899 GB, free: 13.38 MB / 426.7 MB Notification: Performance of SimCode: time 1.874e-06/0.4931, allocations: 0 / 0.4899 GB, free: 13.38 MB / 426.7 MB Notification: Performance of Templates: time 0.004848/0.4979, allocations: 1.17 MB / 0.4911 GB, free: 12.21 MB / 426.7 MB