Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.577/2.577, allocations: 270 MB / 282.6 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.993e-05/3.998e-05, allocations: 4 kB / 347.1 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3972, allocations: 61.87 MB / 408.9 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1711/0.5683, allocations: 85.83 MB / 494.7 MB, free: 4.801 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/0.5687, allocations: 63.97 kB / 494.8 MB, free: 4.738 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004203/0.5729, allocations: 0.9897 MB / 495.8 MB, free: 3.742 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.573, allocations: 3.938 kB / 495.8 MB, free: 3.738 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.573, allocations: 0 / 495.8 MB, free: 3.738 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004102/0.5734, allocations: 342.4 kB / 496.1 MB, free: 3.359 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.5735, allocations: 16.03 kB / 496.2 MB, free: 3.344 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/0.5736, allocations: 30.56 kB / 496.2 MB, free: 3.305 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.5736, allocations: 7.906 kB / 496.2 MB, free: 3.297 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.5738, allocations: 179 kB / 496.4 MB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.5739, allocations: 8.047 kB / 496.4 MB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.5739, allocations: 3.953 kB / 496.4 MB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000149/0.5741, allocations: 45.7 kB / 496.4 MB, free: 3.023 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.5741, allocations: 3.938 kB / 496.4 MB, free: 3.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.5741, allocations: 4 kB / 496.4 MB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.557e-06/0.5741, allocations: 4 kB / 496.4 MB, free: 3.012 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.526e-05/0.5742, allocations: 12 kB / 496.4 MB, free: 3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.5749, allocations: 292.7 kB / 496.7 MB, free: 2.664 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.534e-05/0.575, allocations: 26.52 kB / 496.8 MB, free: 2.629 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.607e-05/0.575, allocations: 12.86 kB / 496.8 MB, free: 2.613 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.5751, allocations: 0 / 496.8 MB, free: 2.613 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001276/0.5752, allocations: 55.41 kB / 496.8 MB, free: 2.547 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.444e-06/0.5752, allocations: 4 kB / 496.8 MB, free: 2.543 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001502/0.5754, allocations: 45.59 kB / 496.9 MB, free: 2.492 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.5754, allocations: 51.41 kB / 496.9 MB, free: 2.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.5756, allocations: 117.1 kB / 497 MB, free: 2.305 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.5756, allocations: 25.7 kB / 497.1 MB, free: 2.273 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.122e-05/0.5757, allocations: 154.6 kB / 497.2 MB, free: 2.121 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.5757, allocations: 11.84 kB / 497.2 MB, free: 2.109 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-06/0.5758, allocations: 0 / 497.2 MB, free: 2.109 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.5759, allocations: 318.8 kB / 497.5 MB, free: 1.789 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.676e-05/0.5759, allocations: 8 kB / 497.5 MB, free: 1.781 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.91e-05/0.576, allocations: 13.72 kB / 497.6 MB, free: 1.762 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.591e-05/0.576, allocations: 11.98 kB / 497.6 MB, free: 1.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.5761, allocations: 0 / 497.6 MB, free: 1.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000108/0.5762, allocations: 57.75 kB / 497.6 MB, free: 1.688 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.5762, allocations: 8 kB / 497.6 MB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.5762, allocations: 0 / 497.6 MB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.5762, allocations: 0 / 497.6 MB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.343e-05/0.5763, allocations: 4 kB / 497.6 MB, free: 1.676 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.5763, allocations: 0 / 497.6 MB, free: 1.676 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.162e-05/0.5764, allocations: 4 kB / 497.6 MB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.5764, allocations: 0 / 497.6 MB, free: 1.672 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.386e-05/0.5765, allocations: 112.9 kB / 497.8 MB, free: 1.555 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.5765, allocations: 7.938 kB / 497.8 MB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.41e-05/0.5766, allocations: 8.016 kB / 497.8 MB, free: 1.527 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.5766, allocations: 7.938 kB / 497.8 MB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5766, allocations: 0 / 497.8 MB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.5766, allocations: 0 / 497.8 MB, free: 1.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.577, allocations: 298.9 kB / 498.1 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.5771, allocations: 0 / 498.1 MB, free: 1.172 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.939e-05/0.5771, allocations: 3.984 kB / 498.1 MB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.5771, allocations: 0 / 498.1 MB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.5772, allocations: 11.94 kB / 498.1 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.5772, allocations: 0 / 498.1 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5772, allocations: 0 / 498.1 MB, free: 1.156 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.5774, allocations: 151.4 kB / 498.2 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.5774, allocations: 77.11 kB / 498.3 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.053e-05/0.5775, allocations: 4.031 kB / 498.3 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.005e-05/0.5776, allocations: 4 kB / 498.3 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.5776, allocations: 7.984 kB / 498.3 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.5776, allocations: 8 kB / 498.3 MB, free: 0.875 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.545e-05/0.5777, allocations: 87.28 kB / 498.4 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5777, allocations: 0 / 498.4 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003071/0.578, allocations: 8 kB / 498.4 MB, free: 0.7812 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.0005464/0.5786, allocations: 0.6812 MB / 499.1 MB, free: 76 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.5787, allocations: 24 kB / 499.1 MB, free: 52 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5787, allocations: 0 / 499.1 MB, free: 52 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.249e-05/0.5788, allocations: 12 kB / 499.1 MB, free: 40 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.5791, allocations: 14.91 kB / 499.2 MB, free: 28 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005364/0.5796, allocations: 154.2 kB / 499.3 MB, free: 15.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.5799, allocations: 0.6887 MB / 500 MB, free: 15.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.58, allocations: 19.42 kB / 0.4883 GB, free: 15.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.143e-06/0.58, allocations: 4.062 kB / 0.4883 GB, free: 15.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.6/3.18, allocations: 1.004 MB / 0.4893 GB, free: 14.09 MB / 426.7 MB