Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.485/2.485, allocations: 270 MB / 282.6 MB, free: 1.938 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.884e-05/3.889e-05, allocations: 4 kB / 347.1 MB, free: 3.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4105, allocations: 61.85 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1988/0.6093, allocations: 87 MB / 495.9 MB, free: 3.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.6097, allocations: 63.97 kB / 496 MB, free: 3.551 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008859/0.6186, allocations: 1.631 MB / 497.6 MB, free: 1.914 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6186, allocations: 0 / 497.6 MB, free: 1.914 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.697e-05/0.6187, allocations: 3.984 kB / 497.6 MB, free: 1.91 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.0006775/0.6193, allocations: 369.5 kB / 498 MB, free: 1.508 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.6194, allocations: 8.031 kB / 498 MB, free: 1.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.971e-05/0.6195, allocations: 42.55 kB / 498 MB, free: 1.449 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.312e-05/0.6196, allocations: 11.91 kB / 498 MB, free: 1.438 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.6199, allocations: 191.1 kB / 498.2 MB, free: 1.211 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.6199, allocations: 4 kB / 498.2 MB, free: 1.207 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.62, allocations: 15.95 kB / 498.2 MB, free: 1.191 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002451/0.6202, allocations: 67.36 kB / 498.3 MB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.6203, allocations: 0 / 498.3 MB, free: 1.121 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.431e-05/0.6203, allocations: 11.94 kB / 498.3 MB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.6203, allocations: 0 / 498.3 MB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000161/0.6205, allocations: 35.98 kB / 498.3 MB, free: 1.074 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.6215, allocations: 368.4 kB / 498.7 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.6217, allocations: 46.52 kB / 498.8 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.686e-05/0.6218, allocations: 17.02 kB / 498.8 MB, free: 0.5898 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.6218, allocations: 4 kB / 498.8 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.6221, allocations: 63.44 kB / 498.8 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 2.554e-06/0.6221, allocations: 0 / 498.8 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002895/0.6224, allocations: 69.59 kB / 498.9 MB, free: 448 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.6224, allocations: 55.36 kB / 499 MB, free: 380 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.6227, allocations: 138.5 kB / 499.1 MB, free: 232 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.6227, allocations: 29.64 kB / 499.1 MB, free: 196 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.6228, allocations: 170.5 kB / 499.3 MB, free: 24 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.6229, allocations: 11.81 kB / 499.3 MB, free: 12 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/0.6229, allocations: 4 kB / 499.3 MB, free: 8 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6231, allocations: 310.8 kB / 499.6 MB, free: 15.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.93e-05/0.6232, allocations: 16 kB / 499.6 MB, free: 15.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.6233, allocations: 34.56 kB / 499.7 MB, free: 15.64 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.53e-05/0.6234, allocations: 20 kB / 499.7 MB, free: 15.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.6234, allocations: 0 / 499.7 MB, free: 15.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002813/0.6237, allocations: 81.53 kB / 499.8 MB, free: 15.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.6238, allocations: 4 kB / 499.8 MB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.6238, allocations: 0 / 499.8 MB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.856e-05/0.6238, allocations: 7.984 kB / 499.8 MB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.624, allocations: 4 kB / 499.8 MB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.624, allocations: 4 kB / 499.8 MB, free: 15.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.6242, allocations: 20.09 kB / 499.8 MB, free: 15.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.987e-05/0.6242, allocations: 4 kB / 499.8 MB, free: 15.49 MB / 426.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 0.0001219/0.6243, allocations: 123.7 kB / 499.9 MB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.323e-05/0.6244, allocations: 7.906 kB / 499.9 MB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.6245, allocations: 8.625 kB / 499.9 MB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.6245, allocations: 0 / 499.9 MB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6245, allocations: 0 / 499.9 MB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.079e-05/0.6245, allocations: 4 kB / 499.9 MB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006302/0.6252, allocations: 350.4 kB / 0.4886 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.6252, allocations: 0 / 0.4886 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.714e-05/0.6253, allocations: 4.188 kB / 0.4886 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.6253, allocations: 0 / 0.4886 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.13e-05/0.6254, allocations: 11.92 kB / 0.4886 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.6254, allocations: 0 / 0.4886 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.6254, allocations: 3.953 kB / 0.4886 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.6258, allocations: 195.7 kB / 0.4888 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.959e-05/0.6259, allocations: 81.02 kB / 0.4888 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.966e-05/0.626, allocations: 8.016 kB / 0.4888 GB, free: 14.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.6262, allocations: 8 kB / 0.4889 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.003e-05/0.6263, allocations: 11.94 kB / 0.4889 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.6263, allocations: 0 / 0.4889 GB, free: 14.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001337/0.6265, allocations: 107.3 kB / 0.489 GB, free: 14.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.025e-06/0.6265, allocations: 0 / 0.489 GB, free: 14.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005966/0.6271, allocations: 24 kB / 0.489 GB, free: 14.46 MB / 426.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.0008481/0.628, allocations: 0.7186 MB / 0.4897 GB, free: 13.72 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.6282, allocations: 43.92 kB / 0.4897 GB, free: 13.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6282, allocations: 0 / 0.4897 GB, free: 13.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.6284, allocations: 20 kB / 0.4898 GB, free: 13.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004908/0.6289, allocations: 24.17 kB / 0.4898 GB, free: 13.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.6301, allocations: 234.4 kB / 0.49 GB, free: 13.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.6306, allocations: 0.7004 MB / 0.4907 GB, free: 12.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.6307, allocations: 27.44 kB / 0.4907 GB, free: 12.61 MB / 426.7 MB Notification: Performance of SimCode: time 1.303e-06/0.6307, allocations: 0 / 0.4907 GB, free: 12.61 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.502/3.133, allocations: 1.561 MB / 0.4922 GB, free: 11.05 MB / 426.7 MB