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_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 270 MB / 283.6 MB, free: 1.781 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.052e-05/3.068e-05, allocations: 4 kB / 348.4 MB, free: 2.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3245, allocations: 61.88 MB / 410.3 MB, free: 10.72 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1314/0.4559, allocations: 86.67 MB / 496.9 MB, free: 3.934 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.4562, allocations: 67.95 kB / 497 MB, free: 3.867 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005805/0.462, allocations: 1.466 MB / 498.5 MB, free: 2.391 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.462, allocations: 0 / 498.5 MB, free: 2.391 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.395e-06/0.4621, allocations: 0 / 498.5 MB, free: 2.391 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.0006012/0.4627, allocations: 386.1 kB / 498.8 MB, free: 1.969 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.4627, allocations: 20.02 kB / 498.9 MB, free: 1.949 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.4628, allocations: 7.906 kB / 498.9 MB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.463, allocations: 167 kB / 499 MB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/0.463, allocations: 4 kB / 499 MB, free: 1.734 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.296e-05/0.4631, allocations: 15.95 kB / 499.1 MB, free: 1.719 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.4633, allocations: 85.78 kB / 499.1 MB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.084e-06/0.4633, allocations: 0 / 499.1 MB, free: 1.629 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.4633, allocations: 4 kB / 499.1 MB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.921e-06/0.4633, allocations: 0 / 499.1 MB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.4635, allocations: 35.98 kB / 499.2 MB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006401/0.4641, allocations: 324.7 kB / 499.5 MB, free: 1.223 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.4643, allocations: 82.56 kB / 499.6 MB, free: 1.133 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.826e-05/0.4645, allocations: 37.08 kB / 499.6 MB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.4645, allocations: 7.938 kB / 499.6 MB, free: 1.086 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.4647, allocations: 95.31 kB / 499.7 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.761e-06/0.4647, allocations: 0 / 499.7 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003739/0.4651, allocations: 145.6 kB / 499.8 MB, free: 0.832 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.4652, allocations: 55.41 kB / 499.9 MB, free: 0.7656 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.4653, allocations: 105.2 kB / 0.4883 GB, free: 0.6523 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.732e-05/0.4654, allocations: 33.7 kB / 0.4883 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.306e-05/0.4654, allocations: 96.41 kB / 0.4884 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.746e-05/0.4655, allocations: 35.55 kB / 0.4884 GB, free: 488 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.155e-05/0.4655, allocations: 4 kB / 0.4884 GB, free: 484 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.4657, allocations: 326.8 kB / 0.4888 GB, free: 148 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.568e-05/0.4658, allocations: 28.38 kB / 0.4888 GB, free: 120 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.4659, allocations: 74.58 kB / 0.4889 GB, free: 28 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.4661, allocations: 44.06 kB / 0.4889 GB, free: 15.98 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.074e-06/0.4661, allocations: 0 / 0.4889 GB, free: 15.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000323/0.4664, allocations: 141.4 kB / 0.489 GB, free: 15.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.4665, allocations: 4 kB / 0.489 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.801e-06/0.4665, allocations: 4 kB / 0.489 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.4665, allocations: 160 / 0.489 GB, free: 15.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.4667, allocations: 23.98 kB / 0.4891 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.4667, allocations: 7.938 kB / 0.4891 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.136e-05/0.4668, allocations: 15.89 kB / 0.4891 GB, free: 15.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/0.4668, allocations: 4 kB / 0.4891 GB, free: 15.78 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.0001161/0.4669, allocations: 127.2 kB / 0.4892 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.467, allocations: 7.906 kB / 0.4892 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.109e-05/0.467, allocations: 12.75 kB / 0.4892 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.47e-06/0.467, allocations: 0 / 0.4892 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.355e-06/0.4671, allocations: 4 kB / 0.4892 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.635e-06/0.4671, allocations: 3.984 kB / 0.4892 GB, free: 15.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006768/0.4678, allocations: 434.3 kB / 0.4897 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.153e-06/0.4678, allocations: 0 / 0.4897 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.996e-05/0.4679, allocations: 11.98 kB / 0.4897 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.17e-06/0.4679, allocations: 0 / 0.4897 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.4679, allocations: 384 / 0.4897 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.4679, allocations: 0 / 0.4897 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.662e-06/0.4679, allocations: 4 kB / 0.4897 GB, free: 15.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003718/0.4683, allocations: 243.4 kB / 0.4899 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.4684, allocations: 84.95 kB / 0.49 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.4684, allocations: 7.984 kB / 0.49 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.4686, allocations: 4 kB / 0.49 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.4687, allocations: 11.98 kB / 0.49 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/0.4687, allocations: 11.98 kB / 0.49 GB, free: 14.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.588e-05/0.4688, allocations: 95.28 kB / 0.4901 GB, free: 14.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.952e-06/0.4688, allocations: 0 / 0.4901 GB, free: 14.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003394/0.4691, allocations: 27.84 kB / 0.4901 GB, free: 14.61 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.0001474/0.4693, allocations: 115.1 kB / 0.4902 GB, free: 14.48 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002535/0.4696, allocations: 87.94 kB / 0.4903 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4696, allocations: 0 / 0.4903 GB, free: 14.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.4697, allocations: 43.91 kB / 0.4904 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.47, allocations: 20.58 kB / 0.4904 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.4704, allocations: 130.2 kB / 0.4905 GB, free: 14.19 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.4708, allocations: 0.6965 MB / 0.4912 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 5.714e-05/0.4709, allocations: 12.88 kB / 0.4912 GB, free: 13.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.347e-05/0.4709, allocations: 11.44 kB / 0.4912 GB, free: 13.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.331e-06/0.4709, allocations: 0 / 0.4912 GB, free: 13.44 MB / 426.7 MB Notification: Performance of Templates: time 0.003918/0.4749, allocations: 0.8886 MB / 0.4921 GB, free: 12.57 MB / 426.7 MB