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.114/2.114, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.19e-05/3.202e-05, allocations: 4.938 kB / 304.9 MB, free: 5.676 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.382, allocations: 54.85 MB / 359.8 MB, free: 2.648 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.5044, allocations: 80.71 MB / 440.5 MB, free: 312 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.5046, allocations: 64.53 kB / 440.5 MB, free: 248 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005477/0.5101, allocations: 1.385 MB / 441.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.263e-06/0.5101, allocations: 4 kB / 441.9 MB, free: 14.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.31e-06/0.5101, allocations: 3.609 kB / 441.9 MB, free: 14.87 MB / 378.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.0005819/0.5107, allocations: 383.2 kB / 442.3 MB, free: 14.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.5108, allocations: 12.03 kB / 442.3 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.837e-05/0.5108, allocations: 7.906 kB / 442.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.511, allocations: 171.2 kB / 442.5 MB, free: 14.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.5111, allocations: 11.98 kB / 442.5 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.5111, allocations: 4 kB / 442.5 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.5113, allocations: 73.67 kB / 442.6 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.5113, allocations: 0 / 442.6 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.5113, allocations: 7.984 kB / 442.6 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.5114, allocations: 3.953 kB / 442.6 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001171/0.5115, allocations: 32 kB / 442.6 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.5122, allocations: 334.7 kB / 442.9 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002028/0.5124, allocations: 78.52 kB / 443 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.852e-05/0.5125, allocations: 40.84 kB / 443.1 MB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.5125, allocations: 8.844 kB / 443.1 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002068/0.5128, allocations: 95.45 kB / 443.2 MB, free: 13.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.788e-06/0.5128, allocations: 0 / 443.2 MB, free: 13.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003815/0.5132, allocations: 133.6 kB / 443.3 MB, free: 13.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.5133, allocations: 59.39 kB / 443.3 MB, free: 13.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.5134, allocations: 110.7 kB / 443.5 MB, free: 13.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.5134, allocations: 33.7 kB / 443.5 MB, free: 13.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.5135, allocations: 162.8 kB / 443.6 MB, free: 12.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.636e-05/0.5136, allocations: 23.62 kB / 443.7 MB, free: 12.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.322e-05/0.5136, allocations: 8 kB / 443.7 MB, free: 12.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.5138, allocations: 326 kB / 444 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.416e-05/0.5139, allocations: 24.38 kB / 444 MB, free: 12.56 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.514, allocations: 72.7 kB / 444.1 MB, free: 12.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/0.5142, allocations: 41.95 kB / 444.1 MB, free: 12.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.44e-06/0.5142, allocations: 5.5 kB / 444.1 MB, free: 12.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003156/0.5145, allocations: 133.7 kB / 444.3 MB, free: 12.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.5145, allocations: 7.953 kB / 444.3 MB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.576e-06/0.5146, allocations: 7.938 kB / 444.3 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.5146, allocations: 0 / 444.3 MB, free: 12.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.5148, allocations: 36.08 kB / 444.3 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.5148, allocations: 0 / 444.3 MB, free: 12.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.14e-05/0.5149, allocations: 11.84 kB / 444.3 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.5149, allocations: 15.98 kB / 444.3 MB, free: 12.22 MB / 378.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.0001175/0.5151, allocations: 119.2 kB / 444.5 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.5151, allocations: 7.906 kB / 444.5 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.294e-05/0.5152, allocations: 16.7 kB / 444.5 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.5152, allocations: 0 / 444.5 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.079e-06/0.5152, allocations: 0 / 444.5 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.718e-06/0.5152, allocations: 7.984 kB / 444.5 MB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006722/0.5159, allocations: 426.5 kB / 444.9 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.356e-06/0.5159, allocations: 6.016 kB / 444.9 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.592e-05/0.516, allocations: 11.94 kB / 444.9 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.916e-06/0.516, allocations: 0 / 444.9 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.5161, allocations: 3.984 kB / 444.9 MB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.296e-06/0.5161, allocations: 4 kB / 444.9 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.751e-06/0.5161, allocations: 0 / 444.9 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000378/0.5165, allocations: 239.4 kB / 445.2 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.715e-05/0.5166, allocations: 88.91 kB / 445.3 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.5166, allocations: 15.11 kB / 445.3 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.5168, allocations: 8 kB / 445.3 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.3e-05/0.5168, allocations: 8.828 kB / 445.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.327e-05/0.5169, allocations: 8 kB / 445.3 MB, free: 11.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.887e-05/0.517, allocations: 96.67 kB / 445.4 MB, free: 11.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.57e-07/0.517, allocations: 0 / 445.4 MB, free: 11.08 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003448/0.5173, allocations: 20 kB / 445.4 MB, free: 11.06 MB / 378.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.000139/0.5175, allocations: 107.1 kB / 445.5 MB, free: 10.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002568/0.5178, allocations: 92.42 kB / 445.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.5178, allocations: 0 / 445.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.5179, allocations: 47.92 kB / 445.6 MB, free: 10.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.5182, allocations: 17.66 kB / 445.7 MB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004218/0.5186, allocations: 154.3 kB / 445.8 MB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.519, allocations: 0.7004 MB / 446.5 MB, free: 9.891 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.255e-05/0.5191, allocations: 15.44 kB / 446.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of SimCode: time 1.406e-06/0.5191, allocations: 0 / 446.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of Templates: time 0.003098/0.5222, allocations: 1.173 MB / 447.7 MB, free: 8.711 MB / 378.7 MB