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_cpp_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadModel(ModelicaTest): time 2.505/2.505, allocations: 234.9 MB / 250.1 MB, free: 9.801 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.396e-05/5.395e-05, allocations: 4 kB / 308 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4168, allocations: 54.87 MB / 362.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002213/0.4191, allocations: 1.207 MB / 364.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.4205, allocations: 472.2 kB / 364.5 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.497e-05/0.4206, allocations: 3.938 kB / 364.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.4207, allocations: 3.984 kB / 364.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001064/0.4208, allocations: 7.922 kB / 364.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.421, allocations: 27.95 kB / 364.6 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.4212, allocations: 47.83 kB / 364.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.4213, allocations: 8 kB / 364.6 MB, free: 10 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.4215, allocations: 27.97 kB / 364.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.4216, allocations: 39.83 kB / 364.7 MB, free: 9.934 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.856e-05/0.4216, allocations: 4 kB / 364.7 MB, free: 9.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.4217, allocations: 4 kB / 364.7 MB, free: 9.926 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.367e-05/0.4217, allocations: 15.98 kB / 364.7 MB, free: 9.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.401e-05/0.4218, allocations: 4 kB / 364.7 MB, free: 9.906 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.422, allocations: 51.83 kB / 364.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.422, allocations: 0 / 364.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.422, allocations: 4 kB / 364.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.422, allocations: 0 / 364.8 MB, free: 9.852 MB / 298.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.00101/0.423, allocations: 381 kB / 365.1 MB, free: 9.434 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.012e-05/0.4231, allocations: 8.031 kB / 365.1 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.911e-05/0.4232, allocations: 19.83 kB / 365.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.4235, allocations: 174.9 kB / 365.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.865e-05/0.4235, allocations: 4 kB / 365.3 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.4236, allocations: 12 kB / 365.3 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003655/0.424, allocations: 77.64 kB / 365.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.424, allocations: 0 / 365.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.528e-05/0.424, allocations: 11.95 kB / 365.4 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.4241, allocations: 0 / 365.4 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002964/0.4244, allocations: 55.91 kB / 365.5 MB, free: 9.031 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009416/0.4253, allocations: 320.8 kB / 365.8 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003693/0.4257, allocations: 90.55 kB / 365.9 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.4258, allocations: 4 kB / 365.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003747/0.4262, allocations: 107.4 kB / 366 MB, free: 8.449 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 7.504e-06/0.4262, allocations: 0 / 366 MB, free: 8.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008874/0.4271, allocations: 197.6 kB / 366.2 MB, free: 8.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.4272, allocations: 59.41 kB / 366.3 MB, free: 8.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.4274, allocations: 109.2 kB / 366.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.4274, allocations: 33.69 kB / 366.4 MB, free: 8.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.4276, allocations: 162.8 kB / 366.5 MB, free: 7.867 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.318e-05/0.4276, allocations: 35.53 kB / 366.6 MB, free: 7.832 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.4277, allocations: 4 kB / 366.6 MB, free: 7.828 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.4279, allocations: 318.8 kB / 366.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.4281, allocations: 44.66 kB / 366.9 MB, free: 7.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.4284, allocations: 75.39 kB / 367 MB, free: 7.375 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.4286, allocations: 47.98 kB / 367.1 MB, free: 7.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.4287, allocations: 0 / 367.1 MB, free: 7.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006175/0.4293, allocations: 161.3 kB / 367.2 MB, free: 7.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.4293, allocations: 11.95 kB / 367.2 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.4294, allocations: 0 / 367.2 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/0.4294, allocations: 4 kB / 367.2 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.4297, allocations: 32.08 kB / 367.3 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.4297, allocations: 4 kB / 367.3 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001536/0.4299, allocations: 11.94 kB / 367.3 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.4299, allocations: 4 kB / 367.3 MB, free: 7.098 MB / 298.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.0002019/0.4301, allocations: 136 kB / 367.4 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/0.4302, allocations: 7.906 kB / 367.4 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.274e-05/0.4302, allocations: 16.45 kB / 367.4 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.4303, allocations: 0 / 367.4 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4303, allocations: 0 / 367.4 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.4303, allocations: 7.984 kB / 367.5 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.4314, allocations: 446.8 kB / 367.9 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.4315, allocations: 3.953 kB / 367.9 MB, free: 6.426 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.4316, allocations: 4 kB / 367.9 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.4316, allocations: 4 kB / 367.9 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.4317, allocations: 3.984 kB / 367.9 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.4317, allocations: 4 kB / 367.9 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4317, allocations: 0 / 367.9 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007108/0.4324, allocations: 255.5 kB / 368.2 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.483e-05/0.4325, allocations: 92.91 kB / 368.2 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.502e-05/0.4326, allocations: 4 kB / 368.3 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.4329, allocations: 19.92 kB / 368.3 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.43e-05/0.433, allocations: 7.984 kB / 368.3 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.944e-05/0.433, allocations: 8 kB / 368.3 MB, free: 5.996 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.4332, allocations: 91.27 kB / 368.4 MB, free: 5.906 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4332, allocations: 0 / 368.4 MB, free: 5.906 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006561/0.4338, allocations: 24 kB / 368.4 MB, free: 5.883 MB / 298.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.0001996/0.4341, allocations: 103.2 kB / 368.5 MB, free: 5.773 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000595/0.4347, allocations: 116 kB / 368.6 MB, free: 5.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.4347, allocations: 4 kB / 368.6 MB, free: 5.656 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002743/0.435, allocations: 51.97 kB / 368.7 MB, free: 5.605 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.4354, allocations: 11.94 kB / 368.7 MB, free: 5.594 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000879/0.4363, allocations: 251.4 kB / 368.9 MB, free: 5.316 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004351/0.4368, allocations: 0.6926 MB / 369.6 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.373e-05/0.4369, allocations: 19.42 kB / 369.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of SimCode: time 1.222e-06/0.4369, allocations: 0 / 369.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of Templates: time 0.005218/0.4421, allocations: 1.188 MB / 370.8 MB, free: 3.398 MB / 298.7 MB