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.449/2.449, allocations: 235 MB / 247.2 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.92e-05/3.935e-05, allocations: 7.984 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4603/0.4603, allocations: 54.85 MB / 359.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.6149, allocations: 80.71 MB / 440.6 MB, free: 104 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.6152, allocations: 59.97 kB / 440.7 MB, free: 44 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00606/0.6213, allocations: 1.385 MB / 442 MB, free: 14.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6213, allocations: 4 kB / 442 MB, free: 14.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.6213, allocations: 0 / 442 MB, free: 14.66 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.0006975/0.622, allocations: 385.8 kB / 442.4 MB, free: 14.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.6221, allocations: 12.03 kB / 442.4 MB, free: 14.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.933e-05/0.6222, allocations: 36.12 kB / 442.5 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.606e-05/0.6222, allocations: 11.91 kB / 442.5 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.6224, allocations: 167.1 kB / 442.6 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.6224, allocations: 8 kB / 442.7 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.6225, allocations: 8.188 kB / 442.7 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002248/0.6227, allocations: 81.59 kB / 442.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.6227, allocations: 0 / 442.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.6227, allocations: 3.953 kB / 442.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.6228, allocations: 0 / 442.7 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.6229, allocations: 32 kB / 442.8 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.6236, allocations: 336.7 kB / 443.1 MB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002346/0.6239, allocations: 86.5 kB / 443.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.624, allocations: 36.86 kB / 443.2 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.624, allocations: 6.578 kB / 443.2 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.6243, allocations: 91.38 kB / 443.3 MB, free: 13.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.504e-06/0.6243, allocations: 0 / 443.3 MB, free: 13.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004227/0.6247, allocations: 141.7 kB / 443.5 MB, free: 13.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.6248, allocations: 55.41 kB / 443.5 MB, free: 13.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.6249, allocations: 109.2 kB / 443.6 MB, free: 12.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.126e-05/0.625, allocations: 33.7 kB / 443.7 MB, free: 12.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.15e-05/0.6251, allocations: 88.36 kB / 443.7 MB, free: 12.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.183e-05/0.6251, allocations: 39.59 kB / 443.8 MB, free: 12.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-06/0.6252, allocations: 7.281 kB / 443.8 MB, free: 12.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.6253, allocations: 322.8 kB / 444.1 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.424e-05/0.6254, allocations: 28.38 kB / 444.1 MB, free: 12.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.6256, allocations: 65.72 kB / 444.2 MB, free: 12.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.6257, allocations: 43.97 kB / 444.2 MB, free: 12.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.6258, allocations: 0 / 444.2 MB, free: 12.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003457/0.6261, allocations: 142.5 kB / 444.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.6262, allocations: 14.7 kB / 444.4 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.6262, allocations: 4.438 kB / 444.4 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.6262, allocations: 4 kB / 444.4 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.6264, allocations: 32.08 kB / 444.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.6264, allocations: 0 / 444.4 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.6265, allocations: 12.44 kB / 444.4 MB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.6266, allocations: 8 kB / 444.4 MB, free: 12.03 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.0001216/0.6267, allocations: 123.2 kB / 444.6 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.6268, allocations: 7.906 kB / 444.6 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.487e-05/0.6268, allocations: 12.7 kB / 444.6 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.6268, allocations: 0 / 444.6 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.6268, allocations: 15.53 kB / 444.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.6269, allocations: 0 / 444.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007123/0.6276, allocations: 426.4 kB / 445 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.6276, allocations: 0 / 445 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.559e-05/0.6277, allocations: 12 kB / 445 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.6277, allocations: 0 / 445 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.178e-05/0.6278, allocations: 11.92 kB / 445 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.6278, allocations: 1.031 kB / 445 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6278, allocations: 0 / 445 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/0.6282, allocations: 235.4 kB / 445.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.995e-05/0.6283, allocations: 92.91 kB / 445.4 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.6283, allocations: 0 / 445.4 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.6285, allocations: 15.98 kB / 445.4 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.6286, allocations: 7.984 kB / 445.4 MB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.6286, allocations: 4 kB / 445.4 MB, free: 10.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.49e-05/0.6287, allocations: 96.67 kB / 445.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6287, allocations: 0 / 445.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003568/0.6291, allocations: 24 kB / 445.5 MB, free: 10.87 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.0007605/0.6298, allocations: 0.7758 MB / 446.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002815/0.6301, allocations: 92.11 kB / 446.4 MB, free: 9.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.6301, allocations: 4.781 kB / 446.4 MB, free: 9.973 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.6303, allocations: 53.17 kB / 446.4 MB, free: 9.922 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.6306, allocations: 12.8 kB / 446.4 MB, free: 9.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006633/0.6312, allocations: 169.5 kB / 446.6 MB, free: 9.711 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.6316, allocations: 0.7004 MB / 447.3 MB, free: 8.984 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.618e-05/0.6317, allocations: 12.89 kB / 447.3 MB, free: 8.969 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.772e-05/0.6318, allocations: 23.42 kB / 447.3 MB, free: 8.945 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6318, allocations: 0 / 447.3 MB, free: 8.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.6525, allocations: 1.882 MB / 449.2 MB, free: 7.156 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.6528, allocations: 134.3 kB / 449.4 MB, free: 6.938 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/2.81, allocations: 0 / 449.4 MB, free: 6.938 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