Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.54/2.54, allocations: 235.1 MB / 242.2 MB, free: 15.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.703e-05, allocations: 4 kB / 299.5 MB, free: 6.355 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.3792, allocations: 54.84 MB / 354.3 MB, free: 44 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1585/0.5377, allocations: 80.04 MB / 434.4 MB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/0.5381, allocations: 63.97 kB / 434.4 MB, free: 15.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009214/0.5474, allocations: 1.37 MB / 435.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5474, allocations: 0 / 435.8 MB, free: 14.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.5475, allocations: 4 kB / 435.8 MB, free: 14.45 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.0008722/0.5483, allocations: 390.2 kB / 436.2 MB, free: 14.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.009e-05/0.5484, allocations: 12.03 kB / 436.2 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.657e-05/0.5485, allocations: 11.86 kB / 436.2 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.5488, allocations: 167.2 kB / 436.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/0.5488, allocations: 8 kB / 436.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.5489, allocations: 7.984 kB / 436.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002025/0.5491, allocations: 28 kB / 436.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000283/0.5494, allocations: 73.67 kB / 436.5 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.5494, allocations: 0 / 436.5 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.357e-05/0.5495, allocations: 7.938 kB / 436.5 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.5495, allocations: 0 / 436.5 MB, free: 13.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009464/0.5505, allocations: 301.2 kB / 436.8 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.5508, allocations: 78.56 kB / 436.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.551, allocations: 32.86 kB / 436.9 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.551, allocations: 7.984 kB / 436.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002897/0.5513, allocations: 91.59 kB / 437 MB, free: 13.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 8.626e-06/0.5514, allocations: 4 kB / 437 MB, free: 13.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005681/0.552, allocations: 141.5 kB / 437.1 MB, free: 12.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.552, allocations: 55.41 kB / 437.2 MB, free: 12.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.5522, allocations: 105.5 kB / 437.3 MB, free: 12.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.692e-05/0.5523, allocations: 29.7 kB / 437.3 MB, free: 12.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.5524, allocations: 92.41 kB / 437.4 MB, free: 12.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.059e-05/0.5525, allocations: 27.72 kB / 437.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.5525, allocations: 3.938 kB / 437.4 MB, free: 12.61 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.5527, allocations: 326.8 kB / 437.8 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.5529, allocations: 24.38 kB / 437.8 MB, free: 12.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.5531, allocations: 69.64 kB / 437.9 MB, free: 12.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.5533, allocations: 43.86 kB / 437.9 MB, free: 12.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5533, allocations: 4 kB / 437.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004768/0.5538, allocations: 125.5 kB / 438 MB, free: 12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.5538, allocations: 8 kB / 438 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.5539, allocations: 4 kB / 438 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.5539, allocations: 4 kB / 438 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002762/0.5542, allocations: 27.88 kB / 438.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.5542, allocations: 0 / 438.1 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001654/0.5544, allocations: 19.98 kB / 438.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.984e-05/0.5545, allocations: 8 kB / 438.1 MB, free: 11.93 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.0001588/0.5546, allocations: 120.7 kB / 438.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004794/0.5551, allocations: 133.6 kB / 438.3 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.738e-05/0.5552, allocations: 7.906 kB / 438.4 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.448e-05/0.5553, allocations: 12.7 kB / 438.4 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.5553, allocations: 0 / 438.4 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5553, allocations: 4 kB / 438.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.5554, allocations: 0 / 438.4 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009319/0.5563, allocations: 395 kB / 438.8 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.5563, allocations: 0 / 438.8 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001374/0.5565, allocations: 11.95 kB / 438.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.318e-06/0.5565, allocations: 3.984 kB / 438.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/0.5566, allocations: 4 kB / 438.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.5566, allocations: 0 / 438.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.5566, allocations: 0 / 438.8 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005416/0.5572, allocations: 239.4 kB / 439 MB, free: 10.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.5573, allocations: 84.95 kB / 439.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.5573, allocations: 7.953 kB / 439.1 MB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002665/0.5576, allocations: 11.98 kB / 439.1 MB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.5577, allocations: 11.98 kB / 439.1 MB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.5578, allocations: 0 / 439.1 MB, free: 10.81 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.719e-05/0.5579, allocations: 95.2 kB / 439.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.5579, allocations: 0 / 439.2 MB, free: 10.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005654/0.5585, allocations: 24 kB / 439.2 MB, free: 10.7 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.001054/0.5596, allocations: 0.7636 MB / 440 MB, free: 9.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004071/0.56, allocations: 87.86 kB / 440.1 MB, free: 9.816 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.56, allocations: 0 / 440.1 MB, free: 9.816 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.5602, allocations: 48.25 kB / 440.1 MB, free: 9.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.5606, allocations: 19.38 kB / 440.2 MB, free: 9.754 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008754/0.5615, allocations: 154.2 kB / 440.3 MB, free: 9.562 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.5619, allocations: 0.6924 MB / 441 MB, free: 8.844 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.384e-05/0.562, allocations: 12.88 kB / 441 MB, free: 8.828 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.5621, allocations: 31.42 kB / 441 MB, free: 8.797 MB / 378.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5621, allocations: 4 kB / 441 MB, free: 8.793 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04273/0.6048, allocations: 1.561 MB / 442.6 MB, free: 7.238 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003026/0.6052, allocations: 118.7 kB / 442.7 MB, free: 7.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/3.002, allocations: 0 / 442.7 MB, free: 7.051 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat