Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadModel(Modelica): time 2.105/2.105, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.406e-05/5.406e-05, allocations: 8 kB / 292.2 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1291/0.1292, allocations: 50.41 MB / 342.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.394/0.5233, allocations: 81.85 MB / 424.4 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.5236, allocations: 78.7 kB / 424.5 MB, free: 12.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02528/0.5489, allocations: 6.217 MB / 430.7 MB, free: 6.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5489, allocations: 0 / 430.7 MB, free: 6.996 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.546e-05/0.5489, allocations: 8 kB / 430.7 MB, free: 6.988 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001251/0.5502, allocations: 0.597 MB / 431.3 MB, free: 6.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.5503, allocations: 8.031 kB / 431.3 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.5504, allocations: 35.53 kB / 431.4 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004855/0.5509, allocations: 282.6 kB / 431.6 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.5509, allocations: 23.38 kB / 431.7 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.536e-05/0.551, allocations: 23.25 kB / 431.7 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006159/0.5516, allocations: 266.2 kB / 431.9 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.5517, allocations: 7.953 kB / 432 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.875e-05/0.5518, allocations: 6.062 kB / 432 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.5518, allocations: 8 kB / 432 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.5523, allocations: 180.9 kB / 432.1 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002622/0.5549, allocations: 1.218 MB / 433.4 MB, free: 4.574 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003587/0.5553, allocations: 101.7 kB / 433.5 MB, free: 4.496 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.5555, allocations: 47.23 kB / 433.5 MB, free: 4.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.5555, allocations: 7.984 kB / 433.5 MB, free: 4.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002671/0.5558, allocations: 118 kB / 433.6 MB, free: 4.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.062e-06/0.5558, allocations: 0 / 433.6 MB, free: 4.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005299/0.5564, allocations: 149.8 kB / 433.8 MB, free: 4.215 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.5564, allocations: 81.05 kB / 433.9 MB, free: 4.117 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004785/0.5569, allocations: 290.7 kB / 434.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.557, allocations: 28.95 kB / 434.2 MB, free: 3.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.5572, allocations: 211.5 kB / 434.4 MB, free: 3.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.5572, allocations: 31.19 kB / 434.4 MB, free: 3.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.961e-05/0.5573, allocations: 10.25 kB / 434.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.5575, allocations: 336 kB / 434.7 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/0.5577, allocations: 56.11 kB / 434.8 MB, free: 3.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.558, allocations: 162.7 kB / 435 MB, free: 3.105 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.5582, allocations: 105.9 kB / 435.1 MB, free: 3.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.253e-06/0.5582, allocations: 0 / 435.1 MB, free: 3.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007632/0.559, allocations: 294.5 kB / 435.3 MB, free: 2.766 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.704e-05/0.5591, allocations: 32.27 kB / 435.4 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.412e-06/0.5591, allocations: 4 kB / 435.4 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002079/0.5593, allocations: 39.89 kB / 435.4 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003856/0.5597, allocations: 75.3 kB / 435.5 MB, free: 2.617 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001427/0.5611, allocations: 1.289 MB / 436.8 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.5617, allocations: 63.45 kB / 436.8 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.368e-05/0.5617, allocations: 15.12 kB / 436.9 MB, free: 1.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.5619, allocations: 123.5 kB / 437 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.19e-05/0.562, allocations: 31.69 kB / 437 MB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.523e-05/0.5621, allocations: 28.11 kB / 437 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.5621, allocations: 4 kB / 437 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.635e-06/0.5621, allocations: 0 / 437 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.926e-06/0.5621, allocations: 3.953 kB / 437 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006405/0.5628, allocations: 447.3 kB / 437.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.604e-06/0.5628, allocations: 0 / 437.5 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.563, allocations: 40 kB / 437.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000158/0.5632, allocations: 28.77 kB / 437.6 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.5633, allocations: 7.656 kB / 437.6 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001374/0.5646, allocations: 1.307 MB / 438.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.311e-06/0.5647, allocations: 3.984 kB / 438.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.5651, allocations: 196.3 kB / 439.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.5653, allocations: 104.6 kB / 439.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.5653, allocations: 4 kB / 439.2 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003139/0.5657, allocations: 35.84 kB / 439.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.415e-05/0.5658, allocations: 19.22 kB / 439.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.5658, allocations: 7.938 kB / 439.2 MB, free: 14.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003447/0.5662, allocations: 223.1 kB / 439.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.5e-07/0.5662, allocations: 0 / 439.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004976/0.5667, allocations: 74.78 kB / 439.5 MB, free: 14.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001774/0.5669, allocations: 103.2 kB / 439.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.5676, allocations: 308.2 kB / 439.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.234e-06/0.5676, allocations: 4 kB / 439.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.568, allocations: 158.8 kB / 440.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.5683, allocations: 46.25 kB / 440.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007928/0.5691, allocations: 306.6 kB / 440.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.5696, allocations: 0.7599 MB / 441.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002112/0.5699, allocations: 30.97 kB / 441.2 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.94e-05/0.57, allocations: 27.42 kB / 441.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of SimCode: time 1.978e-06/0.57, allocations: 0 / 441.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of Templates: time 0.009697/0.5797, allocations: 2.865 MB / 444.1 MB, free: 9.973 MB / 362.7 MB