Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.987/1.987, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.848e-05/3.854e-05, allocations: 8 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1052, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4191/0.5244, allocations: 74.34 MB / 396.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.5246, allocations: 66.45 kB / 396.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006053/0.5307, allocations: 1.376 MB / 397.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5307, allocations: 0 / 397.6 MB, free: 14.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.5308, allocations: 4 kB / 397.6 MB, free: 14.07 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.0006571/0.5314, allocations: 390.1 kB / 398 MB, free: 13.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.5315, allocations: 8.031 kB / 398 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.684e-05/0.5316, allocations: 42.55 kB / 398 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.5316, allocations: 7.906 kB / 398 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001549/0.5318, allocations: 171.2 kB / 398.2 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.5318, allocations: 8 kB / 398.2 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.5319, allocations: 8 kB / 398.2 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002185/0.5321, allocations: 77.66 kB / 398.3 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.5321, allocations: 4 kB / 398.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.5322, allocations: 4 kB / 398.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.5322, allocations: 0 / 398.3 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.5323, allocations: 35.98 kB / 398.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007527/0.5331, allocations: 332.6 kB / 398.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002339/0.5333, allocations: 86.56 kB / 398.8 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.5335, allocations: 36.86 kB / 398.8 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.5335, allocations: 5.953 kB / 398.8 MB, free: 12.72 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.5337, allocations: 95.5 kB / 398.9 MB, free: 12.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/0.5338, allocations: 0 / 398.9 MB, free: 12.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004192/0.5342, allocations: 141.5 kB / 399 MB, free: 12.47 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.611e-05/0.5343, allocations: 63.36 kB / 399.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.5344, allocations: 113.7 kB / 399.2 MB, free: 12.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.5344, allocations: 33.7 kB / 399.2 MB, free: 12.24 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.363e-05/0.5345, allocations: 158.5 kB / 399.4 MB, free: 12.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.987e-05/0.5346, allocations: 39.55 kB / 399.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/0.5346, allocations: 3.938 kB / 399.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.5348, allocations: 322.8 kB / 399.7 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.888e-05/0.5349, allocations: 24.19 kB / 399.8 MB, free: 11.69 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.535, allocations: 81.88 kB / 399.9 MB, free: 11.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.5352, allocations: 39.97 kB / 399.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.5352, allocations: 0 / 399.9 MB, free: 11.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003441/0.5355, allocations: 145.7 kB / 400 MB, free: 11.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5356, allocations: 4 kB / 400 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.5356, allocations: 0 / 400 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.5356, allocations: 4 kB / 400 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.5358, allocations: 19.98 kB / 400.1 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.5358, allocations: 11.89 kB / 400.1 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.5359, allocations: 11.91 kB / 400.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.536, allocations: 4 kB / 400.1 MB, free: 11.36 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.0001699/0.5362, allocations: 131.3 kB / 400.2 MB, free: 11.22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.5362, allocations: 7.906 kB / 400.2 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.5363, allocations: 12.75 kB / 400.2 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.5363, allocations: 0 / 400.2 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5363, allocations: 0 / 400.2 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.5363, allocations: 3.953 kB / 400.2 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007153/0.537, allocations: 438.3 kB / 400.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.537, allocations: 0 / 400.7 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.419e-05/0.5371, allocations: 12 kB / 400.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.5372, allocations: 0 / 400.7 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.459e-05/0.5372, allocations: 11.94 kB / 400.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.5372, allocations: 7.938 kB / 400.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.5372, allocations: 3.984 kB / 400.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003878/0.5376, allocations: 243.4 kB / 400.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.5377, allocations: 93 kB / 401 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.5378, allocations: 0 / 401 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.538, allocations: 19.94 kB / 401 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.538, allocations: 11.98 kB / 401.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.538, allocations: 4 kB / 401.1 MB, free: 10.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.136e-05/0.5381, allocations: 95.27 kB / 401.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5381, allocations: 0 / 401.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003253/0.5385, allocations: 20 kB / 401.2 MB, free: 10.17 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.0006972/0.5392, allocations: 0.7748 MB / 402 MB, free: 9.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002987/0.5395, allocations: 95.92 kB / 402 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5395, allocations: 0 / 402 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.5397, allocations: 47.94 kB / 402.1 MB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.5399, allocations: 16.25 kB / 402.1 MB, free: 9.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000676/0.5406, allocations: 197.8 kB / 402.3 MB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.541, allocations: 0.6926 MB / 403 MB, free: 8.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-05/0.5411, allocations: 35.36 kB / 403 MB, free: 8.219 MB / 330.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5411, allocations: 0 / 403 MB, free: 8.219 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.232/2.773, allocations: 1.535 MB / 404.6 MB, free: 6.688 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat