Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.446/2.446, allocations: 270 MB / 282.6 MB, free: 1.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.692e-05/3.697e-05, allocations: 7.938 kB / 347.1 MB, free: 3.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4341/0.4341, allocations: 61.87 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2207/0.6549, allocations: 87.32 MB / 496.2 MB, free: 3.309 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.6553, allocations: 63.95 kB / 496.3 MB, free: 3.246 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01661/0.6719, allocations: 2.912 MB / 499.2 MB, free: 340 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6719, allocations: 4 kB / 499.2 MB, free: 336 kB / 410.7 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.672, allocations: 4 kB / 499.2 MB, free: 332 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0009116/0.6729, allocations: 426.2 kB / 499.6 MB, free: 15.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.673, allocations: 8.031 kB / 499.6 MB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.018e-05/0.673, allocations: 38.56 kB / 499.7 MB, free: 15.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.046e-05/0.6731, allocations: 7.906 kB / 499.7 MB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.6735, allocations: 210.9 kB / 499.9 MB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.6736, allocations: 8 kB / 499.9 MB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.912e-05/0.6736, allocations: 7.953 kB / 499.9 MB, free: 15.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.6738, allocations: 83.02 kB / 500 MB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.6739, allocations: 4 kB / 500 MB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.6739, allocations: 8 kB / 0.4883 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.6739, allocations: 0 / 0.4883 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.674, allocations: 39.81 kB / 0.4883 GB, free: 15.4 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008471/0.6749, allocations: 380.6 kB / 0.4887 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.6751, allocations: 55.34 kB / 0.4887 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.385e-05/0.6752, allocations: 17.02 kB / 0.4888 GB, free: 14.9 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.6752, allocations: 4 kB / 0.4888 GB, free: 14.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001926/0.6754, allocations: 79.34 kB / 0.4888 GB, free: 14.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 2.455e-06/0.6754, allocations: 0 / 0.4888 GB, free: 14.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002728/0.6757, allocations: 77.52 kB / 0.4889 GB, free: 14.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.826e-05/0.6758, allocations: 55.36 kB / 0.489 GB, free: 14.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.6759, allocations: 135.6 kB / 0.4891 GB, free: 14.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.676, allocations: 25.7 kB / 0.4891 GB, free: 14.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.249e-05/0.6761, allocations: 166.7 kB / 0.4893 GB, free: 14.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.6761, allocations: 27.88 kB / 0.4893 GB, free: 14.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.725e-06/0.6761, allocations: 0 / 0.4893 GB, free: 14.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6763, allocations: 314.8 kB / 0.4896 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.705e-05/0.6764, allocations: 16 kB / 0.4896 GB, free: 13.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.569e-05/0.6765, allocations: 33.72 kB / 0.4896 GB, free: 13.92 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.291e-05/0.6765, allocations: 19.98 kB / 0.4897 GB, free: 13.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6765, allocations: 0 / 0.4897 GB, free: 13.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002064/0.6768, allocations: 81.62 kB / 0.4897 GB, free: 13.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.6768, allocations: 4 kB / 0.4897 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.6768, allocations: 0 / 0.4897 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.6768, allocations: 0 / 0.4897 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.677, allocations: 24.2 kB / 0.4898 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.6771, allocations: 0 / 0.4898 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.6773, allocations: 27.88 kB / 0.4898 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.6773, allocations: 7.938 kB / 0.4898 GB, free: 13.75 MB / 426.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: 7 ($whenCondition1,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u,change.y) * 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.0001009/0.6774, allocations: 109 kB / 0.4899 GB, free: 13.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.6774, allocations: 7.906 kB / 0.4899 GB, free: 13.63 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.966e-05/0.6775, allocations: 16.62 kB / 0.4899 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.6775, allocations: 0 / 0.4899 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.6775, allocations: 3.984 kB / 0.4899 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.6775, allocations: 0 / 0.4899 GB, free: 13.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/0.6781, allocations: 366.4 kB / 0.4903 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6781, allocations: 0 / 0.4903 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.6783, allocations: 11.98 kB / 0.4903 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.6783, allocations: 4 kB / 0.4903 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.6783, allocations: 4 kB / 0.4903 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.6783, allocations: 0 / 0.4903 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.6784, allocations: 3.953 kB / 0.4903 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003275/0.6787, allocations: 199.4 kB / 0.4905 GB, free: 12.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.55e-05/0.6788, allocations: 89.03 kB / 0.4906 GB, free: 12.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.6788, allocations: 4 kB / 0.4906 GB, free: 12.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.6791, allocations: 19.98 kB / 0.4906 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.6791, allocations: 15.97 kB / 0.4906 GB, free: 12.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.6792, allocations: 4.016 kB / 0.4906 GB, free: 12.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000114/0.6793, allocations: 117.9 kB / 0.4907 GB, free: 12.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6793, allocations: 0 / 0.4907 GB, free: 12.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003812/0.6797, allocations: 20 kB / 0.4908 GB, free: 12.68 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 (change.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.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.0006843/0.6804, allocations: 0.738 MB / 0.4915 GB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001953/0.6806, allocations: 52 kB / 0.4915 GB, free: 11.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.6806, allocations: 0 / 0.4915 GB, free: 11.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.408e-05/0.6807, allocations: 31.94 kB / 0.4916 GB, free: 11.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.6811, allocations: 17.7 kB / 0.4916 GB, free: 11.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006906/0.6818, allocations: 210.7 kB / 0.4918 GB, free: 11.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.6821, allocations: 0.7083 MB / 0.4925 GB, free: 10.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.563e-05/0.6822, allocations: 23.44 kB / 0.4925 GB, free: 10.81 MB / 426.7 MB Notification: Performance of SimCode: time 3.066e-06/0.6823, allocations: 192 / 0.4925 GB, free: 10.81 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.423/3.105, allocations: 1.736 MB / 0.4942 GB, free: 9.074 MB / 426.7 MB