Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.732/2.732, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.997e-05/4.007e-05, allocations: 4 kB / 323.5 MB, free: 4.227 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4061/0.4062, allocations: 58.83 MB / 382.3 MB, free: 10.21 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1796/0.5858, allocations: 85.64 MB / 467.9 MB, free: 6.766 MB / 394.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.5861, allocations: 63.97 kB / 468 MB, free: 6.703 MB / 394.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.006452/0.5926, allocations: 1.44 MB / 469.4 MB, free: 5.254 MB / 394.8 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5927, allocations: 0 / 469.4 MB, free: 5.254 MB / 394.8 MB Notification: Performance of Transformations before backend: time 7.784e-06/0.5927, allocations: 0 / 469.4 MB, free: 5.254 MB / 394.8 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.0006974/0.5934, allocations: 378.8 kB / 469.8 MB, free: 4.84 MB / 394.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.5935, allocations: 8.031 kB / 469.8 MB, free: 4.832 MB / 394.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.164e-05/0.5935, allocations: 46.55 kB / 469.9 MB, free: 4.777 MB / 394.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.5936, allocations: 7.906 kB / 469.9 MB, free: 4.77 MB / 394.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.5938, allocations: 171.2 kB / 470 MB, free: 4.562 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.5938, allocations: 8 kB / 470 MB, free: 4.555 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.06e-05/0.5938, allocations: 8 kB / 470 MB, free: 4.547 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.5941, allocations: 77.66 kB / 470.1 MB, free: 4.465 MB / 394.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.5941, allocations: 0 / 470.1 MB, free: 4.465 MB / 394.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.5941, allocations: 3.938 kB / 470.1 MB, free: 4.461 MB / 394.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.5941, allocations: 0 / 470.1 MB, free: 4.461 MB / 394.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001358/0.5943, allocations: 35.98 kB / 470.2 MB, free: 4.426 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007338/0.595, allocations: 344.6 kB / 470.5 MB, free: 4.039 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002405/0.5953, allocations: 86.48 kB / 470.6 MB, free: 3.945 MB / 394.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.5954, allocations: 40.86 kB / 470.6 MB, free: 3.902 MB / 394.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.5955, allocations: 0 / 470.6 MB, free: 3.902 MB / 394.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/0.5957, allocations: 91.38 kB / 470.7 MB, free: 3.801 MB / 394.8 MB Notification: Performance of pre-optimization done (n=14): time 2.174e-06/0.5957, allocations: 0 / 470.7 MB, free: 3.801 MB / 394.8 MB Notification: Performance of matching and sorting (n=14): time 0.0004208/0.5962, allocations: 141.5 kB / 470.8 MB, free: 3.656 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.5962, allocations: 55.41 kB / 470.9 MB, free: 3.59 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.5964, allocations: 113.1 kB / 471 MB, free: 3.469 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.5964, allocations: 33.7 kB / 471 MB, free: 3.43 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.277e-05/0.5965, allocations: 88.41 kB / 471.1 MB, free: 3.336 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.5965, allocations: 39.55 kB / 471.2 MB, free: 3.297 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.849e-06/0.5966, allocations: 4 kB / 471.2 MB, free: 3.293 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5967, allocations: 318.8 kB / 471.5 MB, free: 2.973 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-05/0.5968, allocations: 32.38 kB / 471.5 MB, free: 2.941 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.597, allocations: 69.7 kB / 471.6 MB, free: 2.855 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001243/0.5971, allocations: 39.98 kB / 471.6 MB, free: 2.816 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5971, allocations: 0 / 471.6 MB, free: 2.816 MB / 394.8 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003432/0.5975, allocations: 145.5 kB / 471.8 MB, free: 2.668 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.5975, allocations: 8.625 kB / 471.8 MB, free: 2.66 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.5975, allocations: 0 / 471.8 MB, free: 2.66 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.5975, allocations: 4.156 kB / 471.8 MB, free: 2.656 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.5977, allocations: 27.92 kB / 471.8 MB, free: 2.629 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.5978, allocations: 3.953 kB / 471.8 MB, free: 2.625 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.5979, allocations: 11.98 kB / 471.8 MB, free: 2.613 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.5979, allocations: 8 kB / 471.8 MB, free: 2.605 MB / 394.8 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.0001193/0.598, allocations: 123.2 kB / 471.9 MB, free: 2.477 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.5981, allocations: 12.28 kB / 472 MB, free: 2.465 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.5981, allocations: 8.75 kB / 472 MB, free: 2.457 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.5982, allocations: 7.984 kB / 472 MB, free: 2.449 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5982, allocations: 0 / 472 MB, free: 2.449 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.5982, allocations: 11.89 kB / 472 MB, free: 2.438 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006958/0.5989, allocations: 426.6 kB / 472.4 MB, free: 1.965 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5989, allocations: 0 / 472.4 MB, free: 1.965 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.93e-05/0.599, allocations: 15.92 kB / 472.4 MB, free: 1.949 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.5991, allocations: 0 / 472.4 MB, free: 1.949 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.918e-05/0.5991, allocations: 4 kB / 472.4 MB, free: 1.945 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.5991, allocations: 7.953 kB / 472.4 MB, free: 1.938 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5991, allocations: 4 kB / 472.4 MB, free: 1.934 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003916/0.5995, allocations: 235.4 kB / 472.7 MB, free: 1.688 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.337e-05/0.5996, allocations: 88.95 kB / 472.8 MB, free: 1.582 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.5996, allocations: 3.984 kB / 472.8 MB, free: 1.578 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.5998, allocations: 12 kB / 472.8 MB, free: 1.566 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.5999, allocations: 11.94 kB / 472.8 MB, free: 1.555 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.528e-05/0.5999, allocations: 11.98 kB / 472.8 MB, free: 1.543 MB / 394.8 MB Notification: Performance of sorting global known variables: time 6.857e-05/0.6, allocations: 87.28 kB / 472.9 MB, free: 1.457 MB / 394.8 MB Notification: Performance of sort global known variables: time 4.5e-07/0.6, allocations: 0 / 472.9 MB, free: 1.457 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.0003526/0.6004, allocations: 24 kB / 472.9 MB, free: 1.434 MB / 394.8 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.0007153/0.6011, allocations: 0.7747 MB / 473.7 MB, free: 0.6289 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.6014, allocations: 95.94 kB / 473.8 MB, free: 0.5352 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.6014, allocations: 0 / 473.8 MB, free: 0.5352 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001442/0.6016, allocations: 55.91 kB / 473.8 MB, free: 492 kB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.6019, allocations: 7.953 kB / 473.8 MB, free: 484 kB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006629/0.6026, allocations: 164.8 kB / 474 MB, free: 284 kB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.6029, allocations: 0.6929 MB / 474.7 MB, free: 15.56 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 6.805e-05/0.603, allocations: 16.88 kB / 474.7 MB, free: 15.54 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.496e-05/0.6031, allocations: 27.7 kB / 474.7 MB, free: 15.52 MB / 410.8 MB Notification: Performance of SimCode: time 1.012e-06/0.6031, allocations: 0 / 474.7 MB, free: 15.52 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.6269, allocations: 1.879 MB / 476.6 MB, free: 13.72 MB / 410.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003047/0.6273, allocations: 138.3 kB / 476.7 MB, free: 13.5 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/3.088, allocations: 0 / 476.7 MB, free: 13.5 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat