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_3.2.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.342/2.342, allocations: 235 MB / 247.2 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.646e-05, allocations: 4.938 kB / 304.9 MB, free: 5.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3426, allocations: 54.84 MB / 359.8 MB, free: 3.148 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1274/0.47, allocations: 80.72 MB / 440.5 MB, free: 232 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.4702, allocations: 64.78 kB / 440.6 MB, free: 168 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00583/0.4761, allocations: 1.386 MB / 441.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.859e-06/0.4761, allocations: 0 / 441.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.4762, allocations: 4 kB / 441.9 MB, free: 14.79 MB / 378.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.0006075/0.4768, allocations: 381.8 kB / 442.3 MB, free: 14.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.4768, allocations: 12.03 kB / 442.3 MB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.075e-05/0.4769, allocations: 8.406 kB / 442.3 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.4771, allocations: 167.1 kB / 442.5 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.4771, allocations: 8 kB / 442.5 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.193e-05/0.4772, allocations: 4 kB / 442.5 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002083/0.4774, allocations: 81.78 kB / 442.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.4774, allocations: 1.125 kB / 442.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.4774, allocations: 4 kB / 442.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.608e-06/0.4774, allocations: 3.953 kB / 442.6 MB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001169/0.4776, allocations: 36 kB / 442.6 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007015/0.4783, allocations: 328.7 kB / 443 MB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.4785, allocations: 82.56 kB / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.4786, allocations: 33.7 kB / 443.1 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.164e-05/0.4787, allocations: 15.92 kB / 443.1 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002194/0.4789, allocations: 95.45 kB / 443.2 MB, free: 13.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.92e-06/0.4789, allocations: 0 / 443.2 MB, free: 13.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003923/0.4793, allocations: 137.6 kB / 443.3 MB, free: 13.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.073e-05/0.4794, allocations: 59.41 kB / 443.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.4795, allocations: 106.8 kB / 443.5 MB, free: 13.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.4796, allocations: 29.7 kB / 443.5 MB, free: 13.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.4797, allocations: 92.42 kB / 443.6 MB, free: 12.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.281e-05/0.4798, allocations: 31.61 kB / 443.6 MB, free: 12.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.607e-05/0.4798, allocations: 8 kB / 443.6 MB, free: 12.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.48, allocations: 322.1 kB / 443.9 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.062e-05/0.4801, allocations: 32.31 kB / 444 MB, free: 12.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000134/0.4802, allocations: 68.72 kB / 444 MB, free: 12.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000119/0.4803, allocations: 45.47 kB / 444.1 MB, free: 12.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.059e-06/0.4804, allocations: 0 / 444.1 MB, free: 12.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003436/0.4807, allocations: 142.2 kB / 444.2 MB, free: 12.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.4808, allocations: 8.172 kB / 444.2 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.4808, allocations: 8.156 kB / 444.2 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.4808, allocations: 3.938 kB / 444.2 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.481, allocations: 24.55 kB / 444.3 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.481, allocations: 9.109 kB / 444.3 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.4811, allocations: 7.938 kB / 444.3 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.4812, allocations: 12 kB / 444.3 MB, free: 12.2 MB / 378.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.0001302/0.4813, allocations: 121.6 kB / 444.4 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.857e-05/0.4814, allocations: 7.906 kB / 444.4 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.989e-05/0.4814, allocations: 20.7 kB / 444.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.009e-06/0.4814, allocations: 0 / 444.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.775e-06/0.4815, allocations: 0 / 444.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.714e-06/0.4815, allocations: 0 / 444.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007427/0.4822, allocations: 439.3 kB / 444.9 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.567e-06/0.4822, allocations: 3.953 kB / 444.9 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.939e-05/0.4823, allocations: 8 kB / 444.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.876e-06/0.4824, allocations: 0 / 444.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.4824, allocations: 3.984 kB / 444.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.477e-06/0.4824, allocations: 8 kB / 444.9 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.473e-06/0.4824, allocations: 0 / 444.9 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003795/0.4828, allocations: 239.4 kB / 445.1 MB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.863e-05/0.4829, allocations: 88.91 kB / 445.2 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.4829, allocations: 8 kB / 445.2 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/0.4831, allocations: 12.83 kB / 445.2 MB, free: 11.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.4832, allocations: 11.98 kB / 445.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/0.4832, allocations: 8 kB / 445.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.105e-05/0.4833, allocations: 92.67 kB / 445.4 MB, free: 11.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.96e-07/0.4833, allocations: 0 / 445.4 MB, free: 11.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003739/0.4837, allocations: 20 kB / 445.4 MB, free: 11.04 MB / 378.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.0001494/0.4839, allocations: 107.8 kB / 445.5 MB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.4842, allocations: 92.42 kB / 445.6 MB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.973e-06/0.4842, allocations: 320 / 445.6 MB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.4843, allocations: 44 kB / 445.6 MB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.4846, allocations: 13.45 kB / 445.6 MB, free: 10.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004383/0.485, allocations: 127.7 kB / 445.7 MB, free: 10.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.4854, allocations: 0.6965 MB / 446.4 MB, free: 9.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.879e-05/0.4855, allocations: 8.891 kB / 446.5 MB, free: 9.898 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.18e-05/0.4856, allocations: 23.42 kB / 446.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of SimCode: time 1.709e-06/0.4856, allocations: 3.938 kB / 446.5 MB, free: 9.871 MB / 378.7 MB Notification: Performance of Templates: time 0.004305/0.4899, allocations: 0.8745 MB / 447.4 MB, free: 9.016 MB / 378.7 MB