Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadModel(ModelicaTest): time 2.244/2.244, allocations: 270 MB / 283.6 MB, free: 1.809 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.071e-05, allocations: 4 kB / 348.4 MB, free: 2.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3186, allocations: 61.88 MB / 410.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.4482, allocations: 85.83 MB / 496.1 MB, free: 4.762 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001921/0.4484, allocations: 55.98 kB / 496.2 MB, free: 4.707 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003347/0.4518, allocations: 0.9977 MB / 497.1 MB, free: 3.703 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.825e-06/0.4518, allocations: 3.938 kB / 497.2 MB, free: 3.699 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.4518, allocations: 4 kB / 497.2 MB, free: 3.695 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.0003761/0.4522, allocations: 330.4 kB / 497.5 MB, free: 3.328 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.4522, allocations: 12.03 kB / 497.5 MB, free: 3.316 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.357e-05/0.4523, allocations: 3.938 kB / 497.5 MB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002054/0.4525, allocations: 183 kB / 497.7 MB, free: 3.094 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.4525, allocations: 3.984 kB / 497.7 MB, free: 3.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.423e-05/0.4526, allocations: 7.984 kB / 497.7 MB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.4527, allocations: 49.66 kB / 497.7 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.671e-06/0.4527, allocations: 0 / 497.7 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.4528, allocations: 0 / 497.7 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.453e-06/0.4528, allocations: 4.047 kB / 497.7 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.322e-05/0.4528, allocations: 12 kB / 497.7 MB, free: 3.016 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005773/0.4534, allocations: 296.7 kB / 498 MB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.904e-05/0.4535, allocations: 26.58 kB / 498.1 MB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.282e-05/0.4535, allocations: 4.859 kB / 498.1 MB, free: 2.633 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.083e-05/0.4536, allocations: 0 / 498.1 MB, free: 2.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001095/0.4537, allocations: 59.41 kB / 498.1 MB, free: 2.562 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.231e-06/0.4537, allocations: 0 / 498.1 MB, free: 2.562 MB / 410.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001322/0.4538, allocations: 45.69 kB / 498.2 MB, free: 2.512 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.4539, allocations: 51.41 kB / 498.2 MB, free: 2.449 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.454, allocations: 109.1 kB / 498.3 MB, free: 2.332 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.4541, allocations: 29.7 kB / 498.4 MB, free: 2.297 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.4541, allocations: 88.14 kB / 498.4 MB, free: 2.207 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.143e-05/0.4542, allocations: 11.91 kB / 498.5 MB, free: 2.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-06/0.4542, allocations: 0 / 498.5 MB, free: 2.195 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4543, allocations: 330.8 kB / 498.8 MB, free: 1.863 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.48e-05/0.4544, allocations: 4 kB / 498.8 MB, free: 1.859 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.719e-05/0.4544, allocations: 21.66 kB / 498.8 MB, free: 1.832 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.721e-05/0.4545, allocations: 4 kB / 498.8 MB, free: 1.828 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.34e-06/0.4545, allocations: 384 / 498.8 MB, free: 1.828 MB / 410.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001162/0.4546, allocations: 53.59 kB / 498.9 MB, free: 1.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.4546, allocations: 4 kB / 498.9 MB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.971e-06/0.4547, allocations: 0 / 498.9 MB, free: 1.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.4547, allocations: 7.969 kB / 498.9 MB, free: 1.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.662e-05/0.4547, allocations: 4 kB / 498.9 MB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.4548, allocations: 7.938 kB / 498.9 MB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.442e-05/0.4548, allocations: 4 kB / 498.9 MB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.125e-06/0.4548, allocations: 3.984 kB / 498.9 MB, free: 1.738 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 9.017e-05/0.4549, allocations: 108.9 kB / 499 MB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.455, allocations: 0 / 499 MB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.232e-05/0.455, allocations: 12.22 kB / 499 MB, free: 1.602 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.48e-06/0.455, allocations: 4 kB / 499 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.355e-06/0.455, allocations: 7.984 kB / 499 MB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.238e-06/0.455, allocations: 0 / 499 MB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003936/0.4554, allocations: 302.5 kB / 499.3 MB, free: 1.238 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.359e-06/0.4555, allocations: 0 / 499.3 MB, free: 1.238 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.663e-05/0.4555, allocations: 11.88 kB / 499.3 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4555, allocations: 0 / 499.3 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.667e-06/0.4556, allocations: 0 / 499.3 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.145e-06/0.4556, allocations: 0 / 499.3 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4556, allocations: 0 / 499.3 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.4558, allocations: 151.5 kB / 499.5 MB, free: 1.062 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.4558, allocations: 89.03 kB / 499.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.4559, allocations: 0 / 499.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.161e-05/0.456, allocations: 0 / 499.6 MB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.499e-05/0.456, allocations: 4 kB / 499.6 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.264e-06/0.456, allocations: 0 / 499.6 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.614e-05/0.4561, allocations: 91.27 kB / 499.7 MB, free: 0.8633 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.99e-07/0.4561, allocations: 4.062 kB / 499.7 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003103/0.4564, allocations: 12 kB / 499.7 MB, free: 0.8477 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.0001273/0.4566, allocations: 103.2 kB / 499.8 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.496e-05/0.4567, allocations: 16 kB / 499.8 MB, free: 0.7227 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.522e-06/0.4567, allocations: 0 / 499.8 MB, free: 0.7227 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.604e-05/0.4567, allocations: 4 kB / 499.8 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.457, allocations: 20.16 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.0002554/0.4572, allocations: 94.94 kB / 499.9 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.4576, allocations: 0.6887 MB / 0.4889 GB, free: 15.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.912e-05/0.4577, allocations: 0 / 0.4889 GB, free: 15.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.092e-05/0.4577, allocations: 15.38 kB / 0.4889 GB, free: 15.86 MB / 426.7 MB Notification: Performance of SimCode: time 3.51e-06/0.4577, allocations: 0 / 0.4889 GB, free: 15.86 MB / 426.7 MB Notification: Performance of Templates: time 0.002958/0.4607, allocations: 467.3 kB / 0.4893 GB, free: 15.41 MB / 426.7 MB