Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.083e-05/3.101e-05, allocations: 4 kB / 292.2 MB, free: 8.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 50.41 MB / 342.6 MB, free: 5.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5657, allocations: 81.33 MB / 424 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004305/0.5662, allocations: 79.64 kB / 424.1 MB, free: 12.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05045/0.6167, allocations: 6.649 MB / 430.7 MB, free: 7.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.6167, allocations: 0 / 430.7 MB, free: 7.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.032e-05/0.6168, allocations: 12 kB / 430.7 MB, free: 7.238 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001449/0.6183, allocations: 0.4937 MB / 431.2 MB, free: 6.707 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.335e-05/0.6184, allocations: 8.031 kB / 431.2 MB, free: 6.699 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.414e-05/0.6185, allocations: 38.36 kB / 431.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002111/0.6187, allocations: 23.72 kB / 431.3 MB, free: 6.633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.62, allocations: 285.8 kB / 431.6 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.576e-05/0.6201, allocations: 4 kB / 431.6 MB, free: 6.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.6201, allocations: 7.375 kB / 431.6 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.6206, allocations: 158 kB / 431.7 MB, free: 6.168 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.6206, allocations: 4 kB / 431.7 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.6206, allocations: 7.578 kB / 431.7 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.6206, allocations: 0 / 431.7 MB, free: 6.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.6208, allocations: 42.23 kB / 431.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007633/0.6216, allocations: 388.1 kB / 432.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.6218, allocations: 115.6 kB / 432.3 MB, free: 5.621 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.6219, allocations: 44.27 kB / 432.3 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.622, allocations: 3.875 kB / 432.3 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002039/0.6222, allocations: 85.19 kB / 432.4 MB, free: 5.492 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.966e-06/0.6222, allocations: 4 kB / 432.4 MB, free: 5.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004248/0.6227, allocations: 119.5 kB / 432.5 MB, free: 5.383 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.6228, allocations: 157.5 kB / 432.7 MB, free: 5.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005397/0.6233, allocations: 305.5 kB / 433 MB, free: 4.949 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.6234, allocations: 25.7 kB / 433 MB, free: 4.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.6235, allocations: 129.3 kB / 433.1 MB, free: 4.816 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.6236, allocations: 19.19 kB / 433.1 MB, free: 4.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-06/0.6236, allocations: 3.938 kB / 433.1 MB, free: 4.797 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.6238, allocations: 333.4 kB / 433.5 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.283e-05/0.6238, allocations: 22.31 kB / 433.5 MB, free: 4.457 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.624, allocations: 94.55 kB / 433.6 MB, free: 4.355 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.859e-05/0.6241, allocations: 31.36 kB / 433.6 MB, free: 4.332 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.6241, allocations: 0 / 433.6 MB, free: 4.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003133/0.6245, allocations: 117.2 kB / 433.7 MB, free: 4.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.6245, allocations: 11.98 kB / 433.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.6245, allocations: 0 / 433.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.6246, allocations: 4.125 kB / 433.7 MB, free: 4.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.6248, allocations: 19.94 kB / 433.8 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.6248, allocations: 4 kB / 433.8 MB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.625, allocations: 14.58 kB / 433.8 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.625, allocations: 4 kB / 433.8 MB, free: 4.176 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001284/0.6251, allocations: 108.7 kB / 433.9 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.6253, allocations: 72.42 kB / 434 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003744/0.6257, allocations: 124.8 kB / 434.1 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.6257, allocations: 0 / 434.1 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.6257, allocations: 4 kB / 434.1 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.6257, allocations: 0 / 434.1 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003288/0.6261, allocations: 252.3 kB / 434.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.6261, allocations: 4 kB / 434.3 MB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.6262, allocations: 11.94 kB / 434.4 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.6263, allocations: 8.062 kB / 434.4 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.6263, allocations: 15.38 kB / 434.4 MB, free: 3.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6263, allocations: 3.938 kB / 434.4 MB, free: 3.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.6264, allocations: 4 kB / 434.4 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003681/0.6267, allocations: 191 kB / 434.6 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001719/0.6269, allocations: 116.5 kB / 434.7 MB, free: 3.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/0.627, allocations: 7.312 kB / 434.7 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.6271, allocations: 8 kB / 434.7 MB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.588e-05/0.6272, allocations: 11.11 kB / 434.7 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.6272, allocations: 4 kB / 434.7 MB, free: 3.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003749/0.6276, allocations: 241.9 kB / 434.9 MB, free: 3.035 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6276, allocations: 0 / 434.9 MB, free: 3.035 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004451/0.6281, allocations: 55.03 kB / 435 MB, free: 2.988 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001946/0.63, allocations: 1.181 MB / 436.2 MB, free: 1.91 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.6304, allocations: 85.66 kB / 436.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6305, allocations: 0 / 436.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.6306, allocations: 30.61 kB / 436.3 MB, free: 1.824 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.6311, allocations: 52.39 kB / 436.3 MB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.6322, allocations: 359.8 kB / 436.7 MB, free: 1.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.6326, allocations: 0.7426 MB / 437.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.6327, allocations: 29.31 kB / 437.5 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.6329, allocations: 62.28 kB / 437.5 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of SimCode: time 1.203e-06/0.6329, allocations: 0 / 437.5 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03028/0.6632, allocations: 4.691 MB / 442.2 MB, free: 12.01 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003114/0.6636, allocations: 216.4 kB / 442.4 MB, free: 11.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.645/3.308, allocations: 0 / 442.4 MB, free: 11.78 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat