Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.359/2.359, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.444e-05/5.463e-05, allocations: 7.938 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1349, allocations: 61.88 MB / 410.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5205/0.6555, allocations: 87 MB / 497.3 MB, free: 1.086 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.6558, allocations: 59.97 kB / 497.4 MB, free: 1.027 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006913/0.6627, allocations: 1.631 MB / 499 MB, free: 15.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6627, allocations: 0 / 499 MB, free: 15.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.6628, allocations: 11.98 kB / 499 MB, free: 15.39 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005701/0.6634, allocations: 378.2 kB / 499.4 MB, free: 14.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.6634, allocations: 8.031 kB / 499.4 MB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.334e-05/0.6635, allocations: 38.56 kB / 499.5 MB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.6635, allocations: 7.906 kB / 499.5 MB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.6638, allocations: 186.9 kB / 499.6 MB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.6638, allocations: 4 kB / 499.7 MB, free: 14.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.155e-05/0.6639, allocations: 15.95 kB / 499.7 MB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.6641, allocations: 74.33 kB / 499.7 MB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.6641, allocations: 0 / 499.7 MB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.6641, allocations: 0 / 499.7 MB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/0.6641, allocations: 6.734 kB / 499.7 MB, free: 14.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.6643, allocations: 31.98 kB / 499.8 MB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007923/0.6651, allocations: 368.5 kB / 0.4884 GB, free: 14.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001368/0.6652, allocations: 42.56 kB / 0.4885 GB, free: 14.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.102e-05/0.6653, allocations: 17.02 kB / 0.4885 GB, free: 14.08 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.6653, allocations: 3.984 kB / 0.4885 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.6655, allocations: 75.38 kB / 0.4885 GB, free: 13.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 2.335e-06/0.6655, allocations: 0 / 0.4885 GB, free: 13.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002396/0.6658, allocations: 69.59 kB / 0.4886 GB, free: 13.91 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.6658, allocations: 55.36 kB / 0.4887 GB, free: 13.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.666, allocations: 132.9 kB / 0.4888 GB, free: 13.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.6661, allocations: 29.7 kB / 0.4888 GB, free: 13.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.305e-05/0.6661, allocations: 96.12 kB / 0.4889 GB, free: 13.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.422e-05/0.6662, allocations: 19.8 kB / 0.4889 GB, free: 13.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.6662, allocations: 4 kB / 0.4889 GB, free: 13.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.6664, allocations: 322.8 kB / 0.4892 GB, free: 13.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.618e-05/0.6664, allocations: 16 kB / 0.4893 GB, free: 13.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.617e-05/0.6665, allocations: 34.58 kB / 0.4893 GB, free: 13.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.411e-05/0.6666, allocations: 20.98 kB / 0.4893 GB, free: 13.15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.6666, allocations: 4 kB / 0.4893 GB, free: 13.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002045/0.6668, allocations: 89.48 kB / 0.4894 GB, free: 13.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.6669, allocations: 4 kB / 0.4894 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.6669, allocations: 0 / 0.4894 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.6669, allocations: 3.938 kB / 0.4894 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.71e-05/0.667, allocations: 8.219 kB / 0.4894 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.667, allocations: 0 / 0.4894 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.6672, allocations: 23.95 kB / 0.4894 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.6672, allocations: 8.062 kB / 0.4894 GB, free: 13 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 9.57e-05/0.6673, allocations: 108.7 kB / 0.4896 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/0.6673, allocations: 7.906 kB / 0.4896 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.686e-05/0.6674, allocations: 12.62 kB / 0.4896 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.6674, allocations: 0 / 0.4896 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.6674, allocations: 0 / 0.4896 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.6674, allocations: 0 / 0.4896 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005115/0.668, allocations: 350.5 kB / 0.4899 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.668, allocations: 4 kB / 0.4899 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.6681, allocations: 7.984 kB / 0.4899 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.6681, allocations: 0 / 0.4899 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.6681, allocations: 4 kB / 0.4899 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.6681, allocations: 0 / 0.4899 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6681, allocations: 3.953 kB / 0.4899 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002939/0.6684, allocations: 187.4 kB / 0.4901 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.448e-05/0.6685, allocations: 89 kB / 0.4902 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.6685, allocations: 64 / 0.4902 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.6687, allocations: 12.03 kB / 0.4902 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.6688, allocations: 11.94 kB / 0.4902 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.187e-06/0.6688, allocations: 0 / 0.4902 GB, free: 12.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.6689, allocations: 107.3 kB / 0.4903 GB, free: 12.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6689, allocations: 0 / 0.4903 GB, free: 12.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003351/0.6693, allocations: 20 kB / 0.4903 GB, free: 12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (fallingEdge.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006496/0.6699, allocations: 0.7202 MB / 0.491 GB, free: 11.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.6701, allocations: 43.98 kB / 0.4911 GB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6701, allocations: 192 / 0.4911 GB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.771e-05/0.6702, allocations: 23.94 kB / 0.4911 GB, free: 11.19 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.6706, allocations: 26.23 kB / 0.4911 GB, free: 11.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008354/0.6714, allocations: 200.9 kB / 0.4913 GB, free: 10.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.6718, allocations: 0.7004 MB / 0.492 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.597e-05/0.6718, allocations: 4.438 kB / 0.492 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.6719, allocations: 27.42 kB / 0.492 GB, free: 10.17 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.6719, allocations: 0 / 0.492 GB, free: 10.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.6983, allocations: 1.888 MB / 0.4939 GB, free: 8.363 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002747/0.6987, allocations: 144 kB / 0.494 GB, free: 8.141 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/3.159, allocations: 4 kB / 0.494 GB, free: 8.137 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat