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.968/1.968, allocations: 209.3 MB / 223.8 MB, free: 440 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.905e-05/2.878e-05, allocations: 4 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3516, allocations: 48.71 MB / 324.9 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002028/0.3537, allocations: 1.192 MB / 326.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.3547, allocations: 463.5 kB / 326.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.547e-05/0.3548, allocations: 1.469 kB / 326.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.335e-05/0.3548, allocations: 4.594 kB / 326.5 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.963e-05/0.3549, allocations: 13.48 kB / 326.5 MB, free: 2.566 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.3551, allocations: 30.25 kB / 326.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.195e-05/0.3552, allocations: 37.77 kB / 326.6 MB, free: 2.535 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.742e-05/0.3553, allocations: 11.52 kB / 326.6 MB, free: 2.531 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001385/0.3555, allocations: 32.62 kB / 326.6 MB, free: 2.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.901e-05/0.3556, allocations: 35.03 kB / 326.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.169e-05/0.3556, allocations: 3.875 kB / 326.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.3556, allocations: 4.438 kB / 326.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.3557, allocations: 15.03 kB / 326.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.781e-05/0.3557, allocations: 5.875 kB / 326.7 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.3558, allocations: 45.33 kB / 326.8 MB, free: 2.492 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3559, allocations: 0 / 326.8 MB, free: 2.492 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3559, allocations: 0 / 326.8 MB, free: 2.492 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.3559, allocations: 4 kB / 326.8 MB, free: 2.488 MB / 266.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.0007064/0.3566, allocations: 391 kB / 327.1 MB, free: 2.113 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.3567, allocations: 9.25 kB / 327.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.3567, allocations: 10.27 kB / 327.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.3569, allocations: 178.5 kB / 327.3 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.3569, allocations: 4.297 kB / 327.3 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.3569, allocations: 9.828 kB / 327.3 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002678/0.3572, allocations: 83.41 kB / 327.4 MB, free: 1.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.3572, allocations: 1.125 kB / 327.4 MB, free: 1.852 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.3573, allocations: 0.75 kB / 327.4 MB, free: 1.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.3573, allocations: 7.062 kB / 327.4 MB, free: 1.848 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.3575, allocations: 53.75 kB / 327.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006883/0.3582, allocations: 340.6 kB / 327.8 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002722/0.3585, allocations: 84.72 kB / 327.9 MB, free: 1.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.3586, allocations: 7.094 kB / 327.9 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.3588, allocations: 99.73 kB / 328 MB, free: 1.406 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 3.045e-06/0.3589, allocations: 0 / 328 MB, free: 1.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006589/0.3595, allocations: 190.9 kB / 328.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.3596, allocations: 61.61 kB / 328.3 MB, free: 1.262 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.427e-05/0.3597, allocations: 110 kB / 328.4 MB, free: 1.164 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.3597, allocations: 33.06 kB / 328.4 MB, free: 1.129 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.3598, allocations: 92.98 kB / 328.5 MB, free: 1.039 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.068e-05/0.3599, allocations: 37.23 kB / 328.5 MB, free: 1.012 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.3599, allocations: 4 kB / 328.5 MB, free: 1.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.755e-05/0.36, allocations: 326.9 kB / 328.8 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.3601, allocations: 31.27 kB / 328.9 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.3603, allocations: 84.33 kB / 329 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.3605, allocations: 47.88 kB / 329 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3605, allocations: 1.062 kB / 329 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004284/0.3609, allocations: 161.8 kB / 329.2 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3609, allocations: 6.203 kB / 329.2 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.361, allocations: 1.031 kB / 329.2 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.361, allocations: 2.875 kB / 329.2 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.3612, allocations: 29.12 kB / 329.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3612, allocations: 2.922 kB / 329.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.3613, allocations: 21.86 kB / 329.2 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.3614, allocations: 5.547 kB / 329.2 MB, free: 0.4922 MB / 266.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true 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.0001805/0.3616, allocations: 133.8 kB / 329.4 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.3616, allocations: 12.62 kB / 329.4 MB, free: 372 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.079e-05/0.3616, allocations: 10.75 kB / 329.4 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3617, allocations: 2.969 kB / 329.4 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.58e-05/0.3617, allocations: 4 kB / 329.4 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3617, allocations: 1.125 kB / 329.4 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007506/0.3625, allocations: 447.1 kB / 329.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.3625, allocations: 0 / 329.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.95e-05/0.3626, allocations: 9.578 kB / 329.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-06/0.3626, allocations: 1.344 kB / 329.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.3626, allocations: 2.672 kB / 329.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.257e-06/0.3627, allocations: 1.938 kB / 329.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.3627, allocations: 5.188 kB / 329.9 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005102/0.3632, allocations: 263.5 kB / 330.1 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.3634, allocations: 101.3 kB / 330.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.3634, allocations: 3.797 kB / 330.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3636, allocations: 12.69 kB / 330.2 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.981e-05/0.3637, allocations: 20.12 kB / 330.2 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.3637, allocations: 5.062 kB / 330.2 MB, free: 15.69 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.844e-05/0.3638, allocations: 95.34 kB / 330.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3638, allocations: 0 / 330.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003501/0.3642, allocations: 22.8 kB / 330.4 MB, free: 15.61 MB / 282.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.0001501/0.3643, allocations: 101.3 kB / 330.5 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004164/0.3648, allocations: 110.5 kB / 330.6 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3648, allocations: 0 / 330.6 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001915/0.365, allocations: 54.66 kB / 330.6 MB, free: 15.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.3652, allocations: 5.422 kB / 330.6 MB, free: 15.46 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006642/0.3659, allocations: 234.5 kB / 330.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.3663, allocations: 0.6955 MB / 331.6 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.33e-05/0.3664, allocations: 12.36 kB / 331.6 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.773e-05/0.3664, allocations: 14.81 kB / 331.6 MB, free: 14.58 MB / 282.7 MB Notification: Performance of SimCode: time 4.92e-06/0.3664, allocations: 0 / 331.6 MB, free: 14.58 MB / 282.7 MB Notification: Performance of Templates: time 0.004587/0.371, allocations: 0.8892 MB / 332.5 MB, free: 14.49 MB / 282.7 MB