Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.00915/0.00915, allocations: 101.7 kB / 15.73 MB, free: 6.488 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.002021/0.002021, allocations: 195.1 kB / 16.68 MB, free: 6.375 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.701/1.701, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.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.001255/0.001255, allocations: 50.7 kB / 326.6 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1255, allocations: 46.62 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004861/0.1304, allocations: 2.707 MB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.132, allocations: 0.7173 MB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001646/0.1322, allocations: 4 kB / 376.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.1324, allocations: 39.58 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.1326, allocations: 99.19 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.1331, allocations: 95.81 kB / 376.9 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003995/0.1335, allocations: 362.4 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.1337, allocations: 84.64 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.1339, allocations: 131.5 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.1341, allocations: 147.4 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.1342, allocations: 28 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.755e-05/0.1342, allocations: 28 kB / 377.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.001e-05/0.1343, allocations: 71.75 kB / 377.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.1345, allocations: 147.2 kB / 377.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004065/0.1349, allocations: 318.9 kB / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.135, allocations: 4 kB / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.135, allocations: 0 / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.135, allocations: 0 / 378.1 MB, free: 12.3 MB / 318.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.001281/0.1363, allocations: 0.6341 MB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1363, allocations: 12.03 kB / 378.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.1364, allocations: 32.56 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004791/0.1369, allocations: 275.5 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.1369, allocations: 20.81 kB / 379.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/0.137, allocations: 20.38 kB / 379.1 MB, free: 11.22 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006379/0.1376, allocations: 247.5 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1377, allocations: 0 / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.1377, allocations: 8 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.1377, allocations: 4 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008057/0.1385, allocations: 261.4 kB / 379.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.1405, allocations: 0.858 MB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007384/0.1413, allocations: 226.6 kB / 380.7 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002964/0.1416, allocations: 96.8 kB / 380.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.1417, allocations: 0 / 380.8 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005027/0.1422, allocations: 173.7 kB / 381 MB, free: 9.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/0.1422, allocations: 4 kB / 381 MB, free: 9.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.002079/0.1443, allocations: 0.5848 MB / 381.6 MB, free: 8.637 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.777e-05/0.1444, allocations: 114.8 kB / 381.7 MB, free: 8.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002973/0.1447, allocations: 256.9 kB / 381.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.1447, allocations: 33.7 kB / 382 MB, free: 8.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.1448, allocations: 175.9 kB / 382.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.366e-05/0.1449, allocations: 47.33 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.684e-05/0.145, allocations: 45.61 kB / 382.2 MB, free: 7.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1451, allocations: 334.8 kB / 382.6 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.1454, allocations: 100.8 kB / 382.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003171/0.1458, allocations: 155.5 kB / 382.8 MB, free: 7.305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005678/0.1463, allocations: 252.6 kB / 383.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1464, allocations: 0 / 383.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001073/0.1474, allocations: 411.6 kB / 383.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.411e-05/0.1475, allocations: 37.69 kB / 383.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.1476, allocations: 4 kB / 383.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005514/0.1481, allocations: 104.8 kB / 383.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002235/0.1483, allocations: 43.89 kB / 383.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002773/0.1511, allocations: 1.88 MB / 385.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003498/0.1515, allocations: 47.77 kB / 385.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.1515, allocations: 12.06 kB / 385.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004057/0.152, allocations: 180.1 kB / 385.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003121/0.1523, allocations: 151.5 kB / 385.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000519/0.1528, allocations: 227.6 kB / 386.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.787e-06/0.1528, allocations: 0 / 386.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0009796/0.1538, allocations: 343.7 kB / 386.5 MB, free: 3.387 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.801e-05/0.1539, allocations: 29.7 kB / 386.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1539, allocations: 4 kB / 386.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002259/0.1541, allocations: 40.83 kB / 386.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002929/0.1544, allocations: 43.91 kB / 386.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.156, allocations: 1.721 MB / 388.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.1564, allocations: 51.89 kB / 388.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.1564, allocations: 12 kB / 388.4 MB, free: 1.34 MB / 318.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.0002215/0.1567, allocations: 196.1 kB / 388.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.673e-05/0.1568, allocations: 19.81 kB / 388.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.408e-05/0.1568, allocations: 25.83 kB / 388.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.1569, allocations: 4 kB / 388.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1569, allocations: 4 kB / 388.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.1569, allocations: 0 / 388.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.1573, allocations: 293.3 kB / 388.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1573, allocations: 4 kB / 388.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.1574, allocations: 23.97 kB / 388.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002313/0.1577, allocations: 64.8 kB / 389 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.1577, allocations: 8 kB / 389 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001847/0.1595, allocations: 1.719 MB / 390.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1596, allocations: 4.062 kB / 390.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.1607, allocations: 321.4 kB / 391 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.1608, allocations: 100.8 kB / 391.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.1609, allocations: 0 / 391.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.1611, allocations: 35.89 kB / 391.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.1612, allocations: 23.91 kB / 391.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1613, allocations: 4 kB / 391.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002467/0.1615, allocations: 188.5 kB / 391.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1615, allocations: 0 / 391.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007691/0.1623, allocations: 127.7 kB / 391.5 MB, free: 13.96 MB / 334.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.0002187/0.1625, allocations: 99.25 kB / 391.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.164, allocations: 0.6872 MB / 392.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1641, allocations: 0 / 392.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004419/0.1645, allocations: 239.8 kB / 392.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003593/0.1649, allocations: 48.47 kB / 392.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.1659, allocations: 447.6 kB / 393 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.1663, allocations: 0.7483 MB / 393.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.1665, allocations: 18.3 kB / 393.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.881e-05/0.1665, allocations: 23.44 kB / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1665, allocations: 0 / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Templates: time 0.009648/0.1762, allocations: 4.329 MB / 398.1 MB, free: 7.203 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)