Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 102.9 kB / 16.5 MB, free: 6.645 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.001274/0.001274, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.915/1.915, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001242/0.001242, allocations: 55.92 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1451, allocations: 46.63 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.005284/0.1505, allocations: 2.764 MB / 328.7 MB, free: 2.094 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.1522, allocations: 0.7177 MB / 329.5 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1524, allocations: 4 kB / 329.5 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001915/0.1526, allocations: 27.77 kB / 329.5 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.1528, allocations: 75.39 kB / 329.6 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.1532, allocations: 79.92 kB / 329.6 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.1535, allocations: 326.6 kB / 330 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.1537, allocations: 73.14 kB / 330 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000178/0.1539, allocations: 123.4 kB / 330.1 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.1541, allocations: 143.3 kB / 330.3 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.1542, allocations: 20 kB / 330.3 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.703e-05/0.1542, allocations: 16 kB / 330.3 MB, free: 0.5 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.114e-05/0.1543, allocations: 55.7 kB / 330.4 MB, free: 456 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001554/0.1545, allocations: 131.3 kB / 330.5 MB, free: 324 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.1548, allocations: 311.2 kB / 330.8 MB, free: 12 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.1548, allocations: 3.938 kB / 330.8 MB, free: 8 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1549, allocations: 4 kB / 330.8 MB, free: 4 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1549, allocations: 0 / 330.8 MB, free: 4 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001495/0.1564, allocations: 0.6457 MB / 331.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.1564, allocations: 8.031 kB / 331.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.997e-05/0.1565, allocations: 28.66 kB / 331.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.1569, allocations: 279.4 kB / 331.8 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1569, allocations: 12.81 kB / 331.8 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.157, allocations: 20.38 kB / 331.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006794/0.1577, allocations: 251.5 kB / 332 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1577, allocations: 0 / 332 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.1577, allocations: 12 kB / 332.1 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.1578, allocations: 4 kB / 332.1 MB, free: 14.65 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007605/0.1585, allocations: 257.5 kB / 332.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.1604, allocations: 0.8619 MB / 333.2 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008227/0.1612, allocations: 226.5 kB / 333.4 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.1616, allocations: 96.78 kB / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.1616, allocations: 4 kB / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.1623, allocations: 177.8 kB / 333.7 MB, free: 12.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/0.1623, allocations: 0 / 333.7 MB, free: 12.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.002143/0.1645, allocations: 0.5891 MB / 334.3 MB, free: 12.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1646, allocations: 102.8 kB / 334.4 MB, free: 12.2 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.1649, allocations: 260.9 kB / 334.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.165, allocations: 33.7 kB / 334.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.1651, allocations: 171.9 kB / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.1652, allocations: 43.36 kB / 334.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1653, allocations: 45.7 kB / 334.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.1655, allocations: 330.8 kB / 335.2 MB, free: 11.3 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.1658, allocations: 108.7 kB / 335.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.1662, allocations: 155.5 kB / 335.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000626/0.1668, allocations: 258.6 kB / 335.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.1668, allocations: 0 / 335.7 MB, free: 10.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001132/0.168, allocations: 411.5 kB / 336.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.291e-05/0.1681, allocations: 33.7 kB / 336.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1681, allocations: 0 / 336.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005421/0.1686, allocations: 112.8 kB / 336.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.1688, allocations: 39.91 kB / 336.3 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/0.1712, allocations: 1.69 MB / 338 MB, free: 8.293 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.1716, allocations: 51.73 kB / 338.1 MB, free: 8.242 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.1716, allocations: 16.25 kB / 338.1 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003817/0.172, allocations: 176.1 kB / 338.2 MB, free: 8.051 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002842/0.1723, allocations: 143.6 kB / 338.4 MB, free: 7.883 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004926/0.1728, allocations: 243 kB / 338.6 MB, free: 7.621 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.1728, allocations: 0 / 338.6 MB, free: 7.621 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007372/0.1736, allocations: 339.6 kB / 339 MB, free: 7.273 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.1736, allocations: 29.7 kB / 339 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.1736, allocations: 4 kB / 339 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001264/0.1738, allocations: 40.83 kB / 339 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.1739, allocations: 43.91 kB / 339.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.1755, allocations: 1.534 MB / 340.6 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.1758, allocations: 47.91 kB / 340.7 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.1758, allocations: 11.98 kB / 340.7 MB, free: 5.422 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002046/0.176, allocations: 192.2 kB / 340.9 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.1761, allocations: 27.66 kB / 340.9 MB, free: 5.199 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.153e-05/0.1761, allocations: 25.83 kB / 340.9 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1762, allocations: 0 / 340.9 MB, free: 5.176 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1762, allocations: 4 kB / 340.9 MB, free: 5.172 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1762, allocations: 3.938 kB / 340.9 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.1765, allocations: 289.6 kB / 341.2 MB, free: 4.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1765, allocations: 4 kB / 341.2 MB, free: 4.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.1767, allocations: 27.97 kB / 341.2 MB, free: 4.805 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002462/0.1769, allocations: 64.73 kB / 341.3 MB, free: 4.738 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.177, allocations: 8 kB / 341.3 MB, free: 4.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001846/0.1788, allocations: 1.589 MB / 342.9 MB, free: 3.012 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1788, allocations: 3.938 kB / 342.9 MB, free: 3.008 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008945/0.1797, allocations: 325.7 kB / 343.2 MB, free: 2.668 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.1799, allocations: 100.8 kB / 343.3 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.927e-05/0.1799, allocations: 7.938 kB / 343.3 MB, free: 2.543 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.1801, allocations: 31.97 kB / 343.3 MB, free: 2.512 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1803, allocations: 20.16 kB / 343.4 MB, free: 2.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.915e-05/0.1803, allocations: 12 kB / 343.4 MB, free: 2.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.1805, allocations: 184.5 kB / 343.6 MB, free: 2.305 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1805, allocations: 0 / 343.6 MB, free: 2.305 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006292/0.1811, allocations: 123.8 kB / 343.7 MB, free: 2.184 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000178/0.1813, allocations: 107.2 kB / 343.8 MB, free: 2.066 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.1827, allocations: 0.6798 MB / 344.5 MB, free: 1.336 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1827, allocations: 4 kB / 344.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004541/0.1832, allocations: 238.5 kB / 344.7 MB, free: 1.086 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.1836, allocations: 44.8 kB / 344.7 MB, free: 1.043 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001169/0.1848, allocations: 0.5181 MB / 345.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.1852, allocations: 0.7483 MB / 346 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.1854, allocations: 30.27 kB / 346 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.1855, allocations: 15.44 kB / 346.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1855, allocations: 0 / 346.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of Templates: time 0.008519/0.194, allocations: 3.931 MB / 350 MB, free: 11.75 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)