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.0008532/0.0008537, allocations: 88.56 kB / 16.65 MB, free: 6.535 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.0009625/0.0009626, allocations: 173.5 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0004603/0.0004603, allocations: 12.55 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1208, allocations: 47.59 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.00383/0.1247, allocations: 2.39 MB / 330.7 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.1263, allocations: 0.7022 MB / 331.4 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.1265, allocations: 7.938 kB / 331.4 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.1267, allocations: 27.77 kB / 331.5 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002508/0.1269, allocations: 79.44 kB / 331.5 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.1272, allocations: 87.78 kB / 331.6 MB, free: 436 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004049/0.1277, allocations: 334.6 kB / 332 MB, free: 100 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.1279, allocations: 69.12 kB / 332 MB, free: 36 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.1281, allocations: 111.6 kB / 332.1 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.1283, allocations: 131.3 kB / 332.3 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.1284, allocations: 16 kB / 332.3 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.262e-05/0.1284, allocations: 16 kB / 332.3 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.819e-05/0.1285, allocations: 59.67 kB / 332.3 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.1287, allocations: 157 kB / 332.5 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003406/0.129, allocations: 299 kB / 332.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.129, allocations: 0 / 332.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.129, allocations: 0 / 332.8 MB, free: 15.25 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1291, allocations: 0 / 332.8 MB, free: 15.25 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001352/0.1304, allocations: 0.6108 MB / 333.4 MB, free: 14.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.1305, allocations: 8.031 kB / 333.4 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.694e-05/0.1306, allocations: 36.56 kB / 333.4 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.131, allocations: 271.6 kB / 333.7 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.131, allocations: 20.8 kB / 333.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.1311, allocations: 20.38 kB / 333.8 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006261/0.1317, allocations: 267.5 kB / 334 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1317, allocations: 0 / 334 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.827e-05/0.1318, allocations: 7.984 kB / 334 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.577e-06/0.1318, allocations: 8 kB / 334 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008011/0.1326, allocations: 289.6 kB / 334.3 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.1342, allocations: 0.8853 MB / 335.2 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008062/0.135, allocations: 270.5 kB / 335.5 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.1353, allocations: 112.8 kB / 335.6 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.171e-05/0.1354, allocations: 4 kB / 335.6 MB, free: 12.29 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006489/0.136, allocations: 189.8 kB / 335.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.903e-06/0.1361, allocations: 4 kB / 335.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.00218/0.1382, allocations: 0.7059 MB / 336.5 MB, free: 11.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.141e-05/0.1384, allocations: 110.8 kB / 336.6 MB, free: 11.21 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002986/0.1387, allocations: 256.9 kB / 336.8 MB, free: 10.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.225e-05/0.1387, allocations: 29.7 kB / 336.9 MB, free: 10.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.1388, allocations: 167.9 kB / 337 MB, free: 10.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.427e-05/0.1389, allocations: 47.34 kB / 337.1 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-05/0.1389, allocations: 29.64 kB / 337.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1391, allocations: 338.8 kB / 337.4 MB, free: 10.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.1395, allocations: 107.9 kB / 337.5 MB, free: 10.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003557/0.1398, allocations: 175.6 kB / 337.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006317/0.1405, allocations: 285.5 kB / 338 MB, free: 9.711 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1405, allocations: 3.938 kB / 338 MB, free: 9.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001126/0.1416, allocations: 478.3 kB / 338.5 MB, free: 9.227 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.1418, allocations: 155.9 kB / 338.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.1418, allocations: 0 / 338.6 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005472/0.1423, allocations: 144.7 kB / 338.7 MB, free: 8.898 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.1425, allocations: 39.97 kB / 338.8 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002236/0.1448, allocations: 1.76 MB / 340.5 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.1451, allocations: 51.88 kB / 340.6 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.1451, allocations: 8 kB / 340.6 MB, free: 6.902 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.893e-06/0.1452, allocations: 4 kB / 340.6 MB, free: 6.898 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000748/0.1459, allocations: 326.2 kB / 340.9 MB, free: 6.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.1459, allocations: 0 / 340.9 MB, free: 6.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001034/0.146, allocations: 40.83 kB / 341 MB, free: 6.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.1462, allocations: 43.91 kB / 341 MB, free: 6.484 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.1474, allocations: 1.538 MB / 342.5 MB, free: 4.812 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.1477, allocations: 47.88 kB / 342.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.1478, allocations: 8 kB / 342.6 MB, free: 4.758 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.0002089/0.148, allocations: 213.1 kB / 342.8 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.148, allocations: 15.81 kB / 342.8 MB, free: 4.523 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.537e-05/0.1481, allocations: 29.78 kB / 342.9 MB, free: 4.496 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1481, allocations: 11.92 kB / 342.9 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.1481, allocations: 0 / 342.9 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1481, allocations: 0 / 342.9 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.1484, allocations: 301.3 kB / 343.2 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1484, allocations: 0 / 343.2 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.1486, allocations: 27.97 kB / 343.2 MB, free: 4.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002394/0.1488, allocations: 68.81 kB / 343.3 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.1489, allocations: 11.94 kB / 343.3 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002228/0.1511, allocations: 1.644 MB / 344.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1511, allocations: 0 / 344.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.1525, allocations: 373.6 kB / 345.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.1526, allocations: 100.8 kB / 345.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.514e-05/0.1526, allocations: 8 kB / 345.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003357/0.153, allocations: 43.84 kB / 345.4 MB, free: 1.703 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.1531, allocations: 23.97 kB / 345.4 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.1531, allocations: 4 kB / 345.5 MB, free: 1.676 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003038/0.1534, allocations: 188.5 kB / 345.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1534, allocations: 0 / 345.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008528/0.1543, allocations: 123.7 kB / 345.8 MB, free: 1.375 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.0002095/0.1545, allocations: 111.1 kB / 345.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.1564, allocations: 0.7221 MB / 346.6 MB, free: 496 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.1564, allocations: 4 kB / 346.6 MB, free: 492 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006912/0.1571, allocations: 259.4 kB / 346.8 MB, free: 220 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.1576, allocations: 44.53 kB / 346.9 MB, free: 176 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.1589, allocations: 0.553 MB / 347.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005442/0.1595, allocations: 0.7483 MB / 348.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.1597, allocations: 22.3 kB / 348.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.536e-05/0.1598, allocations: 15.44 kB / 348.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1598, allocations: 0 / 348.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01228/0.1721, allocations: 3.894 MB / 352.1 MB, free: 10.88 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)