Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadModel(ModelicaTest): time 2.586/2.586, allocations: 270 MB / 283.6 MB, free: 1.766 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.185e-05/4.196e-05, allocations: 4 kB / 348.4 MB, free: 2.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3446, allocations: 61.88 MB / 410.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4789, allocations: 85.84 MB / 496.1 MB, free: 4.766 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.4792, allocations: 55.98 kB / 496.2 MB, free: 4.711 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00349/0.4827, allocations: 0.9938 MB / 497.2 MB, free: 3.711 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.049e-06/0.4827, allocations: 0 / 497.2 MB, free: 3.711 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.4828, allocations: 4 kB / 497.2 MB, free: 3.707 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.0003948/0.4832, allocations: 342.4 kB / 497.5 MB, free: 3.328 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.4832, allocations: 8.031 kB / 497.5 MB, free: 3.32 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.909e-05/0.4833, allocations: 4 kB / 497.5 MB, free: 3.316 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.4835, allocations: 178.9 kB / 497.7 MB, free: 3.102 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.4836, allocations: 0 / 497.7 MB, free: 3.102 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.4836, allocations: 4 kB / 497.7 MB, free: 3.098 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.4837, allocations: 53.64 kB / 497.7 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.549e-06/0.4838, allocations: 0 / 497.7 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.301e-05/0.4838, allocations: 0 / 497.7 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.903e-06/0.4838, allocations: 224 / 497.7 MB, free: 3.039 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.34e-05/0.4839, allocations: 16 kB / 497.8 MB, free: 3.023 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006106/0.4845, allocations: 296.6 kB / 498.1 MB, free: 2.684 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.25e-05/0.4846, allocations: 26.58 kB / 498.1 MB, free: 2.648 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.297e-05/0.4846, allocations: 4.859 kB / 498.1 MB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.4846, allocations: 3.938 kB / 498.1 MB, free: 2.637 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/0.4847, allocations: 55.47 kB / 498.1 MB, free: 2.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.448e-06/0.4848, allocations: 0 / 498.1 MB, free: 2.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001431/0.4849, allocations: 49.62 kB / 498.2 MB, free: 2.516 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.485, allocations: 51.41 kB / 498.2 MB, free: 2.453 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.4851, allocations: 105.1 kB / 498.3 MB, free: 2.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.4851, allocations: 29.7 kB / 498.4 MB, free: 2.305 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.4852, allocations: 92.12 kB / 498.5 MB, free: 2.211 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.4852, allocations: 15.91 kB / 498.5 MB, free: 2.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.108e-06/0.4852, allocations: 0 / 498.5 MB, free: 2.195 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.4854, allocations: 322.8 kB / 498.8 MB, free: 1.871 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.445e-05/0.4855, allocations: 4 kB / 498.8 MB, free: 1.867 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.677e-05/0.4855, allocations: 25.73 kB / 498.8 MB, free: 1.836 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.715e-05/0.4855, allocations: 4 kB / 498.8 MB, free: 1.832 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4856, allocations: 0 / 498.8 MB, free: 1.832 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001313/0.4857, allocations: 61.53 kB / 498.9 MB, free: 1.766 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4857, allocations: 4 kB / 498.9 MB, free: 1.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.212e-06/0.4857, allocations: 0 / 498.9 MB, free: 1.762 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.4858, allocations: 4 kB / 498.9 MB, free: 1.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.068e-05/0.4858, allocations: 0 / 498.9 MB, free: 1.758 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.845e-06/0.4858, allocations: 4 kB / 498.9 MB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.6e-05/0.4859, allocations: 4 kB / 498.9 MB, free: 1.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.4859, allocations: 8 kB / 498.9 MB, free: 1.742 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.702e-05/0.486, allocations: 104.9 kB / 499 MB, free: 1.633 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.855e-05/0.486, allocations: 15.95 kB / 499 MB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.505e-05/0.4861, allocations: 8.031 kB / 499 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-06/0.4861, allocations: 0 / 499 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.213e-06/0.4861, allocations: 0 / 499 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.4861, allocations: 0 / 499 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.4865, allocations: 302.5 kB / 499.3 MB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.698e-06/0.4866, allocations: 384 / 499.3 MB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.858e-05/0.4866, allocations: 4 kB / 499.3 MB, free: 1.242 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.548e-06/0.4866, allocations: 3.938 kB / 499.3 MB, free: 1.238 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.4867, allocations: 4 kB / 499.3 MB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.372e-06/0.4867, allocations: 3.938 kB / 499.3 MB, free: 1.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.577e-06/0.4867, allocations: 0 / 499.3 MB, free: 1.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.4869, allocations: 151.4 kB / 499.5 MB, free: 1.066 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.487, allocations: 85.05 kB / 499.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.487, allocations: 0 / 499.6 MB, free: 0.9648 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.796e-05/0.4871, allocations: 3.984 kB / 499.6 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.4871, allocations: 4 kB / 499.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.851e-06/0.4872, allocations: 4.062 kB / 499.6 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.239e-05/0.4872, allocations: 87.28 kB / 499.7 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4873, allocations: 4 kB / 499.7 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003298/0.4876, allocations: 11.98 kB / 499.7 MB, free: 0.8516 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.0001402/0.4877, allocations: 99.25 kB / 499.8 MB, free: 0.7461 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.826e-05/0.4879, allocations: 19.94 kB / 499.8 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.699e-06/0.4879, allocations: 0 / 499.8 MB, free: 0.7266 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.672e-05/0.4879, allocations: 4 kB / 499.8 MB, free: 0.7227 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002527/0.4882, allocations: 24.42 kB / 499.8 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003043/0.4885, allocations: 86.88 kB / 499.9 MB, free: 0.5938 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.4889, allocations: 0.6903 MB / 0.4889 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 3.023e-05/0.489, allocations: 4 kB / 0.4889 GB, free: 15.88 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.404e-05/0.489, allocations: 7.438 kB / 0.4889 GB, free: 15.87 MB / 426.7 MB Notification: Performance of SimCode: time 1.48e-06/0.489, allocations: 0 / 0.4889 GB, free: 15.87 MB / 426.7 MB Notification: Performance of Templates: time 0.003875/0.4929, allocations: 469.5 kB / 0.4893 GB, free: 15.41 MB / 426.7 MB