Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.38/2.38, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.384e-05/3.387e-05, allocations: 0 / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1617, allocations: 61.89 MB / 410.3 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4861/0.6479, allocations: 85.83 MB / 496.2 MB, free: 2.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.6482, allocations: 59.97 kB / 496.2 MB, free: 2.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003668/0.6519, allocations: 0.9939 MB / 497.2 MB, free: 1.082 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.652, allocations: 0 / 497.2 MB, free: 1.082 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.652, allocations: 4 kB / 497.2 MB, free: 1.078 MB / 394.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.0003758/0.6524, allocations: 343.2 kB / 497.6 MB, free: 0.6992 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.6524, allocations: 8.031 kB / 497.6 MB, free: 0.6914 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.591e-05/0.6525, allocations: 38.55 kB / 497.6 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.6525, allocations: 3.906 kB / 497.6 MB, free: 0.6406 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.6528, allocations: 179.9 kB / 497.8 MB, free: 436 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.6528, allocations: 0 / 497.8 MB, free: 436 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.754e-05/0.6528, allocations: 11.95 kB / 497.8 MB, free: 424 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001395/0.653, allocations: 53.67 kB / 497.9 MB, free: 364 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.653, allocations: 0 / 497.9 MB, free: 364 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.653, allocations: 0 / 497.9 MB, free: 364 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.653, allocations: 4 kB / 497.9 MB, free: 360 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.839e-05/0.6531, allocations: 15.94 kB / 497.9 MB, free: 344 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006228/0.6537, allocations: 292.7 kB / 498.2 MB, free: 0 / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.254e-05/0.6539, allocations: 22.56 kB / 498.2 MB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.882e-05/0.6539, allocations: 12.92 kB / 498.2 MB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.285e-06/0.6539, allocations: 4 kB / 498.2 MB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001107/0.654, allocations: 55.36 kB / 498.3 MB, free: 15.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 3.116e-06/0.6541, allocations: 0 / 498.3 MB, free: 15.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001449/0.6542, allocations: 44.45 kB / 498.3 MB, free: 15.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.6543, allocations: 51.41 kB / 498.3 MB, free: 15.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.6544, allocations: 113.1 kB / 498.5 MB, free: 15.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.6544, allocations: 25.7 kB / 498.5 MB, free: 15.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/0.6545, allocations: 96.08 kB / 498.6 MB, free: 15.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.6545, allocations: 15.89 kB / 498.6 MB, free: 15.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.631e-06/0.6545, allocations: 4 kB / 498.6 MB, free: 15.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.6547, allocations: 314.8 kB / 498.9 MB, free: 15.19 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.325e-05/0.6547, allocations: 8 kB / 498.9 MB, free: 15.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.391e-05/0.6548, allocations: 17.72 kB / 498.9 MB, free: 15.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.405e-05/0.6548, allocations: 11.98 kB / 498.9 MB, free: 15.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.6548, allocations: 4 kB / 498.9 MB, free: 15.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000108/0.6549, allocations: 49.61 kB / 499 MB, free: 15.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.008e-05/0.655, allocations: 6.656 kB / 499 MB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.655, allocations: 7.922 kB / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.655, allocations: 0 / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.313e-05/0.6551, allocations: 4 kB / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.6551, allocations: 0 / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.914e-05/0.6551, allocations: 4 kB / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.6552, allocations: 0 / 499 MB, free: 15.07 MB / 410.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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.182e-05/0.6553, allocations: 113 kB / 499.1 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.6553, allocations: 0 / 499.1 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.6553, allocations: 12.03 kB / 499.1 MB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.6553, allocations: 3.984 kB / 499.1 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.6554, allocations: 0 / 499.1 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.6554, allocations: 224 / 499.1 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004257/0.6558, allocations: 302.4 kB / 499.4 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.6558, allocations: 3.938 kB / 499.4 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.978e-05/0.6559, allocations: 3.984 kB / 499.4 MB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.6559, allocations: 4 kB / 499.4 MB, free: 14.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.6559, allocations: 4.234 kB / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.6559, allocations: 0 / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.6559, allocations: 384 / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001838/0.6561, allocations: 151.5 kB / 499.6 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.206e-05/0.6562, allocations: 81.02 kB / 499.7 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.6562, allocations: 4.031 kB / 499.7 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.764e-05/0.6563, allocations: 4 kB / 499.7 MB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.6564, allocations: 7.984 kB / 499.7 MB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-06/0.6564, allocations: 7.938 kB / 499.7 MB, free: 14.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.259e-05/0.6565, allocations: 91.28 kB / 499.8 MB, free: 14.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6565, allocations: 0 / 499.8 MB, free: 14.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003069/0.6568, allocations: 8 kB / 499.8 MB, free: 14.17 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0005057/0.6573, allocations: 0.6812 MB / 0.4888 GB, free: 13.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001039/0.6574, allocations: 19.94 kB / 0.4888 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.6575, allocations: 0 / 0.4888 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.987e-05/0.6575, allocations: 8 kB / 0.4888 GB, free: 13.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.6578, allocations: 15.92 kB / 0.4888 GB, free: 13.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/0.6583, allocations: 128.4 kB / 0.4889 GB, free: 13.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.6586, allocations: 0.6889 MB / 0.4896 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.785e-05/0.6586, allocations: 8 kB / 0.4896 GB, free: 12.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.475e-05/0.6587, allocations: 15.42 kB / 0.4896 GB, free: 12.52 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.6587, allocations: 3.938 kB / 0.4896 GB, free: 12.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05227/0.711, allocations: 1.28 MB / 0.4909 GB, free: 11.31 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003009/0.7114, allocations: 152.3 kB / 0.491 GB, free: 11.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.236, allocations: 0 / 0.491 GB, free: 11.08 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat