Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.618/2.618, allocations: 270 MB / 283.6 MB, free: 1.867 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.571e-05/3.583e-05, allocations: 0 / 348.5 MB, free: 2.656 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4444/0.4445, allocations: 61.87 MB / 410.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1643/0.6089, allocations: 86.67 MB / 497 MB, free: 3.82 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.6093, allocations: 59.97 kB / 497.1 MB, free: 3.762 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006451/0.6157, allocations: 1.47 MB / 498.6 MB, free: 2.281 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.6158, allocations: 0 / 498.6 MB, free: 2.281 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.6158, allocations: 0 / 498.6 MB, free: 2.281 MB / 410.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.0006732/0.6165, allocations: 390.1 kB / 498.9 MB, free: 1.855 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.6165, allocations: 15.97 kB / 499 MB, free: 1.84 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.424e-05/0.6166, allocations: 38.55 kB / 499 MB, free: 1.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.6166, allocations: 7.906 kB / 499 MB, free: 1.785 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.6168, allocations: 179.1 kB / 499.2 MB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.6168, allocations: 7.953 kB / 499.2 MB, free: 1.562 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.118e-05/0.6169, allocations: 12 kB / 499.2 MB, free: 1.551 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.6171, allocations: 85.66 kB / 499.3 MB, free: 1.461 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.6172, allocations: 0 / 499.3 MB, free: 1.461 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.6172, allocations: 0 / 499.3 MB, free: 1.461 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.6172, allocations: 4 kB / 499.3 MB, free: 1.457 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001342/0.6173, allocations: 35.98 kB / 499.3 MB, free: 1.422 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007108/0.6181, allocations: 320.7 kB / 499.6 MB, free: 1.059 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.6183, allocations: 90.5 kB / 499.7 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.6184, allocations: 36.86 kB / 499.8 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.6185, allocations: 3.984 kB / 499.8 MB, free: 0.918 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.6187, allocations: 91.33 kB / 499.8 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.404e-06/0.6187, allocations: 0 / 499.8 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of matching and sorting (n=14): time 0.000421/0.6192, allocations: 141.7 kB / 500 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.6192, allocations: 67.33 kB / 0.4883 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.6194, allocations: 105.2 kB / 0.4884 GB, free: 492 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.192e-05/0.6194, allocations: 33.7 kB / 0.4885 GB, free: 452 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.323e-05/0.6195, allocations: 92.41 kB / 0.4886 GB, free: 352 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.062e-05/0.6195, allocations: 31.56 kB / 0.4886 GB, free: 320 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.158e-05/0.6196, allocations: 4 kB / 0.4886 GB, free: 316 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6197, allocations: 326.8 kB / 0.4889 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-05/0.6198, allocations: 24.38 kB / 0.4889 GB, free: 15.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.62, allocations: 81.08 kB / 0.489 GB, free: 15.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.6201, allocations: 40.14 kB / 0.489 GB, free: 15.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.6201, allocations: 4 kB / 0.489 GB, free: 15.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000335/0.6205, allocations: 137.5 kB / 0.4892 GB, free: 15.68 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.6205, allocations: 8 kB / 0.4892 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.6205, allocations: 0 / 0.4892 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.6206, allocations: 7.984 kB / 0.4892 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.6208, allocations: 19.94 kB / 0.4892 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.6208, allocations: 4 kB / 0.4892 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.6209, allocations: 15.89 kB / 0.4892 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.6209, allocations: 4 kB / 0.4892 GB, free: 15.62 MB / 426.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.0001485/0.6211, allocations: 135.3 kB / 0.4894 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.6211, allocations: 7.906 kB / 0.4894 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.6212, allocations: 8.75 kB / 0.4894 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.6212, allocations: 7.984 kB / 0.4894 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.6212, allocations: 0 / 0.4894 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.6212, allocations: 3.938 kB / 0.4894 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006975/0.6219, allocations: 426.3 kB / 0.4898 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.6219, allocations: 4 kB / 0.4898 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.867e-05/0.6221, allocations: 16.3 kB / 0.4898 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.6221, allocations: 0 / 0.4898 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.6221, allocations: 4 kB / 0.4898 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.6221, allocations: 0 / 0.4898 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6221, allocations: 3.938 kB / 0.4898 GB, free: 14.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003918/0.6225, allocations: 243.4 kB / 0.4901 GB, free: 14.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.388e-05/0.6226, allocations: 85.09 kB / 0.4901 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.6226, allocations: 4 kB / 0.4901 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.6228, allocations: 8 kB / 0.4901 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.404e-05/0.6229, allocations: 11.98 kB / 0.4902 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.6229, allocations: 7.984 kB / 0.4902 GB, free: 14.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.481e-05/0.623, allocations: 87.28 kB / 0.4902 GB, free: 14.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.623, allocations: 0 / 0.4902 GB, free: 14.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003402/0.6234, allocations: 27.91 kB / 0.4903 GB, free: 14.45 MB / 426.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.0007126/0.6241, allocations: 0.7889 MB / 0.491 GB, free: 13.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.6244, allocations: 83.94 kB / 0.4911 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.6244, allocations: 0 / 0.4911 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.6246, allocations: 52.05 kB / 0.4912 GB, free: 13.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002825/0.6249, allocations: 8.312 kB / 0.4912 GB, free: 13.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006908/0.6256, allocations: 177.2 kB / 0.4914 GB, free: 13.29 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.6259, allocations: 0.6926 MB / 0.492 GB, free: 12.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 7.161e-05/0.626, allocations: 12.88 kB / 0.492 GB, free: 12.56 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.445e-05/0.6261, allocations: 31.42 kB / 0.4921 GB, free: 12.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6261, allocations: 0 / 0.4921 GB, free: 12.53 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.6501, allocations: 1.863 MB / 0.4939 GB, free: 10.76 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002739/0.6504, allocations: 138.7 kB / 0.494 GB, free: 10.54 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.44/3.09, allocations: 0 / 0.494 GB, free: 10.54 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat