Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.3/2.3, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.518e-05/3.523e-05, allocations: 7.938 kB / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 61.89 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.582/0.7204, allocations: 86.67 MB / 497 MB, free: 1.344 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.7208, allocations: 64.78 kB / 497.1 MB, free: 1.281 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009241/0.7301, allocations: 1.477 MB / 498.6 MB, free: 15.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.7301, allocations: 0 / 498.6 MB, free: 15.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.7301, allocations: 0 / 498.6 MB, free: 15.8 MB / 410.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.0008619/0.731, allocations: 386.1 kB / 498.9 MB, free: 15.38 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.7311, allocations: 8.031 kB / 498.9 MB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.812e-05/0.7312, allocations: 38.56 kB / 499 MB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.528e-05/0.7312, allocations: 7.906 kB / 499 MB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.7315, allocations: 171 kB / 499.2 MB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.7315, allocations: 19.95 kB / 499.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.7316, allocations: 8 kB / 499.2 MB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002935/0.7319, allocations: 81.78 kB / 499.3 MB, free: 15 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.7319, allocations: 0 / 499.3 MB, free: 15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.7319, allocations: 0 / 499.3 MB, free: 15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.732, allocations: 0 / 499.3 MB, free: 15 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.7322, allocations: 32 kB / 499.3 MB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009563/0.7331, allocations: 339.4 kB / 499.6 MB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.7335, allocations: 82.56 kB / 499.7 MB, free: 14.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.7336, allocations: 40.8 kB / 499.7 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.547e-05/0.7337, allocations: 3.984 kB / 499.8 MB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.734, allocations: 91.38 kB / 499.8 MB, free: 14.35 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.865e-06/0.734, allocations: 7.938 kB / 499.9 MB, free: 14.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005625/0.7346, allocations: 141.7 kB / 500 MB, free: 14.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.398e-05/0.7347, allocations: 55.41 kB / 0.4883 GB, free: 14.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.7348, allocations: 109.2 kB / 0.4884 GB, free: 14.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.48e-05/0.7349, allocations: 29.7 kB / 0.4885 GB, free: 13.98 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.855e-05/0.735, allocations: 88.42 kB / 0.4885 GB, free: 13.89 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.018e-05/0.7351, allocations: 39.53 kB / 0.4886 GB, free: 13.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/0.7351, allocations: 4 kB / 0.4886 GB, free: 13.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.7353, allocations: 326.7 kB / 0.4889 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.7354, allocations: 36.38 kB / 0.4889 GB, free: 13.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.7357, allocations: 76.7 kB / 0.489 GB, free: 13.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.7359, allocations: 44.14 kB / 0.489 GB, free: 13.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.7359, allocations: 0 / 0.489 GB, free: 13.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004944/0.7364, allocations: 137.5 kB / 0.4892 GB, free: 13.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.7364, allocations: 8 kB / 0.4892 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.7364, allocations: 0 / 0.4892 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.215e-05/0.7365, allocations: 4 kB / 0.4892 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.7368, allocations: 23.98 kB / 0.4892 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.388e-05/0.7368, allocations: 3.938 kB / 0.4892 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.737, allocations: 12.06 kB / 0.4892 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.737, allocations: 12 kB / 0.4892 GB, free: 13.14 MB / 410.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.0001541/0.7372, allocations: 119.2 kB / 0.4893 GB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.7372, allocations: 11.91 kB / 0.4894 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.7373, allocations: 8.75 kB / 0.4894 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.7373, allocations: 0 / 0.4894 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.7373, allocations: 0 / 0.4894 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.7374, allocations: 4 kB / 0.4894 GB, free: 13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009831/0.7384, allocations: 442.2 kB / 0.4898 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.7384, allocations: 0 / 0.4898 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.7385, allocations: 12 kB / 0.4898 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.7385, allocations: 384 / 0.4898 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.7386, allocations: 3.984 kB / 0.4898 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.7386, allocations: 4 kB / 0.4898 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.7386, allocations: 3.938 kB / 0.4898 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.7392, allocations: 247.3 kB / 0.4901 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.7393, allocations: 81.11 kB / 0.4901 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.7393, allocations: 0 / 0.4901 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.7396, allocations: 15.98 kB / 0.4901 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.247e-05/0.7397, allocations: 7.984 kB / 0.4902 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.7397, allocations: 4 kB / 0.4902 GB, free: 12.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.651e-05/0.7398, allocations: 91.27 kB / 0.4902 GB, free: 12.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7398, allocations: 0 / 0.4902 GB, free: 12.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006224/0.7405, allocations: 31.91 kB / 0.4903 GB, free: 11.98 MB / 410.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.001012/0.7415, allocations: 0.7787 MB / 0.491 GB, free: 11.17 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004037/0.7419, allocations: 88.44 kB / 0.4911 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.742, allocations: 0 / 0.4911 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001878/0.7422, allocations: 48.25 kB / 0.4912 GB, free: 11.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.7426, allocations: 11.98 kB / 0.4912 GB, free: 11.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009507/0.7435, allocations: 167.5 kB / 0.4913 GB, free: 10.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/0.744, allocations: 0.6965 MB / 0.492 GB, free: 10.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.228e-05/0.7441, allocations: 12.88 kB / 0.492 GB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.907e-05/0.7442, allocations: 19.44 kB / 0.492 GB, free: 10.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.112e-06/0.7442, allocations: 4 kB / 0.4921 GB, free: 10.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.764, allocations: 1.865 MB / 0.4939 GB, free: 8.289 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003289/0.7644, allocations: 147.1 kB / 0.494 GB, free: 8.059 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/3.084, allocations: 4 kB / 0.494 GB, free: 8.055 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat