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.841/1.841, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.638e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3837/0.4954, allocations: 74.34 MB / 396.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.4957, allocations: 66.78 kB / 396.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005875/0.5016, allocations: 1.38 MB / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5016, allocations: 0 / 397.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.5017, allocations: 0 / 397.6 MB, free: 14.16 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.0006489/0.5023, allocations: 394.2 kB / 398 MB, free: 13.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.5024, allocations: 8.031 kB / 398 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.159e-05/0.5024, allocations: 30.56 kB / 398.1 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.5025, allocations: 11.91 kB / 398.1 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.5027, allocations: 184.8 kB / 398.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.5027, allocations: 4 kB / 398.3 MB, free: 13.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.5027, allocations: 8.188 kB / 398.3 MB, free: 13.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.5029, allocations: 77.59 kB / 398.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.503, allocations: 0 / 398.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.503, allocations: 4 kB / 398.3 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.503, allocations: 8 kB / 398.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.5031, allocations: 28 kB / 398.4 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.5038, allocations: 328.6 kB / 398.7 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.5041, allocations: 86.5 kB / 398.8 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.5042, allocations: 41.08 kB / 398.8 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.5042, allocations: 7.938 kB / 398.8 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.5045, allocations: 91.5 kB / 398.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.154e-06/0.5045, allocations: 0 / 398.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004003/0.5049, allocations: 141.5 kB / 399.1 MB, free: 12.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.505, allocations: 67.34 kB / 399.1 MB, free: 12.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.5051, allocations: 112.8 kB / 399.2 MB, free: 12.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.5051, allocations: 33.7 kB / 399.3 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.5052, allocations: 162.5 kB / 399.4 MB, free: 12.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.585e-05/0.5053, allocations: 35.55 kB / 399.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.446e-05/0.5053, allocations: 4 kB / 399.5 MB, free: 12.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.5055, allocations: 318.8 kB / 399.8 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.5056, allocations: 32.17 kB / 399.8 MB, free: 11.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.5058, allocations: 69.53 kB / 399.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.5059, allocations: 32.97 kB / 399.9 MB, free: 11.65 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5059, allocations: 0 / 399.9 MB, free: 11.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003462/0.5063, allocations: 149.6 kB / 400.1 MB, free: 11.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.5063, allocations: 8 kB / 400.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.5063, allocations: 0 / 400.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.5064, allocations: 4 kB / 400.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.5065, allocations: 19.98 kB / 400.1 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.993e-05/0.5066, allocations: 15.89 kB / 400.1 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.5067, allocations: 11.91 kB / 400.1 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.5067, allocations: 4 kB / 400.1 MB, free: 11.43 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.0001469/0.5069, allocations: 123.2 kB / 400.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.5069, allocations: 7.906 kB / 400.2 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.507, allocations: 20.72 kB / 400.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.507, allocations: 0 / 400.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.507, allocations: 0 / 400.3 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.507, allocations: 3.953 kB / 400.3 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006808/0.5077, allocations: 434.3 kB / 400.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.5077, allocations: 0 / 400.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.116e-05/0.5078, allocations: 11.98 kB / 400.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.5078, allocations: 4 kB / 400.7 MB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.5079, allocations: 4 kB / 400.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.5079, allocations: 3.953 kB / 400.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.5079, allocations: 3.938 kB / 400.7 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003816/0.5083, allocations: 239.4 kB / 401 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.885e-05/0.5084, allocations: 89 kB / 401 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.5084, allocations: 4 kB / 401 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.5086, allocations: 15.98 kB / 401.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.5087, allocations: 15.94 kB / 401.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.5087, allocations: 7.938 kB / 401.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.726e-05/0.5088, allocations: 91.22 kB / 401.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5088, allocations: 0 / 401.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003358/0.5091, allocations: 24 kB / 401.2 MB, free: 10.26 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.0006928/0.5098, allocations: 0.7787 MB / 402 MB, free: 9.453 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002639/0.5101, allocations: 87.92 kB / 402.1 MB, free: 9.367 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5101, allocations: 0 / 402.1 MB, free: 9.367 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.5103, allocations: 47.94 kB / 402.1 MB, free: 9.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.5105, allocations: 11.95 kB / 402.1 MB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006646/0.5112, allocations: 201.3 kB / 402.3 MB, free: 9.066 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.5115, allocations: 0.7004 MB / 403 MB, free: 8.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.799e-05/0.5116, allocations: 23.42 kB / 403 MB, free: 8.316 MB / 330.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5116, allocations: 0 / 403 MB, free: 8.316 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.24/2.752, allocations: 1.538 MB / 404.6 MB, free: 6.781 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