Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.538/2.538, allocations: 270 MB / 282.6 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.479e-05/4.487e-05, allocations: 4 kB / 347 MB, free: 3.129 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.39, allocations: 61.87 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.5757, allocations: 86.08 MB / 495 MB, free: 4.555 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.576, allocations: 63.97 kB / 495.1 MB, free: 4.492 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004369/0.5804, allocations: 0.9829 MB / 496 MB, free: 3.508 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5805, allocations: 0 / 496 MB, free: 3.508 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.5805, allocations: 0 / 496 MB, free: 3.508 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004674/0.581, allocations: 342.5 kB / 496.4 MB, free: 3.129 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.5811, allocations: 12.03 kB / 496.4 MB, free: 3.117 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.757e-05/0.5811, allocations: 30.56 kB / 496.4 MB, free: 3.078 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.428e-05/0.5812, allocations: 4 kB / 496.4 MB, free: 3.074 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.5813, allocations: 174.9 kB / 496.6 MB, free: 2.863 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.5814, allocations: 0 / 496.6 MB, free: 2.863 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.5814, allocations: 3.953 kB / 496.6 MB, free: 2.859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001691/0.5816, allocations: 59.33 kB / 496.7 MB, free: 2.789 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.5816, allocations: 3.938 kB / 496.7 MB, free: 2.785 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.5816, allocations: 11.98 kB / 496.7 MB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.5816, allocations: 0 / 496.7 MB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.414e-05/0.5817, allocations: 8 kB / 496.7 MB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.5822, allocations: 260.9 kB / 496.9 MB, free: 2.461 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.754e-05/0.5823, allocations: 30.56 kB / 497 MB, free: 2.422 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.171e-05/0.5824, allocations: 16.92 kB / 497 MB, free: 2.402 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.5824, allocations: 3.938 kB / 497 MB, free: 2.398 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.5825, allocations: 30.56 kB / 497 MB, free: 2.359 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 2.555e-06/0.5825, allocations: 0 / 497 MB, free: 2.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001852/0.5827, allocations: 41.7 kB / 497.1 MB, free: 2.312 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.5828, allocations: 85.03 kB / 497.1 MB, free: 2.211 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.311e-05/0.5829, allocations: 97 kB / 497.2 MB, free: 2.109 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.5829, allocations: 29.7 kB / 497.3 MB, free: 2.074 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.136e-05/0.583, allocations: 158.6 kB / 497.4 MB, free: 1.918 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/0.583, allocations: 3.906 kB / 497.4 MB, free: 1.914 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.583, allocations: 0 / 497.4 MB, free: 1.914 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.5832, allocations: 314.8 kB / 497.7 MB, free: 1.598 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-05/0.5833, allocations: 12 kB / 497.7 MB, free: 1.586 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.091e-05/0.5833, allocations: 17.72 kB / 497.8 MB, free: 1.562 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.069e-05/0.5834, allocations: 11.94 kB / 497.8 MB, free: 1.551 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5834, allocations: 32 / 497.8 MB, free: 1.551 MB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001334/0.5836, allocations: 53.64 kB / 497.8 MB, free: 1.492 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.5836, allocations: 4 kB / 497.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.5836, allocations: 4 kB / 497.8 MB, free: 1.484 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.5836, allocations: 0 / 497.8 MB, free: 1.484 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.5837, allocations: 4 kB / 497.8 MB, free: 1.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.5838, allocations: 3.984 kB / 497.8 MB, free: 1.477 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001087/0.5839, allocations: 8 kB / 497.8 MB, free: 1.469 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.886e-06/0.5839, allocations: 0 / 497.8 MB, free: 1.469 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.922e-05/0.584, allocations: 109 kB / 497.9 MB, free: 1.355 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.626e-05/0.5841, allocations: 7.859 kB / 498 MB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.5841, allocations: 15.64 kB / 498 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.5841, allocations: 0 / 498 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.5841, allocations: 0 / 498 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.5841, allocations: 0 / 498 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.5844, allocations: 161.6 kB / 498.1 MB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5844, allocations: 0 / 498.1 MB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.84e-05/0.5845, allocations: 11.94 kB / 498.1 MB, free: 1.105 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.5845, allocations: 11.95 kB / 498.2 MB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.5845, allocations: 4 kB / 498.2 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.5845, allocations: 0 / 498.2 MB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.5845, allocations: 3.984 kB / 498.2 MB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001693/0.5847, allocations: 131.6 kB / 498.3 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.5848, allocations: 81.09 kB / 498.4 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.5848, allocations: 8.094 kB / 498.4 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.585, allocations: 12.03 kB / 498.4 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.832e-05/0.585, allocations: 11.97 kB / 498.4 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.5851, allocations: 3.984 kB / 498.4 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.06e-05/0.5851, allocations: 83.28 kB / 498.5 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5851, allocations: 0 / 498.5 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003021/0.5854, allocations: 8 kB / 498.5 MB, free: 0.7188 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * 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.0004808/0.5859, allocations: 0.6793 MB / 499.2 MB, free: 16 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.5861, allocations: 24.02 kB / 499.2 MB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5861, allocations: 0 / 499.2 MB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.904e-05/0.5862, allocations: 4 kB / 499.2 MB, free: 15.98 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.5864, allocations: 11.94 kB / 499.2 MB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004546/0.5868, allocations: 120.7 kB / 499.3 MB, free: 15.81 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.5871, allocations: 0.6848 MB / 0.4883 GB, free: 15.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.15e-05/0.5872, allocations: 15.42 kB / 0.4883 GB, free: 15.09 MB / 426.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5873, allocations: 3.938 kB / 0.4883 GB, free: 15.08 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.296/2.884, allocations: 0.8705 MB / 0.4892 GB, free: 14.21 MB / 426.7 MB