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.126/2.126, allocations: 209.4 MB / 216.5 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.576e-05/2.586e-05, allocations: 4 kB / 267.6 MB, free: 4.953 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1031, allocations: 48.7 MB / 316.3 MB, free: 4.156 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.471/0.5742, allocations: 73.89 MB / 390.2 MB, free: 2.527 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.5745, allocations: 58.72 kB / 390.3 MB, free: 2.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006002/0.5805, allocations: 1.378 MB / 391.7 MB, free: 1.297 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5806, allocations: 0 / 391.7 MB, free: 1.297 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.5806, allocations: 3.938 kB / 391.7 MB, free: 1.297 MB / 314.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.000661/0.5813, allocations: 382 kB / 392 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.5813, allocations: 12.03 kB / 392 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/0.5814, allocations: 11.89 kB / 392.1 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.5816, allocations: 171.2 kB / 392.2 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.5816, allocations: 4 kB / 392.2 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.5816, allocations: 7.562 kB / 392.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001348/0.5818, allocations: 33.55 kB / 392.3 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.582, allocations: 75.34 kB / 392.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.582, allocations: 0 / 392.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.582, allocations: 0 / 392.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.582, allocations: 8.922 kB / 392.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006826/0.5827, allocations: 307.5 kB / 392.6 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.5829, allocations: 81.95 kB / 392.7 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.094e-05/0.5831, allocations: 31.3 kB / 392.8 MB, free: 144 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.5831, allocations: 7.516 kB / 392.8 MB, free: 140 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.5833, allocations: 86.64 kB / 392.8 MB, free: 56 kB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.334e-06/0.5833, allocations: 0 / 392.8 MB, free: 56 kB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003986/0.5837, allocations: 131.6 kB / 393 MB, free: 15.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.5838, allocations: 62.22 kB / 393 MB, free: 15.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.5839, allocations: 115.4 kB / 393.1 MB, free: 15.76 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.584, allocations: 33.08 kB / 393.2 MB, free: 15.72 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/0.584, allocations: 87.23 kB / 393.3 MB, free: 15.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.368e-05/0.5841, allocations: 34.67 kB / 393.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.626e-06/0.5841, allocations: 4 kB / 393.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5843, allocations: 321.8 kB / 393.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.721e-05/0.5844, allocations: 24.69 kB / 393.6 MB, free: 15.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.5845, allocations: 72.02 kB / 393.7 MB, free: 15.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001098/0.5846, allocations: 32.05 kB / 393.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5846, allocations: 0 / 393.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003132/0.585, allocations: 135.6 kB / 393.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.585, allocations: 10.34 kB / 393.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.585, allocations: 0 / 393.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.585, allocations: 4 kB / 393.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001909/0.5852, allocations: 28.67 kB / 393.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.5853, allocations: 0 / 393.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.379e-05/0.5854, allocations: 4 kB / 393.9 MB, free: 15.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.5854, allocations: 8 kB / 393.9 MB, free: 15 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.00017/0.5856, allocations: 134.9 kB / 394.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003049/0.5859, allocations: 136.5 kB / 394.2 MB, free: 14.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.5859, allocations: 11.89 kB / 394.2 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/0.586, allocations: 8.562 kB / 394.2 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.423e-06/0.586, allocations: 4 kB / 394.2 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.586, allocations: 0 / 394.2 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.586, allocations: 3.953 kB / 394.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006315/0.5867, allocations: 400.5 kB / 394.6 MB, free: 14.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.5867, allocations: 8 kB / 394.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.853e-05/0.5868, allocations: 4 kB / 394.6 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.5868, allocations: 4 kB / 394.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.5868, allocations: 7.922 kB / 394.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.5869, allocations: 3.953 kB / 394.6 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5869, allocations: 0 / 394.6 MB, free: 14.31 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.5872, allocations: 229.9 kB / 394.9 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.331e-05/0.5873, allocations: 92.94 kB / 395 MB, free: 13.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.675e-05/0.5874, allocations: 8 kB / 395 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.5876, allocations: 7.984 kB / 395 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.5876, allocations: 19.81 kB / 395 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.5877, allocations: 4 kB / 395 MB, free: 13.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.486e-05/0.5877, allocations: 91.03 kB / 395.1 MB, free: 13.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5878, allocations: 0 / 395.1 MB, free: 13.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003909/0.5882, allocations: 23.98 kB / 395.1 MB, free: 13.85 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.0006746/0.5888, allocations: 0.7625 MB / 395.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002496/0.5891, allocations: 87.05 kB / 396 MB, free: 13.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5891, allocations: 0 / 396 MB, free: 13.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.5892, allocations: 43.3 kB / 396 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002702/0.5895, allocations: 8.266 kB / 396 MB, free: 12.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006582/0.5902, allocations: 169.7 kB / 396.2 MB, free: 12.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003516/0.5906, allocations: 0.6963 MB / 396.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.677e-05/0.5906, allocations: 8.891 kB / 396.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-05/0.5907, allocations: 27.05 kB / 396.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of SimCode: time 7.22e-07/0.5907, allocations: 0 / 396.9 MB, free: 12.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.6282, allocations: 1.577 MB / 398.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003053/0.6286, allocations: 126.6 kB / 398.6 MB, free: 10.29 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.834, allocations: 0 / 398.6 MB, free: 10.29 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