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_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadModel(Modelica): time 2.12/2.12, allocations: 224.7 MB / 241.1 MB, free: 1.645 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.578e-05/2.59e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1172, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008048/0.1253, allocations: 4.692 MB / 349.7 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004038/0.1294, allocations: 1.358 MB / 351 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.1306, allocations: 24 kB / 351 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004665/0.1311, allocations: 115 kB / 351.2 MB, free: 2.719 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001469/0.1325, allocations: 314.9 kB / 351.5 MB, free: 2.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.1339, allocations: 255.5 kB / 351.7 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002028/0.1359, allocations: 0.6799 MB / 352.4 MB, free: 1.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005671/0.1365, allocations: 217.9 kB / 352.6 MB, free: 1.262 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007714/0.1373, allocations: 351.2 kB / 353 MB, free: 0.918 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008638/0.1382, allocations: 430.5 kB / 353.4 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.1386, allocations: 79.91 kB / 353.5 MB, free: 428 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002413/0.1388, allocations: 48 kB / 353.5 MB, free: 380 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002167/0.1391, allocations: 179.2 kB / 353.7 MB, free: 200 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002992/0.1394, allocations: 100 kB / 353.8 MB, free: 100 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001796/0.1412, allocations: 1.138 MB / 354.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1412, allocations: 0 / 354.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1413, allocations: 0 / 354.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.176e-05/0.1413, allocations: 4 kB / 354.9 MB, free: 14.95 MB / 298.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.004159/0.1455, allocations: 1.142 MB / 356.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.93e-05/0.1456, allocations: 12.03 kB / 356.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004822/0.1461, allocations: 118.6 kB / 356.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.1474, allocations: 0.518 MB / 356.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.806e-05/0.1475, allocations: 66 kB / 356.8 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000265/0.1478, allocations: 91.91 kB / 356.9 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/0.1508, allocations: 0.8506 MB / 357.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.199e-05/0.1509, allocations: 0 / 357.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.151, allocations: 43.94 kB / 357.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.062e-05/0.1511, allocations: 23.95 kB / 357.8 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003233/0.1543, allocations: 0.8707 MB / 358.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01032/0.1647, allocations: 3.281 MB / 361.9 MB, free: 7.727 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002151/0.1669, allocations: 0.6874 MB / 362.6 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.1671, allocations: 8.562 kB / 362.6 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.707e-05/0.1671, allocations: 39.12 kB / 362.7 MB, free: 6.973 MB / 298.7 MB Notification: Performance of pre-optimization done (n=69): time 4.188e-06/0.1671, allocations: 0 / 362.7 MB, free: 6.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.00816/0.1753, allocations: 2.33 MB / 365 MB, free: 4.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.1754, allocations: 64.06 kB / 365 MB, free: 4.516 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.1766, allocations: 0.5345 MB / 365.6 MB, free: 3.973 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001982/0.1768, allocations: 41.7 kB / 365.6 MB, free: 3.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004248/0.1772, allocations: 465.7 kB / 366.1 MB, free: 3.465 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000379/0.1776, allocations: 264.2 kB / 366.3 MB, free: 3.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.803e-05/0.1777, allocations: 16 kB / 366.4 MB, free: 3.188 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1779, allocations: 350.8 kB / 366.7 MB, free: 2.836 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.1792, allocations: 329.9 kB / 367 MB, free: 2.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.1805, allocations: 476.6 kB / 367.5 MB, free: 2.004 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.182, allocations: 394.9 kB / 367.9 MB, free: 1.617 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.182, allocations: 4 kB / 367.9 MB, free: 1.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003833/0.1858, allocations: 1.087 MB / 369 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.1859, allocations: 8 kB / 369 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.186, allocations: 4 kB / 369 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009349/0.1869, allocations: 191.5 kB / 369.2 MB, free: 324 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00184/0.1888, allocations: 203.7 kB / 369.4 MB, free: 120 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006105/0.1949, allocations: 2.687 MB / 372 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.1964, allocations: 40 kB / 372.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/0.1966, allocations: 35.98 kB / 372.1 MB, free: 13.22 MB / 314.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.0007507/0.1974, allocations: 233.7 kB / 372.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003414/0.1977, allocations: 79.06 kB / 372.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003531/0.1981, allocations: 87.27 kB / 372.5 MB, free: 12.81 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.1981, allocations: 8 kB / 372.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-05/0.1982, allocations: 4 kB / 372.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.1982, allocations: 3.984 kB / 372.5 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/0.2005, allocations: 0.8846 MB / 373.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.2006, allocations: 0 / 373.4 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/0.2026, allocations: 151.8 kB / 373.6 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.2038, allocations: 191.2 kB / 373.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001915/0.204, allocations: 23.98 kB / 373.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008729/0.2128, allocations: 2.697 MB / 376.5 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2129, allocations: 3.938 kB / 376.5 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006661/0.2195, allocations: 1.459 MB / 377.9 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004243/0.22, allocations: 156.1 kB / 378.1 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/0.2204, allocations: 16 kB / 378.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/0.222, allocations: 63.95 kB / 378.2 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/0.2223, allocations: 52.58 kB / 378.2 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.2225, allocations: 27.98 kB / 378.2 MB, free: 6.863 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001177/0.2237, allocations: 423.1 kB / 378.6 MB, free: 6.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.2237, allocations: 0 / 378.6 MB, free: 6.457 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002099/0.2258, allocations: 236 kB / 378.9 MB, free: 6.227 MB / 314.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.0004645/0.2263, allocations: 139.2 kB / 379 MB, free: 6.078 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005418/0.2318, allocations: 1.065 MB / 380.1 MB, free: 5 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.2318, allocations: 0 / 380.1 MB, free: 5 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003304/0.2352, allocations: 0.6391 MB / 380.7 MB, free: 4.352 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.2368, allocations: 135 kB / 380.9 MB, free: 4.219 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008029/0.2448, allocations: 2.438 MB / 383.3 MB, free: 1.754 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.246, allocations: 1.005 MB / 384.3 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007146/0.2467, allocations: 63.41 kB / 384.4 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2467, allocations: 0 / 384.4 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of Templates: time 0.03993/0.2867, allocations: 14.35 MB / 398.7 MB, free: 2.332 MB / 330.7 MB