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.3_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.312/2.312, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.489e-05/3.501e-05, allocations: 10.59 kB / 323.4 MB, free: 4.32 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3201, allocations: 58.83 MB / 382.2 MB, free: 10.31 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.4518, allocations: 85.64 MB / 467.8 MB, free: 6.879 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.452, allocations: 55.98 kB / 467.9 MB, free: 6.824 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.00579/0.4578, allocations: 1.42 MB / 469.3 MB, free: 5.395 MB / 394.8 MB Notification: Performance of FrontEnd: time 4.956e-06/0.4579, allocations: 0 / 469.3 MB, free: 5.395 MB / 394.8 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.4579, allocations: 11.94 kB / 469.3 MB, free: 5.383 MB / 394.8 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.0005787/0.4585, allocations: 370.3 kB / 469.7 MB, free: 4.977 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.4586, allocations: 16.03 kB / 469.7 MB, free: 4.961 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.582e-05/0.4586, allocations: 7.906 kB / 469.7 MB, free: 4.953 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.4588, allocations: 171 kB / 469.9 MB, free: 4.746 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.4588, allocations: 11.98 kB / 469.9 MB, free: 4.734 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.4589, allocations: 8 kB / 469.9 MB, free: 4.727 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.4591, allocations: 77.67 kB / 470 MB, free: 4.645 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.4591, allocations: 3.938 kB / 470 MB, free: 4.641 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.4592, allocations: 7.984 kB / 470 MB, free: 4.633 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.027e-06/0.4592, allocations: 0 / 470 MB, free: 4.633 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001183/0.4593, allocations: 32 kB / 470 MB, free: 4.602 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006782/0.46, allocations: 340.6 kB / 470.4 MB, free: 4.219 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.4602, allocations: 70.58 kB / 470.4 MB, free: 4.141 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.4603, allocations: 44.84 kB / 470.5 MB, free: 4.094 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.4604, allocations: 4 kB / 470.5 MB, free: 4.09 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.4606, allocations: 95.31 kB / 470.6 MB, free: 3.984 MB / 394.8 MB Notification: Performance of pre-optimization done (n=14): time 2.921e-06/0.4606, allocations: 0 / 470.6 MB, free: 3.984 MB / 394.8 MB Notification: Performance of matching and sorting (n=14): time 0.0003792/0.461, allocations: 137.7 kB / 470.7 MB, free: 3.844 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.4611, allocations: 59.34 kB / 470.8 MB, free: 3.773 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.4612, allocations: 113.1 kB / 470.9 MB, free: 3.652 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.4613, allocations: 33.69 kB / 470.9 MB, free: 3.613 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.029e-05/0.4613, allocations: 88.42 kB / 471 MB, free: 3.52 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.445e-05/0.4614, allocations: 43.53 kB / 471 MB, free: 3.477 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.372e-06/0.4614, allocations: 0 / 471 MB, free: 3.477 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0002388/0.4617, allocations: 322.8 kB / 471.3 MB, free: 3.152 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.4619, allocations: 32.38 kB / 471.4 MB, free: 3.121 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.4621, allocations: 69.66 kB / 471.4 MB, free: 3.035 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.4623, allocations: 39.98 kB / 471.5 MB, free: 2.996 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.726e-06/0.4624, allocations: 0 / 471.5 MB, free: 2.996 MB / 394.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005563/0.4629, allocations: 145.6 kB / 471.6 MB, free: 2.848 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.463, allocations: 4 kB / 471.6 MB, free: 2.844 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.463, allocations: 4 kB / 471.6 MB, free: 2.84 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.4631, allocations: 4.156 kB / 471.6 MB, free: 2.836 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.4633, allocations: 19.98 kB / 471.7 MB, free: 2.816 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.069e-05/0.4633, allocations: 4 kB / 471.7 MB, free: 2.812 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.4635, allocations: 19.8 kB / 471.7 MB, free: 2.793 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.4636, allocations: 8 kB / 471.7 MB, free: 2.785 MB / 394.8 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.0001883/0.4638, allocations: 122 kB / 471.8 MB, free: 2.66 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.138e-05/0.4639, allocations: 11.89 kB / 471.8 MB, free: 2.648 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.817e-05/0.4639, allocations: 12.75 kB / 471.8 MB, free: 2.637 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.464, allocations: 4 kB / 471.8 MB, free: 2.633 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.464, allocations: 0 / 471.8 MB, free: 2.633 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.557e-06/0.464, allocations: 0 / 471.8 MB, free: 2.633 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.4652, allocations: 438.4 kB / 472.3 MB, free: 2.148 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.679e-06/0.4653, allocations: 0 / 472.3 MB, free: 2.148 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001388/0.4654, allocations: 11.98 kB / 472.3 MB, free: 2.137 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.329e-06/0.4655, allocations: 0 / 472.3 MB, free: 2.137 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.4655, allocations: 4 kB / 472.3 MB, free: 2.133 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.061e-05/0.4656, allocations: 3.953 kB / 472.3 MB, free: 2.129 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.274e-06/0.4656, allocations: 8 kB / 472.3 MB, free: 2.121 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000649/0.4662, allocations: 243.3 kB / 472.5 MB, free: 1.867 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.159e-05/0.4664, allocations: 84.95 kB / 472.6 MB, free: 1.766 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.4664, allocations: 4 kB / 472.6 MB, free: 1.762 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.4667, allocations: 11.98 kB / 472.6 MB, free: 1.75 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.4668, allocations: 15.94 kB / 472.6 MB, free: 1.734 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.4668, allocations: 12 kB / 472.7 MB, free: 1.723 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.0001065/0.467, allocations: 91.59 kB / 472.7 MB, free: 1.633 MB / 394.8 MB Notification: Performance of sort global known variables: time 1.043e-06/0.467, allocations: 0 / 472.7 MB, free: 1.633 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.0006578/0.4676, allocations: 23.98 kB / 472.8 MB, free: 1.609 MB / 394.8 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.0001955/0.4679, allocations: 111.2 kB / 472.9 MB, free: 1.488 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.4683, allocations: 91.86 kB / 473 MB, free: 1.398 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.4683, allocations: 0 / 473 MB, free: 1.398 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001844/0.4685, allocations: 40.31 kB / 473 MB, free: 1.359 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.4689, allocations: 12.33 kB / 473 MB, free: 1.348 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006681/0.4696, allocations: 127.2 kB / 473.1 MB, free: 1.203 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004817/0.4701, allocations: 0.6965 MB / 473.8 MB, free: 492 kB / 394.8 MB Notification: Performance of simCode: alias equations: time 8.753e-05/0.4702, allocations: 12.88 kB / 473.9 MB, free: 480 kB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.632e-05/0.4703, allocations: 11.44 kB / 473.9 MB, free: 468 kB / 394.8 MB Notification: Performance of SimCode: time 1.725e-06/0.4703, allocations: 4 kB / 473.9 MB, free: 464 kB / 394.8 MB Notification: Performance of Templates: time 0.006009/0.4764, allocations: 0.8827 MB / 474.7 MB, free: 15.58 MB / 410.8 MB