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.1_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 1.89/1.89, allocations: 209.3 MB / 221.5 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.096e-05, allocations: 4 kB / 273.1 MB, free: 3.176 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09088/0.09093, allocations: 48.7 MB / 321.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3515/0.4425, allocations: 74.34 MB / 396.1 MB, free: 7.441 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.4428, allocations: 62.62 kB / 396.2 MB, free: 7.441 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005184/0.448, allocations: 1.376 MB / 397.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.08e-06/0.448, allocations: 4 kB / 397.6 MB, free: 7.047 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.4481, allocations: 3.875 kB / 397.6 MB, free: 7.047 MB / 314.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.0005213/0.4486, allocations: 382.2 kB / 397.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.4486, allocations: 7.688 kB / 397.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.536e-05/0.4487, allocations: 15.59 kB / 398 MB, free: 6.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.974e-05/0.4488, allocations: 174.2 kB / 398.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.4488, allocations: 3.844 kB / 398.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.434e-05/0.4489, allocations: 5.906 kB / 398.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.4491, allocations: 83.72 kB / 398.2 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.325e-06/0.4491, allocations: 0 / 398.2 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.4491, allocations: 3.125 kB / 398.2 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.617e-06/0.4491, allocations: 0 / 398.2 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.4492, allocations: 36.02 kB / 398.3 MB, free: 6.441 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005312/0.4498, allocations: 336.2 kB / 398.6 MB, free: 6.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001721/0.45, allocations: 81.48 kB / 398.7 MB, free: 6.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.022e-05/0.4501, allocations: 37.55 kB / 398.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4501, allocations: 10.41 kB / 398.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001744/0.4503, allocations: 96.11 kB / 398.8 MB, free: 6.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.913e-06/0.4503, allocations: 3.938 kB / 398.8 MB, free: 6.066 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003231/0.4506, allocations: 135.1 kB / 398.9 MB, free: 6.031 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.4507, allocations: 55.25 kB / 399 MB, free: 5.969 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.806e-05/0.4508, allocations: 114.1 kB / 399.1 MB, free: 5.871 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.125e-05/0.4508, allocations: 35.48 kB / 399.1 MB, free: 5.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.761e-05/0.4509, allocations: 94.34 kB / 399.2 MB, free: 5.754 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/0.4509, allocations: 28.95 kB / 399.3 MB, free: 5.738 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.051e-05/0.4509, allocations: 2.812 kB / 399.3 MB, free: 5.738 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.451, allocations: 333.1 kB / 399.6 MB, free: 5.414 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.355e-05/0.4511, allocations: 28.72 kB / 399.6 MB, free: 5.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.471e-05/0.4512, allocations: 70.58 kB / 399.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001064/0.4513, allocations: 40.19 kB / 399.7 MB, free: 5.355 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.235e-06/0.4513, allocations: 0 / 399.7 MB, free: 5.355 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002886/0.4516, allocations: 145.6 kB / 399.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.4517, allocations: 7.5 kB / 399.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.598e-06/0.4517, allocations: 0 / 399.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.4517, allocations: 3.844 kB / 399.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.4519, allocations: 21.09 kB / 399.9 MB, free: 5.309 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.4519, allocations: 15.73 kB / 399.9 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.452, allocations: 10.72 kB / 399.9 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.452, allocations: 11.36 kB / 399.9 MB, free: 5.293 MB / 314.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean 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.0001251/0.4522, allocations: 117.7 kB / 400.1 MB, free: 5.184 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.419e-05/0.4522, allocations: 11.44 kB / 400.1 MB, free: 5.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.392e-05/0.4522, allocations: 11.97 kB / 400.1 MB, free: 5.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.386e-06/0.4523, allocations: 3.688 kB / 400.1 MB, free: 5.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.426e-06/0.4523, allocations: 4 kB / 400.1 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.385e-06/0.4523, allocations: 0 / 400.1 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005453/0.4528, allocations: 437.4 kB / 400.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4529, allocations: 0 / 400.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.33e-05/0.453, allocations: 10.78 kB / 400.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.453, allocations: 0 / 400.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.453, allocations: 3.375 kB / 400.5 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/0.453, allocations: 7.875 kB / 400.5 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.924e-06/0.453, allocations: 7.891 kB / 400.5 MB, free: 4.852 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003001/0.4533, allocations: 240.7 kB / 400.8 MB, free: 4.711 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.919e-05/0.4534, allocations: 93.7 kB / 400.9 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.949e-05/0.4535, allocations: 0 / 400.9 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.4536, allocations: 14.14 kB / 400.9 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.4537, allocations: 8.266 kB / 400.9 MB, free: 4.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.4537, allocations: 7.797 kB / 400.9 MB, free: 4.609 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.767e-05/0.4538, allocations: 107.2 kB / 401 MB, free: 4.523 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.49e-07/0.4538, allocations: 3.938 kB / 401 MB, free: 4.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003359/0.4541, allocations: 19.41 kB / 401 MB, free: 4.52 MB / 314.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.0001021/0.4542, allocations: 107.9 kB / 401.1 MB, free: 4.426 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002205/0.4545, allocations: 88.31 kB / 401.2 MB, free: 4.422 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.808e-06/0.4545, allocations: 0 / 401.2 MB, free: 4.422 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.4546, allocations: 44.47 kB / 401.3 MB, free: 4.422 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.4548, allocations: 10.92 kB / 401.3 MB, free: 4.418 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003696/0.4552, allocations: 136.7 kB / 401.4 MB, free: 4.332 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.4556, allocations: 0.6997 MB / 402.1 MB, free: 19.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.606e-05/0.4557, allocations: 11.25 kB / 402.1 MB, free: 19.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.08e-05/0.4557, allocations: 11.12 kB / 402.1 MB, free: 19.63 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4557, allocations: 0 / 402.1 MB, free: 19.63 MB / 330.7 MB Notification: Performance of Templates: time 0.003816/0.4596, allocations: 0.8951 MB / 403 MB, free: 19.5 MB / 330.7 MB