Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.272/2.272, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.785e-05/4.804e-05, allocations: 7.234 kB / 292.2 MB, free: 8.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1295, allocations: 50.41 MB / 342.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4336/0.5632, allocations: 77.22 MB / 419.9 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/0.5636, allocations: 80.06 kB / 419.9 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009129/0.5727, allocations: 2.1 MB / 422.1 MB, free: 14.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5728, allocations: 4 kB / 422.1 MB, free: 14.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.5728, allocations: 0 / 422.1 MB, free: 14.72 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004429/0.5732, allocations: 361.6 kB / 422.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.5733, allocations: 8.031 kB / 422.4 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.22e-05/0.5734, allocations: 38.5 kB / 422.5 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.486e-05/0.5734, allocations: 11.86 kB / 422.5 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.5737, allocations: 188.7 kB / 422.6 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.5737, allocations: 11.3 kB / 422.7 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.5737, allocations: 4 kB / 422.7 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002768/0.574, allocations: 95.12 kB / 422.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.574, allocations: 0 / 422.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.5741, allocations: 3.953 kB / 422.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.5741, allocations: 3.984 kB / 422.8 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.405e-05/0.5741, allocations: 11.19 kB / 422.8 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004477/0.5746, allocations: 268.8 kB / 423 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.292e-05/0.5747, allocations: 41.16 kB / 423.1 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.737e-05/0.5747, allocations: 16.97 kB / 423.1 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.969e-05/0.5748, allocations: 8.016 kB / 423.1 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.5748, allocations: 30.56 kB / 423.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 2.695e-06/0.5748, allocations: 0 / 423.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001975/0.575, allocations: 52.91 kB / 423.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.5751, allocations: 80.42 kB / 423.3 MB, free: 13.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.5753, allocations: 126.7 kB / 423.4 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.691e-05/0.5753, allocations: 25.7 kB / 423.4 MB, free: 13.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.5754, allocations: 95.5 kB / 423.5 MB, free: 13.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.5754, allocations: 11.08 kB / 423.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.429e-06/0.5754, allocations: 3.938 kB / 423.5 MB, free: 13.08 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.5756, allocations: 310.8 kB / 423.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.404e-05/0.5756, allocations: 7.125 kB / 423.8 MB, free: 12.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.16e-05/0.5756, allocations: 17.66 kB / 423.8 MB, free: 12.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.963e-05/0.5757, allocations: 10.86 kB / 423.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.5757, allocations: 0 / 423.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001021/0.5758, allocations: 45.16 kB / 423.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.5758, allocations: 8 kB / 423.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.5758, allocations: 0 / 423.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.5759, allocations: 0 / 423.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.576, allocations: 7.984 kB / 423.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.576, allocations: 8.062 kB / 423.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.042e-05/0.5761, allocations: 3.938 kB / 423.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.5761, allocations: 4 kB / 423.9 MB, free: 12.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.355e-05/0.5762, allocations: 101 kB / 424 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.426e-05/0.5763, allocations: 52.86 kB / 424.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.782e-05/0.5764, allocations: 3.656 kB / 424.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.5764, allocations: 4 kB / 424.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.5764, allocations: 0 / 424.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.5764, allocations: 4.031 kB / 424.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.5766, allocations: 167.1 kB / 424.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.5766, allocations: 0 / 424.3 MB, free: 12.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-05/0.5767, allocations: 11.98 kB / 424.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5767, allocations: 0 / 424.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.5768, allocations: 3.953 kB / 424.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.227e-06/0.5768, allocations: 0.5469 kB / 424.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5768, allocations: 4 kB / 424.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.577, allocations: 164.5 kB / 424.4 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.604e-05/0.5771, allocations: 95.58 kB / 424.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.5771, allocations: 0 / 424.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.904e-05/0.5772, allocations: 4 kB / 424.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/0.5772, allocations: 0 / 424.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.5773, allocations: 4 kB / 424.5 MB, free: 11.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.5774, allocations: 105.7 kB / 424.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5774, allocations: 4.031 kB / 424.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.5777, allocations: 11.12 kB / 424.7 MB, free: 11.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0004786/0.5782, allocations: 0.7745 MB / 425.4 MB, free: 11.06 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.526e-05/0.5783, allocations: 11.62 kB / 425.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5783, allocations: 0 / 425.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.239e-05/0.5783, allocations: 0 / 425.4 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.5787, allocations: 23.83 kB / 425.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005203/0.5792, allocations: 126 kB / 425.6 MB, free: 10.87 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.5795, allocations: 0.689 MB / 426.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.356e-05/0.5796, allocations: 7.984 kB / 426.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.081e-05/0.5796, allocations: 21.92 kB / 426.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5796, allocations: 0 / 426.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.6002, allocations: 1.259 MB / 427.6 MB, free: 8.949 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001737/0.6022, allocations: 163 kB / 427.7 MB, free: 8.727 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.362/2.964, allocations: 0 / 427.7 MB, free: 8.727 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat does not exist to compare? outputFormat=mat