Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.929/1.929, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.809e-05/2.823e-05, allocations: 2 kB / 267.6 MB, free: 5.332 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1071, allocations: 48.7 MB / 316.3 MB, free: 4.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4098/0.517, allocations: 73.92 MB / 390.2 MB, free: 2.395 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.5173, allocations: 58.48 kB / 390.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006521/0.5238, allocations: 1.38 MB / 391.7 MB, free: 1.164 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.5239, allocations: 4 kB / 391.7 MB, free: 1.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.5239, allocations: 0 / 391.7 MB, free: 1.16 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.0007139/0.5247, allocations: 382.1 kB / 392 MB, free: 0.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.304e-05/0.5247, allocations: 11.97 kB / 392 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.776e-05/0.5248, allocations: 15.91 kB / 392.1 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.525, allocations: 171 kB / 392.2 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.525, allocations: 0 / 392.2 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.5251, allocations: 8 kB / 392.2 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001484/0.5252, allocations: 27.5 kB / 392.3 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.5254, allocations: 77.03 kB / 392.3 MB, free: 436 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.954e-05/0.5255, allocations: 3.984 kB / 392.3 MB, free: 432 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.57e-05/0.5255, allocations: 3.938 kB / 392.3 MB, free: 428 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.5256, allocations: 0.9844 kB / 392.3 MB, free: 428 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009284/0.5265, allocations: 312.2 kB / 392.6 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.5268, allocations: 73.58 kB / 392.7 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.5269, allocations: 33.17 kB / 392.8 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.527, allocations: 4.219 kB / 392.8 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003131/0.5273, allocations: 88.62 kB / 392.8 MB, free: 15.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 4.589e-06/0.5274, allocations: 3.938 kB / 392.8 MB, free: 15.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005424/0.5279, allocations: 142.9 kB / 393 MB, free: 15.8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.528, allocations: 55.41 kB / 393 MB, free: 15.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.5282, allocations: 117.8 kB / 393.2 MB, free: 15.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.5282, allocations: 29.7 kB / 393.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.5284, allocations: 157.7 kB / 393.3 MB, free: 15.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.325e-05/0.5284, allocations: 37.73 kB / 393.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.182e-05/0.5285, allocations: 4 kB / 393.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.5287, allocations: 318.2 kB / 393.7 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.5288, allocations: 25.94 kB / 393.7 MB, free: 15.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000163/0.529, allocations: 67.02 kB / 393.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.5292, allocations: 37.92 kB / 393.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.5292, allocations: 0 / 393.8 MB, free: 14.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004634/0.5296, allocations: 121.5 kB / 393.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.5297, allocations: 4 kB / 393.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.5297, allocations: 4 kB / 393.9 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.5298, allocations: 3.984 kB / 393.9 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.53, allocations: 28.69 kB / 394 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.5301, allocations: 4.156 kB / 394 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.5302, allocations: 11.89 kB / 394 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.884e-05/0.5303, allocations: 8 kB / 394 MB, free: 14.8 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.0002414/0.5305, allocations: 129.5 kB / 394.1 MB, free: 14.68 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000467/0.531, allocations: 136.9 kB / 394.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.385e-05/0.5311, allocations: 7.906 kB / 394.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.5311, allocations: 8.062 kB / 394.3 MB, free: 14.55 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.5312, allocations: 8 kB / 394.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.5312, allocations: 0 / 394.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.5312, allocations: 3.953 kB / 394.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009082/0.5321, allocations: 394.8 kB / 394.7 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.5322, allocations: 3.984 kB / 394.7 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.5323, allocations: 11.98 kB / 394.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.5323, allocations: 0 / 394.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.5324, allocations: 7.188 kB / 394.7 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.5324, allocations: 3.953 kB / 394.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.5324, allocations: 4 kB / 394.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005081/0.5329, allocations: 233.1 kB / 394.9 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.5331, allocations: 91.75 kB / 395 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.5332, allocations: 0 / 395 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002622/0.5334, allocations: 15.11 kB / 395 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.704e-05/0.5336, allocations: 11.94 kB / 395 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/0.5336, allocations: 8 kB / 395.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.944e-05/0.5337, allocations: 101.8 kB / 395.2 MB, free: 13.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5337, allocations: 0 / 395.2 MB, free: 13.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006012/0.5344, allocations: 16 kB / 395.2 MB, free: 13.66 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.0009912/0.5354, allocations: 0.759 MB / 395.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003725/0.5358, allocations: 90.8 kB / 396 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.279e-06/0.5358, allocations: 0 / 396 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.536, allocations: 45.94 kB / 396.1 MB, free: 12.8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.5364, allocations: 11.94 kB / 396.1 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009971/0.5374, allocations: 183.7 kB / 396.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.5379, allocations: 0.6966 MB / 397 MB, free: 11.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.5381, allocations: 34.05 kB / 397 MB, free: 11.83 MB / 330.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5381, allocations: 0 / 397 MB, free: 11.83 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.485/3.023, allocations: 1.524 MB / 398.5 MB, free: 10.32 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat