Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.229e-05, allocations: 4 kB / 292.7 MB, free: 8.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09033, allocations: 50.42 MB / 343.1 MB, free: 5.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4497, allocations: 83.19 MB / 426.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001903/0.45, allocations: 74.33 kB / 426.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06803/0.518, allocations: 15.78 MB / 442.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.212e-06/0.5181, allocations: 0 / 442.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.5182, allocations: 20 kB / 442.1 MB, free: 13.59 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002942/0.5212, allocations: 1.115 MB / 443.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.5212, allocations: 12.02 kB / 443.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/0.5216, allocations: 118.7 kB / 443.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.5228, allocations: 0.5516 MB / 443.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.912e-05/0.5229, allocations: 65.7 kB / 444 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.5231, allocations: 91 kB / 444.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001941/0.525, allocations: 0.7864 MB / 444.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.5251, allocations: 0 / 444.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.5252, allocations: 36.5 kB / 444.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.599e-05/0.5252, allocations: 24 kB / 444.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.5272, allocations: 0.761 MB / 445.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007587/0.5348, allocations: 3.301 MB / 449 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.5362, allocations: 0.6197 MB / 449.6 MB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007887/0.537, allocations: 395.6 kB / 450 MB, free: 7.645 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.171e-05/0.5371, allocations: 16.53 kB / 450 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.5371, allocations: 47.12 kB / 450.1 MB, free: 7.574 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 3.84e-06/0.5372, allocations: 3.938 kB / 450.1 MB, free: 7.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.004912/0.5421, allocations: 1.868 MB / 451.9 MB, free: 5.645 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.5422, allocations: 64.12 kB / 452 MB, free: 5.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009596/0.5431, allocations: 0.5191 MB / 452.5 MB, free: 5.047 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.276e-05/0.5432, allocations: 41.7 kB / 452.6 MB, free: 5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004094/0.5437, allocations: 443.2 kB / 453 MB, free: 4.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.544, allocations: 268.2 kB / 453.2 MB, free: 4.293 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.199e-05/0.544, allocations: 16 kB / 453.3 MB, free: 4.277 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002493/0.5443, allocations: 386.7 kB / 453.6 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007645/0.5451, allocations: 294 kB / 453.9 MB, free: 3.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008895/0.546, allocations: 418.5 kB / 454.3 MB, free: 3.148 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009288/0.5469, allocations: 346 kB / 454.7 MB, free: 2.812 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.767e-06/0.547, allocations: 0 / 454.7 MB, free: 2.812 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002766/0.5497, allocations: 1.027 MB / 455.7 MB, free: 1.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.5498, allocations: 4 kB / 455.7 MB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.5498, allocations: 7.938 kB / 455.7 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007451/0.5506, allocations: 188.7 kB / 455.9 MB, free: 1.574 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001175/0.5518, allocations: 199.8 kB / 456.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.5567, allocations: 2.631 MB / 458.7 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009514/0.5577, allocations: 36.05 kB / 458.8 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.5578, allocations: 35.98 kB / 458.8 MB, free: 14.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002698/0.5581, allocations: 144.9 kB / 458.9 MB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.5583, allocations: 83.02 kB / 459 MB, free: 14.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002702/0.5586, allocations: 99.25 kB / 459.1 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.5586, allocations: 8 kB / 459.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/0.5587, allocations: 4 kB / 459.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.108e-05/0.5587, allocations: 3.984 kB / 459.1 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.5603, allocations: 0.8809 MB / 460 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.741e-06/0.5603, allocations: 4 kB / 460 MB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.5613, allocations: 159.8 kB / 460.2 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007117/0.5621, allocations: 184.6 kB / 460.4 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.614e-05/0.5622, allocations: 23.98 kB / 460.4 MB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004839/0.567, allocations: 2.616 MB / 463 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.567, allocations: 0 / 463 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003237/0.5703, allocations: 1.33 MB / 464.3 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.5706, allocations: 160.1 kB / 464.5 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.5707, allocations: 16 kB / 464.5 MB, free: 8.602 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007822/0.5715, allocations: 63.95 kB / 464.6 MB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.5717, allocations: 52.7 kB / 464.6 MB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.693e-05/0.5718, allocations: 23.98 kB / 464.6 MB, free: 8.465 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007267/0.5726, allocations: 415.4 kB / 465 MB, free: 8.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-07/0.5726, allocations: 0 / 465 MB, free: 8.062 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001109/0.5737, allocations: 255.8 kB / 465.3 MB, free: 7.812 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,72.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000299/0.574, allocations: 147.9 kB / 465.4 MB, free: 7.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002434/0.5765, allocations: 0.9282 MB / 466.4 MB, free: 6.723 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.157e-06/0.5765, allocations: 4 kB / 466.4 MB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.578, allocations: 0.5868 MB / 466.9 MB, free: 6.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.5788, allocations: 126.9 kB / 467.1 MB, free: 6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003665/0.5825, allocations: 1.652 MB / 468.7 MB, free: 4.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008196/0.5834, allocations: 1.001 MB / 469.7 MB, free: 3.293 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000567/0.5839, allocations: 93.47 kB / 469.8 MB, free: 3.199 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.5842, allocations: 51.42 kB / 469.9 MB, free: 3.148 MB / 378.7 MB Notification: Performance of SimCode: time 1.397e-06/0.5842, allocations: 0 / 469.9 MB, free: 3.148 MB / 378.7 MB Notification: Performance of Templates: time 0.02779/0.612, allocations: 10.02 MB / 479.9 MB, free: 9.219 MB / 394.7 MB