Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadModel(ModelicaTest): time 2.298/2.298, allocations: 270 MB / 282.7 MB, free: 1.727 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.136e-05, allocations: 4 kB / 347 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3247, allocations: 61.88 MB / 408.8 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.4576, allocations: 87 MB / 495.8 MB, free: 3.609 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001784/0.4578, allocations: 59.98 kB / 495.9 MB, free: 3.551 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006131/0.464, allocations: 1.627 MB / 497.5 MB, free: 1.918 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.464, allocations: 4 kB / 497.5 MB, free: 1.914 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.4641, allocations: 0 / 497.5 MB, free: 1.914 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.0005078/0.4646, allocations: 378.2 kB / 497.9 MB, free: 1.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.4646, allocations: 8.031 kB / 497.9 MB, free: 1.492 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.354e-05/0.4647, allocations: 11.91 kB / 497.9 MB, free: 1.48 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.4649, allocations: 187 kB / 498.1 MB, free: 1.262 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.185e-05/0.465, allocations: 8 kB / 498.1 MB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.465, allocations: 11.98 kB / 498.1 MB, free: 1.242 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.4652, allocations: 75.19 kB / 498.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.894e-06/0.4652, allocations: 0 / 498.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.4652, allocations: 0 / 498.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.533e-06/0.4653, allocations: 0 / 498.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.4654, allocations: 36 kB / 498.2 MB, free: 1.129 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.4661, allocations: 360.4 kB / 498.6 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.4662, allocations: 46.61 kB / 498.6 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.4e-05/0.4663, allocations: 20.95 kB / 498.6 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.093e-06/0.4663, allocations: 0 / 498.6 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.4665, allocations: 67.41 kB / 498.7 MB, free: 0.5703 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 2.505e-06/0.4665, allocations: 0 / 498.7 MB, free: 0.5703 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002064/0.4667, allocations: 65.59 kB / 498.8 MB, free: 0.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.4668, allocations: 59.36 kB / 498.8 MB, free: 440 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.4669, allocations: 130.6 kB / 499 MB, free: 300 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.748e-05/0.467, allocations: 33.7 kB / 499 MB, free: 260 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.4671, allocations: 158.5 kB / 499.1 MB, free: 100 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.473e-05/0.4671, allocations: 19.8 kB / 499.2 MB, free: 80 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-06/0.4671, allocations: 4 kB / 499.2 MB, free: 76 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.4673, allocations: 322.8 kB / 499.5 MB, free: 15.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.435e-05/0.4674, allocations: 19.94 kB / 499.5 MB, free: 15.73 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.453e-05/0.4675, allocations: 34.58 kB / 499.5 MB, free: 15.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.9e-05/0.4676, allocations: 12 kB / 499.5 MB, free: 15.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.701e-06/0.4676, allocations: 0 / 499.5 MB, free: 15.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001936/0.4678, allocations: 93.58 kB / 499.6 MB, free: 15.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4679, allocations: 7.984 kB / 499.6 MB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.318e-06/0.4679, allocations: 4 kB / 499.7 MB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.4679, allocations: 0 / 499.7 MB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.205e-05/0.468, allocations: 8 kB / 499.7 MB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.804e-06/0.468, allocations: 0 / 499.7 MB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.65e-05/0.4681, allocations: 20.02 kB / 499.7 MB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.4681, allocations: 4 kB / 499.7 MB, free: 15.54 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 9.92e-05/0.4682, allocations: 126.8 kB / 499.8 MB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.4683, allocations: 7.906 kB / 499.8 MB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.4683, allocations: 8.625 kB / 499.8 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.734e-06/0.4684, allocations: 4 kB / 499.8 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.4684, allocations: 0 / 499.8 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.165e-06/0.4684, allocations: 0 / 499.8 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004807/0.4689, allocations: 350.4 kB / 0.4884 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.917e-06/0.4689, allocations: 0 / 0.4884 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.903e-05/0.469, allocations: 15.92 kB / 0.4885 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.695e-06/0.469, allocations: 0 / 0.4885 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.469, allocations: 0 / 0.4885 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.289e-06/0.469, allocations: 0 / 0.4885 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.858e-06/0.469, allocations: 3.953 kB / 0.4885 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.4693, allocations: 187.4 kB / 0.4886 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.813e-05/0.4694, allocations: 89.03 kB / 0.4887 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.322e-05/0.4694, allocations: 0 / 0.4887 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.4696, allocations: 8.062 kB / 0.4887 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.705e-05/0.4696, allocations: 7.984 kB / 0.4887 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.4697, allocations: 11.95 kB / 0.4888 GB, free: 14.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001006/0.4698, allocations: 103.3 kB / 0.4889 GB, free: 14.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.54e-07/0.4698, allocations: 0 / 0.4889 GB, free: 14.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003207/0.4701, allocations: 12 kB / 0.4889 GB, free: 14.52 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.000138/0.4703, allocations: 107.2 kB / 0.489 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.4704, allocations: 40 kB / 0.489 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.44e-06/0.4705, allocations: 4.188 kB / 0.489 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.818e-05/0.4705, allocations: 19.94 kB / 0.489 GB, free: 14.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.4708, allocations: 19.92 kB / 0.489 GB, free: 14.33 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005267/0.4714, allocations: 180.9 kB / 0.4892 GB, free: 14.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.4718, allocations: 0.7045 MB / 0.4899 GB, free: 13.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.4718, allocations: 11.44 kB / 0.4899 GB, free: 13.38 MB / 426.7 MB Notification: Performance of SimCode: time 1.325e-06/0.4718, allocations: 0 / 0.4899 GB, free: 13.38 MB / 426.7 MB Notification: Performance of Templates: time 0.003055/0.4749, allocations: 1.116 MB / 0.491 GB, free: 12.26 MB / 426.7 MB