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_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 1.975/1.975, allocations: 209.3 MB / 224.4 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.838e-05/2.838e-05, allocations: 3.938 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3775, allocations: 48.71 MB / 324.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002079/0.3796, allocations: 1.193 MB / 326 MB, free: 2.367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009783/0.3806, allocations: 470.3 kB / 326.5 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.171e-05/0.3807, allocations: 1.125 kB / 326.5 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.44e-05/0.3807, allocations: 5.906 kB / 326.5 MB, free: 2.137 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.8e-05/0.3808, allocations: 10.7 kB / 326.5 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001617/0.381, allocations: 25.64 kB / 326.5 MB, free: 2.121 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.001e-05/0.3811, allocations: 44.28 kB / 326.6 MB, free: 2.102 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.977e-05/0.3812, allocations: 8.469 kB / 326.6 MB, free: 2.098 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001271/0.3813, allocations: 37.05 kB / 326.6 MB, free: 2.082 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.416e-05/0.3814, allocations: 32.42 kB / 326.7 MB, free: 2.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.329e-05/0.3815, allocations: 4.156 kB / 326.7 MB, free: 2.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.085e-05/0.3815, allocations: 3.562 kB / 326.7 MB, free: 2.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.165e-05/0.3815, allocations: 17.7 kB / 326.7 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.937e-05/0.3816, allocations: 4.906 kB / 326.7 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.3817, allocations: 44.31 kB / 326.7 MB, free: 2.059 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.3817, allocations: 0 / 326.7 MB, free: 2.059 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3817, allocations: 0 / 326.7 MB, free: 2.059 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.3817, allocations: 0 / 326.7 MB, free: 2.059 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.0006884/0.3824, allocations: 390.7 kB / 327.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3825, allocations: 9.094 kB / 327.1 MB, free: 1.688 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.487e-05/0.3826, allocations: 9.188 kB / 327.1 MB, free: 1.684 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.3827, allocations: 175.3 kB / 327.3 MB, free: 1.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.3827, allocations: 11.97 kB / 327.3 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.3828, allocations: 5.766 kB / 327.3 MB, free: 1.473 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.383, allocations: 89.12 kB / 327.4 MB, free: 1.422 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3831, allocations: 0 / 327.4 MB, free: 1.422 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.3831, allocations: 5.953 kB / 327.4 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.3831, allocations: 1.344 kB / 327.4 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.3833, allocations: 50.61 kB / 327.5 MB, free: 1.402 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006199/0.384, allocations: 340.2 kB / 327.8 MB, free: 1.094 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.3842, allocations: 93.91 kB / 327.9 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.3843, allocations: 3 kB / 327.9 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.3845, allocations: 100.2 kB / 328 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.3845, allocations: 0 / 328 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006171/0.3852, allocations: 191.3 kB / 328.2 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.199e-05/0.3852, allocations: 60.55 kB / 328.2 MB, free: 0.832 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.229e-05/0.3853, allocations: 114 kB / 328.3 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.3854, allocations: 32.73 kB / 328.4 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/0.3854, allocations: 161.5 kB / 328.5 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.3855, allocations: 37.45 kB / 328.6 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.689e-06/0.3855, allocations: 7.938 kB / 328.6 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.032e-05/0.3856, allocations: 319.6 kB / 328.9 MB, free: 192 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.3857, allocations: 37.03 kB / 328.9 MB, free: 180 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.3859, allocations: 80.14 kB / 329 MB, free: 116 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.3861, allocations: 43.86 kB / 329 MB, free: 100 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3861, allocations: 5.219 kB / 329.1 MB, free: 96 kB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004241/0.3865, allocations: 158.7 kB / 329.2 MB, free: 16 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3866, allocations: 6.312 kB / 329.2 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.3866, allocations: 1.453 kB / 329.2 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3866, allocations: 7.094 kB / 329.2 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.3868, allocations: 19.66 kB / 329.2 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3868, allocations: 6.844 kB / 329.2 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.3869, allocations: 15.08 kB / 329.3 MB, free: 0 / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.387, allocations: 6.594 kB / 329.3 MB, free: 0 / 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.00025/0.3872, allocations: 138.1 kB / 329.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.3873, allocations: 8.875 kB / 329.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.304e-05/0.3873, allocations: 12.66 kB / 329.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3873, allocations: 3.344 kB / 329.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.3874, allocations: 0 / 329.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3874, allocations: 5.891 kB / 329.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008438/0.3882, allocations: 442.2 kB / 329.9 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3882, allocations: 1.125 kB / 329.9 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.7e-05/0.3884, allocations: 13.34 kB / 329.9 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.3884, allocations: 1.625 kB / 329.9 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.3884, allocations: 2.656 kB / 329.9 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.3884, allocations: 9 kB / 329.9 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3884, allocations: 0 / 329.9 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005029/0.3889, allocations: 259.6 kB / 330.1 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.737e-05/0.3891, allocations: 95.97 kB / 330.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.3891, allocations: 3.516 kB / 330.2 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.3893, allocations: 18.88 kB / 330.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.3893, allocations: 7.219 kB / 330.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.3894, allocations: 4.781 kB / 330.3 MB, free: 15.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.929e-05/0.3895, allocations: 94.97 kB / 330.4 MB, free: 15.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3895, allocations: 1.312 kB / 330.4 MB, free: 15.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003408/0.3898, allocations: 21.69 kB / 330.4 MB, free: 15.12 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.0001623/0.39, allocations: 105.9 kB / 330.5 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004028/0.3904, allocations: 110.6 kB / 330.6 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3904, allocations: 0 / 330.6 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001903/0.3906, allocations: 55.73 kB / 330.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.3909, allocations: 6.484 kB / 330.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006681/0.3916, allocations: 266.8 kB / 330.9 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003465/0.3919, allocations: 0.6987 MB / 331.6 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.155e-05/0.392, allocations: 18.77 kB / 331.6 MB, free: 14.05 MB / 282.7 MB Notification: Performance of SimCode: time 7.82e-07/0.392, allocations: 0 / 331.6 MB, free: 14.05 MB / 282.7 MB Notification: Performance of Templates: time 0.003952/0.396, allocations: 1.188 MB / 332.8 MB, free: 13.96 MB / 282.7 MB