Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadModel(ModelicaTest): time 2.273/2.273, allocations: 270 MB / 282.7 MB, free: 1.922 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.788e-05/2.797e-05, allocations: 4 kB / 347 MB, free: 3.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3193, allocations: 61.88 MB / 408.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.4497, allocations: 85.83 MB / 494.7 MB, free: 4.879 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.4499, allocations: 63.97 kB / 494.7 MB, free: 4.816 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003335/0.4533, allocations: 0.9894 MB / 495.7 MB, free: 3.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.506e-06/0.4533, allocations: 0 / 495.7 MB, free: 3.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.423e-05/0.4534, allocations: 7.984 kB / 495.7 MB, free: 3.812 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.00037/0.4537, allocations: 330.4 kB / 496 MB, free: 3.445 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.4538, allocations: 15.97 kB / 496.1 MB, free: 3.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.4538, allocations: 7.984 kB / 496.1 MB, free: 3.422 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002065/0.4541, allocations: 171 kB / 496.2 MB, free: 3.215 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.747e-05/0.4541, allocations: 4 kB / 496.2 MB, free: 3.211 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.4541, allocations: 12.03 kB / 496.3 MB, free: 3.203 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.4543, allocations: 49.66 kB / 496.3 MB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.209e-06/0.4543, allocations: 0 / 496.3 MB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.4543, allocations: 0 / 496.3 MB, free: 3.148 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.411e-06/0.4543, allocations: 4 kB / 496.3 MB, free: 3.145 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.552e-05/0.4544, allocations: 19.98 kB / 496.3 MB, free: 3.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005845/0.455, allocations: 288.7 kB / 496.6 MB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.435e-05/0.4551, allocations: 26.56 kB / 496.6 MB, free: 2.758 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.964e-05/0.4551, allocations: 12.86 kB / 496.6 MB, free: 2.742 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.999e-06/0.4551, allocations: 3.938 kB / 496.6 MB, free: 2.738 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.4552, allocations: 51.42 kB / 496.7 MB, free: 2.676 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.416e-06/0.4552, allocations: 0 / 496.7 MB, free: 2.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001351/0.4554, allocations: 41.69 kB / 496.7 MB, free: 2.629 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.4554, allocations: 51.41 kB / 496.8 MB, free: 2.566 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.4556, allocations: 113.1 kB / 496.9 MB, free: 2.445 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.4556, allocations: 25.7 kB / 496.9 MB, free: 2.414 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.878e-05/0.4557, allocations: 162.6 kB / 497.1 MB, free: 2.254 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.4557, allocations: 7.844 kB / 497.1 MB, free: 2.246 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.275e-06/0.4558, allocations: 0 / 497.1 MB, free: 2.246 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4559, allocations: 318.8 kB / 497.4 MB, free: 1.926 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.514e-05/0.456, allocations: 4 kB / 497.4 MB, free: 1.922 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.14e-05/0.456, allocations: 29.64 kB / 497.4 MB, free: 1.887 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.866e-05/0.4561, allocations: 4 kB / 497.4 MB, free: 1.883 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.276e-06/0.4561, allocations: 4 kB / 497.4 MB, free: 1.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001078/0.4562, allocations: 45.69 kB / 497.5 MB, free: 1.828 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.4562, allocations: 4 kB / 497.5 MB, free: 1.824 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.233e-06/0.4562, allocations: 4 kB / 497.5 MB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.4563, allocations: 0 / 497.5 MB, free: 1.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.083e-05/0.4563, allocations: 4 kB / 497.5 MB, free: 1.816 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.911e-06/0.4563, allocations: 3.938 kB / 497.5 MB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.031e-05/0.4564, allocations: 8 kB / 497.5 MB, free: 1.805 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.073e-06/0.4564, allocations: 4 kB / 497.5 MB, free: 1.801 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.456e-05/0.4565, allocations: 109 kB / 497.6 MB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.4565, allocations: 7.906 kB / 497.6 MB, free: 1.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.4566, allocations: 12.02 kB / 497.6 MB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.654e-06/0.4566, allocations: 192 / 497.6 MB, free: 1.656 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.206e-06/0.4566, allocations: 3.938 kB / 497.6 MB, free: 1.652 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.46e-06/0.4566, allocations: 7.984 kB / 497.7 MB, free: 1.645 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000413/0.457, allocations: 294.6 kB / 497.9 MB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.541e-06/0.4571, allocations: 384 / 497.9 MB, free: 1.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.656e-05/0.4571, allocations: 11.94 kB / 498 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.403e-06/0.4571, allocations: 0 / 498 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.144e-06/0.4572, allocations: 0 / 498 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.203e-06/0.4572, allocations: 3.938 kB / 498 MB, free: 1.285 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.71e-06/0.4572, allocations: 0 / 498 MB, free: 1.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.4574, allocations: 155.4 kB / 498.1 MB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.4575, allocations: 77.11 kB / 498.2 MB, free: 1.023 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.4575, allocations: 0 / 498.2 MB, free: 1.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-05/0.4576, allocations: 12.08 kB / 498.2 MB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.834e-05/0.4576, allocations: 0 / 498.2 MB, free: 1.012 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.561e-06/0.4576, allocations: 0 / 498.2 MB, free: 1.012 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.841e-05/0.4577, allocations: 91.28 kB / 498.3 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.35e-07/0.4577, allocations: 0 / 498.3 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003112/0.4581, allocations: 8 kB / 498.3 MB, free: 0.9141 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.0001476/0.4582, allocations: 107.2 kB / 498.4 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.932e-05/0.4583, allocations: 16 kB / 498.4 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4583, allocations: 4.062 kB / 498.4 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.043e-05/0.4584, allocations: 8 kB / 498.4 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002455/0.4586, allocations: 19.03 kB / 498.4 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003148/0.459, allocations: 116.6 kB / 498.6 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.4594, allocations: 0.6887 MB / 499.2 MB, free: 15.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.4594, allocations: 15.38 kB / 499.3 MB, free: 15.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.57e-06/0.4594, allocations: 0 / 499.3 MB, free: 15.89 MB / 426.7 MB Notification: Performance of Templates: time 0.002438/0.4619, allocations: 0.7076 MB / 500 MB, free: 15.18 MB / 426.7 MB