Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001324, allocations: 110.5 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.00125, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 47.94 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1066, allocations: 46.63 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.00818/0.1149, allocations: 5.702 MB / 331.7 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004231/0.1191, allocations: 1.449 MB / 333.1 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.1204, allocations: 12 kB / 333.1 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007309/0.1212, allocations: 115.1 kB / 333.2 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00118/0.1224, allocations: 242 kB / 333.5 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.1234, allocations: 307.7 kB / 333.8 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.1252, allocations: 1.167 MB / 334.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006197/0.1258, allocations: 362.7 kB / 335.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007203/0.1266, allocations: 402.5 kB / 335.7 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005625/0.1271, allocations: 497.8 kB / 336.2 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1273, allocations: 68 kB / 336.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000252/0.1275, allocations: 99.97 kB / 336.3 MB, free: 10.44 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.1277, allocations: 199.2 kB / 336.5 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004309/0.1281, allocations: 489.6 kB / 337 MB, free: 9.762 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.1292, allocations: 1.351 MB / 338.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.1293, allocations: 0 / 338.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1293, allocations: 3.938 kB / 338.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.1293, allocations: 0 / 338.4 MB, free: 8.402 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002569/0.1319, allocations: 1.286 MB / 339.6 MB, free: 7.066 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1319, allocations: 8.031 kB / 339.7 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.1321, allocations: 107.7 kB / 339.8 MB, free: 6.953 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007398/0.1329, allocations: 0.5051 MB / 340.3 MB, free: 6.406 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/0.1329, allocations: 62.38 kB / 340.3 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.1331, allocations: 84.28 kB / 340.4 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.1347, allocations: 0.8808 MB / 341.3 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/0.1347, allocations: 0 / 341.3 MB, free: 5.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.482e-05/0.1348, allocations: 36 kB / 341.3 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.069e-05/0.1348, allocations: 20 kB / 341.3 MB, free: 5.312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.1363, allocations: 0.7886 MB / 342.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004998/0.1413, allocations: 3.049 MB / 345.2 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.1424, allocations: 0.6539 MB / 345.8 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007124/0.1432, allocations: 406.3 kB / 346.2 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.626e-05/0.1432, allocations: 16.55 kB / 346.2 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.708e-05/0.1433, allocations: 43.12 kB / 346.3 MB, free: 236 kB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 3.216e-06/0.1433, allocations: 4 kB / 346.3 MB, free: 232 kB / 286.1 MB Notification: Performance of matching and sorting (n=71): time 0.004612/0.1479, allocations: 2.185 MB / 348.5 MB, free: 13.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.148, allocations: 56.06 kB / 348.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006455/0.1486, allocations: 0.5029 MB / 349 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.666e-05/0.1487, allocations: 37.7 kB / 349.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.149, allocations: 403.3 kB / 349.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.1492, allocations: 248.4 kB / 349.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.1494, allocations: 138.6 kB / 349.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.1496, allocations: 378.8 kB / 350.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000614/0.1502, allocations: 309.9 kB / 350.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006781/0.1509, allocations: 421.1 kB / 350.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.1522, allocations: 0.7428 MB / 351.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.1523, allocations: 4 kB / 351.7 MB, free: 10.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002094/0.1544, allocations: 1.036 MB / 352.7 MB, free: 9.621 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.1544, allocations: 4 kB / 352.7 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.1544, allocations: 8.062 kB / 352.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006351/0.1551, allocations: 176.7 kB / 352.9 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008088/0.1559, allocations: 191.8 kB / 353.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003745/0.1596, allocations: 2.606 MB / 355.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006065/0.1603, allocations: 36.03 kB / 355.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.321e-05/0.1604, allocations: 36.06 kB / 355.8 MB, free: 6.438 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004112/0.1608, allocations: 217.8 kB / 356 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/0.1609, allocations: 75.14 kB / 356 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001903/0.1611, allocations: 86.19 kB / 356.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1612, allocations: 4 kB / 356.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/0.1612, allocations: 11.92 kB / 356.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1612, allocations: 0 / 356.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.1624, allocations: 0.8417 MB / 357 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.086e-06/0.1624, allocations: 4 kB / 357 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007377/0.1632, allocations: 143.8 kB / 357.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005759/0.1638, allocations: 182.9 kB / 357.3 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.162e-05/0.1638, allocations: 23.98 kB / 357.3 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003592/0.1674, allocations: 2.601 MB / 359.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1675, allocations: 0 / 359.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002646/0.1701, allocations: 1.388 MB / 361.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.1704, allocations: 140.2 kB / 361.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.1705, allocations: 16 kB / 361.5 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006249/0.1711, allocations: 51.95 kB / 361.5 MB, free: 436 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.1713, allocations: 56.56 kB / 361.6 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.425e-05/0.1714, allocations: 23.92 kB / 361.6 MB, free: 356 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000468/0.1718, allocations: 354.9 kB / 362 MB, free: 4 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1719, allocations: 0 / 362 MB, free: 4 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009409/0.1728, allocations: 224 kB / 362.2 MB, free: 15.78 MB / 318.1 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003054/0.1731, allocations: 139.6 kB / 362.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.1756, allocations: 0.9985 MB / 363.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1756, allocations: 3.938 kB / 363.3 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001489/0.1771, allocations: 0.6348 MB / 363.9 MB, free: 13.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009024/0.178, allocations: 122.2 kB / 364.1 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.1818, allocations: 2.259 MB / 366.3 MB, free: 11.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006399/0.1824, allocations: 0.9539 MB / 367.3 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004374/0.1829, allocations: 85.05 kB / 367.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001651/0.1831, allocations: 51.42 kB / 367.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1831, allocations: 0 / 367.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of Templates: time 0.01924/0.2023, allocations: 9.882 MB / 377.3 MB, free: 0.5664 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1)