Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.09/2.09, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.278e-05/4.289e-05, allocations: 7.984 kB / 273.2 MB, free: 152 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 48.69 MB / 321.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.433/0.5426, allocations: 74.33 MB / 396.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.543, allocations: 63.97 kB / 396.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006391/0.5494, allocations: 1.382 MB / 397.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5494, allocations: 0 / 397.7 MB, free: 13.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.5494, allocations: 0 / 397.7 MB, free: 13.76 MB / 330.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.0007118/0.5502, allocations: 398.3 kB / 398 MB, free: 13.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.5502, allocations: 8.031 kB / 398 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.342e-05/0.5503, allocations: 38.55 kB / 398.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.416e-05/0.5504, allocations: 11.91 kB / 398.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.5505, allocations: 168.9 kB / 398.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.5506, allocations: 4 kB / 398.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.5506, allocations: 8 kB / 398.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002248/0.5508, allocations: 77.66 kB / 398.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5509, allocations: 7.984 kB / 398.4 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.5509, allocations: 0 / 398.4 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.5509, allocations: 7.938 kB / 398.4 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000136/0.5511, allocations: 35.98 kB / 398.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007604/0.5518, allocations: 324.6 kB / 398.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002397/0.5521, allocations: 86.56 kB / 398.8 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.5522, allocations: 36.86 kB / 398.8 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.935e-05/0.5523, allocations: 8.203 kB / 398.8 MB, free: 12.4 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002472/0.5525, allocations: 99.33 kB / 398.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.507e-06/0.5526, allocations: 0 / 398.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004331/0.553, allocations: 141.6 kB / 399.1 MB, free: 12.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.504e-05/0.5531, allocations: 59.36 kB / 399.1 MB, free: 12.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.5532, allocations: 121.4 kB / 399.3 MB, free: 11.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.246e-05/0.5533, allocations: 29.7 kB / 399.3 MB, free: 11.92 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.5534, allocations: 96.03 kB / 399.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.779e-05/0.5534, allocations: 39.53 kB / 399.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.324e-05/0.5534, allocations: 4 kB / 399.4 MB, free: 11.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.5536, allocations: 314.8 kB / 399.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.739e-05/0.5537, allocations: 32.19 kB / 399.8 MB, free: 11.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.5538, allocations: 73.45 kB / 399.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.554, allocations: 36.36 kB / 399.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.554, allocations: 0 / 399.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003581/0.5544, allocations: 145.5 kB / 400 MB, free: 11.15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.5544, allocations: 11.98 kB / 400 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.5544, allocations: 0 / 400 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.5544, allocations: 7.938 kB / 400 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.5547, allocations: 19.98 kB / 400 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.5547, allocations: 3.953 kB / 400.1 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.5548, allocations: 12 kB / 400.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.5548, allocations: 4 kB / 400.1 MB, free: 11.09 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = false protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = false 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.0001943/0.555, allocations: 135.3 kB / 400.2 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.5551, allocations: 7.906 kB / 400.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.5551, allocations: 12.73 kB / 400.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.5552, allocations: 4 kB / 400.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5552, allocations: 0 / 400.2 MB, free: 10.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.5552, allocations: 3.953 kB / 400.2 MB, free: 10.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007403/0.5559, allocations: 434.3 kB / 400.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.556, allocations: 4 kB / 400.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.5561, allocations: 11.98 kB / 400.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.5561, allocations: 4 kB / 400.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.5562, allocations: 4 kB / 400.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.5562, allocations: 3.953 kB / 400.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5562, allocations: 0 / 400.7 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004044/0.5566, allocations: 239.3 kB / 400.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.986e-05/0.5567, allocations: 89 kB / 401 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.5567, allocations: 12 kB / 401 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.5569, allocations: 15.92 kB / 401 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.557, allocations: 7.953 kB / 401 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.554e-05/0.5571, allocations: 11.98 kB / 401 MB, free: 10.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.607e-05/0.5572, allocations: 91.22 kB / 401.1 MB, free: 9.934 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5572, allocations: 0 / 401.1 MB, free: 9.934 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003652/0.5575, allocations: 24 kB / 401.2 MB, free: 9.91 MB / 330.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.0007409/0.5583, allocations: 0.7748 MB / 401.9 MB, free: 9.105 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003115/0.5586, allocations: 87.92 kB / 402 MB, free: 9.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5586, allocations: 0 / 402 MB, free: 9.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.5588, allocations: 48 kB / 402.1 MB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.5591, allocations: 11.95 kB / 402.1 MB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007321/0.5598, allocations: 183.5 kB / 402.3 MB, free: 8.742 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.5602, allocations: 0.6965 MB / 403 MB, free: 8.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.696e-05/0.5602, allocations: 8.891 kB / 403 MB, free: 8.012 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.846e-05/0.5603, allocations: 23.42 kB / 403 MB, free: 7.988 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5603, allocations: 0 / 403 MB, free: 7.988 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.5816, allocations: 1.879 MB / 404.9 MB, free: 6.18 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003423/0.582, allocations: 146.1 kB / 405 MB, free: 5.949 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.455/3.037, allocations: 0 / 405 MB, free: 5.949 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat