Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.19/2.19, allocations: 235 MB / 247.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.598e-05, allocations: 4.938 kB / 305 MB, free: 5.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3797, allocations: 54.85 MB / 359.9 MB, free: 3.168 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1452/0.5249, allocations: 80.7 MB / 440.5 MB, free: 220 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000227/0.5252, allocations: 65.16 kB / 440.6 MB, free: 156 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006079/0.5313, allocations: 1.383 MB / 442 MB, free: 14.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5314, allocations: 3.938 kB / 442 MB, free: 14.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.625e-06/0.5314, allocations: 11.61 kB / 442 MB, free: 14.77 MB / 378.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.0006586/0.532, allocations: 382.2 kB / 442.4 MB, free: 14.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.5321, allocations: 8.031 kB / 442.4 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.332e-05/0.5322, allocations: 38.56 kB / 442.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.5322, allocations: 7.906 kB / 442.4 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.5324, allocations: 171.1 kB / 442.6 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.5324, allocations: 8 kB / 442.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.5325, allocations: 4 kB / 442.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002198/0.5327, allocations: 85.59 kB / 442.7 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.5327, allocations: 0 / 442.7 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.5327, allocations: 7.938 kB / 442.7 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.5328, allocations: 0 / 442.7 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001283/0.5329, allocations: 33.56 kB / 442.7 MB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006977/0.5336, allocations: 336.7 kB / 443.1 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.5339, allocations: 82.5 kB / 443.1 MB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.534, allocations: 40.86 kB / 443.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.534, allocations: 3.953 kB / 443.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.5342, allocations: 99.5 kB / 443.3 MB, free: 13.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/0.5343, allocations: 0 / 443.3 MB, free: 13.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004105/0.5347, allocations: 133.6 kB / 443.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.5347, allocations: 56.44 kB / 443.5 MB, free: 13.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.5349, allocations: 114 kB / 443.6 MB, free: 12.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.5349, allocations: 33.7 kB / 443.6 MB, free: 12.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.535, allocations: 84.42 kB / 443.7 MB, free: 12.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.044e-05/0.535, allocations: 42.77 kB / 443.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.447e-06/0.535, allocations: 0 / 443.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5352, allocations: 330.8 kB / 444.1 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.014e-05/0.5353, allocations: 24.38 kB / 444.1 MB, free: 12.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.5354, allocations: 66.75 kB / 444.2 MB, free: 12.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001236/0.5356, allocations: 49.94 kB / 444.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.5356, allocations: 0 / 444.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003329/0.5359, allocations: 149.5 kB / 444.4 MB, free: 12.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.536, allocations: 7.953 kB / 444.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.536, allocations: 6.188 kB / 444.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.536, allocations: 0 / 444.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.5362, allocations: 24.08 kB / 444.4 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.5362, allocations: 8 kB / 444.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.5363, allocations: 12.78 kB / 444.4 MB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.5364, allocations: 8 kB / 444.4 MB, free: 12.12 MB / 378.7 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.0001052/0.5365, allocations: 119.2 kB / 444.5 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.5365, allocations: 7.906 kB / 444.5 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.458e-05/0.5366, allocations: 16.7 kB / 444.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.5366, allocations: 0 / 444.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5366, allocations: 0 / 444.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.5366, allocations: 4 kB / 444.6 MB, free: 11.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006828/0.5373, allocations: 442.3 kB / 445 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5373, allocations: 1.031 kB / 445 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.141e-05/0.5374, allocations: 8 kB / 445 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.5375, allocations: 0 / 445 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.5375, allocations: 3.984 kB / 445 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.5375, allocations: 4 kB / 445 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5375, allocations: 1.062 kB / 445 MB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004141/0.5379, allocations: 243.8 kB / 445.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.066e-05/0.538, allocations: 88.91 kB / 445.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.538, allocations: 8 kB / 445.3 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.5382, allocations: 11.98 kB / 445.4 MB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.103e-05/0.5383, allocations: 11.98 kB / 445.4 MB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.5383, allocations: 5.406 kB / 445.4 MB, free: 11.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.548e-05/0.5384, allocations: 95.27 kB / 445.5 MB, free: 10.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5384, allocations: 0 / 445.5 MB, free: 10.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003136/0.5387, allocations: 20 kB / 445.5 MB, free: 10.96 MB / 378.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.000665/0.5394, allocations: 0.7804 MB / 446.3 MB, free: 10.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002807/0.5397, allocations: 100 kB / 446.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5397, allocations: 4.125 kB / 446.4 MB, free: 10.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.5399, allocations: 44.69 kB / 446.4 MB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.5401, allocations: 17.25 kB / 446.4 MB, free: 9.992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.5407, allocations: 160.6 kB / 446.6 MB, free: 9.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.541, allocations: 0.7004 MB / 447.3 MB, free: 9.074 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.366e-05/0.5411, allocations: 12.88 kB / 447.3 MB, free: 9.059 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.903e-05/0.5412, allocations: 27.44 kB / 447.3 MB, free: 9.031 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5412, allocations: 0 / 447.3 MB, free: 9.031 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.5613, allocations: 1.886 MB / 449.2 MB, free: 7.242 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003313/0.5617, allocations: 139.6 kB / 449.3 MB, free: 7.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.329/2.891, allocations: 0 / 449.3 MB, free: 7.02 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat