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.064/2.064, allocations: 209.3 MB / 221.5 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.238e-05/4.247e-05, allocations: 3.984 kB / 273.1 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1097, allocations: 48.71 MB / 321.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4585/0.5683, allocations: 74.33 MB / 396.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002538/0.5686, allocations: 67.89 kB / 396.2 MB, free: 15.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006194/0.5748, allocations: 1.382 MB / 397.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5749, allocations: 0 / 397.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.5749, allocations: 4 kB / 397.6 MB, free: 13.86 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.0007187/0.5756, allocations: 386.2 kB / 398 MB, free: 13.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.5757, allocations: 8.031 kB / 398 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.131e-05/0.5758, allocations: 42.56 kB / 398.1 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.5758, allocations: 11.89 kB / 398.1 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.5761, allocations: 172.6 kB / 398.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.5761, allocations: 4 kB / 398.2 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.5761, allocations: 8 kB / 398.2 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.5764, allocations: 73.66 kB / 398.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.5764, allocations: 0 / 398.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.5764, allocations: 8 kB / 398.3 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.5764, allocations: 0 / 398.3 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.5766, allocations: 32 kB / 398.4 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007467/0.5773, allocations: 340.5 kB / 398.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.5776, allocations: 86.5 kB / 398.8 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.5777, allocations: 40.8 kB / 398.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.5778, allocations: 0 / 398.8 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.578, allocations: 103.4 kB / 398.9 MB, free: 12.4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.415e-06/0.578, allocations: 0 / 398.9 MB, free: 12.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004426/0.5785, allocations: 141.6 kB / 399.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.5786, allocations: 59.36 kB / 399.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001141/0.5787, allocations: 113.4 kB / 399.2 MB, free: 12.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.5787, allocations: 33.7 kB / 399.3 MB, free: 12.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.666e-05/0.5788, allocations: 96.03 kB / 399.4 MB, free: 11.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.297e-05/0.5789, allocations: 39.55 kB / 399.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.107e-06/0.5789, allocations: 0 / 399.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.579, allocations: 322.8 kB / 399.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.348e-05/0.5791, allocations: 28.19 kB / 399.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.5793, allocations: 72.52 kB / 399.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.5794, allocations: 44.3 kB / 399.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5794, allocations: 0 / 399.8 MB, free: 11.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003527/0.5798, allocations: 145.6 kB / 400 MB, free: 11.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.5798, allocations: 8 kB / 400 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.5799, allocations: 0 / 400 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.5799, allocations: 4 kB / 400 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.5801, allocations: 32.08 kB / 400 MB, free: 11.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.5802, allocations: 11.94 kB / 400 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.5803, allocations: 7.984 kB / 400.1 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.5803, allocations: 8 kB / 400.1 MB, free: 11.19 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.0001764/0.5805, allocations: 123.2 kB / 400.2 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/0.5805, allocations: 7.906 kB / 400.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.274e-05/0.5806, allocations: 12.69 kB / 400.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.5806, allocations: 11.98 kB / 400.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5806, allocations: 0 / 400.2 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.5806, allocations: 3.953 kB / 400.2 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007292/0.5814, allocations: 426.4 kB / 400.6 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.5814, allocations: 0 / 400.6 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.5815, allocations: 15.92 kB / 400.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.5816, allocations: 4 kB / 400.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.5816, allocations: 3.953 kB / 400.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.5816, allocations: 0 / 400.7 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5816, allocations: 4 kB / 400.7 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004007/0.582, allocations: 239.4 kB / 400.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.196e-05/0.5821, allocations: 96.94 kB / 401 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.5822, allocations: 7.922 kB / 401 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001697/0.5824, allocations: 15.95 kB / 401 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.5824, allocations: 7.984 kB / 401 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.5825, allocations: 11.98 kB / 401 MB, free: 10.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.041e-05/0.5826, allocations: 87.28 kB / 401.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5826, allocations: 0 / 401.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003363/0.5829, allocations: 24 kB / 401.1 MB, free: 10.02 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.000736/0.5837, allocations: 0.7709 MB / 401.9 MB, free: 9.215 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003271/0.584, allocations: 99.88 kB / 402 MB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.584, allocations: 0 / 402 MB, free: 9.117 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.5842, allocations: 48.47 kB / 402.1 MB, free: 9.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.5845, allocations: 15.95 kB / 402.1 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006843/0.5852, allocations: 167.5 kB / 402.2 MB, free: 8.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.5855, allocations: 0.7047 MB / 402.9 MB, free: 8.121 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.624e-05/0.5856, allocations: 8.828 kB / 402.9 MB, free: 8.113 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.422e-05/0.5857, allocations: 31.42 kB / 403 MB, free: 8.082 MB / 330.7 MB Notification: Performance of SimCode: time 1.593e-06/0.5857, allocations: 0 / 403 MB, free: 8.082 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.6077, allocations: 1.89 MB / 404.9 MB, free: 6.258 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003026/0.6081, allocations: 139.5 kB / 405 MB, free: 6.035 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/2.972, allocations: 0 / 405 MB, free: 6.035 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