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.007466/0.007471, allocations: 97.3 kB / 15.73 MB, free: 6.039 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.001498/0.001498, allocations: 199.4 kB / 16.68 MB, free: 5.965 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.94/1.94, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001374/0.001374, allocations: 46.16 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1498, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004804/0.1547, allocations: 2.703 MB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.1563, allocations: 0.7173 MB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.1565, allocations: 4 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.1567, allocations: 43.58 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.157, allocations: 83.27 kB / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.1574, allocations: 99.8 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004625/0.1578, allocations: 358.4 kB / 377.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.1581, allocations: 92.69 kB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.1583, allocations: 131.4 kB / 377.4 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.1585, allocations: 147.4 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.537e-05/0.1586, allocations: 32 kB / 377.6 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.106e-05/0.1586, allocations: 28 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.952e-05/0.1587, allocations: 67.75 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.1589, allocations: 143.3 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.1593, allocations: 330.6 kB / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1593, allocations: 0 / 378.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.1593, allocations: 4 kB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1593, allocations: 4 kB / 378.2 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.001326/0.1607, allocations: 0.6378 MB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1607, allocations: 12.03 kB / 378.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.1609, allocations: 28.75 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.1613, allocations: 279.6 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.1613, allocations: 16.81 kB / 379.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.1614, allocations: 16.38 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.162, allocations: 255.5 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.162, allocations: 0 / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.1621, allocations: 8 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1621, allocations: 4 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007409/0.1628, allocations: 261.5 kB / 379.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.1643, allocations: 0.8621 MB / 380.5 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007242/0.165, allocations: 226.6 kB / 380.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002812/0.1653, allocations: 100.8 kB / 380.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.1654, allocations: 0 / 380.8 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004302/0.1658, allocations: 177.8 kB / 381 MB, free: 9.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.492e-06/0.1658, allocations: 0 / 381 MB, free: 9.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001955/0.1678, allocations: 0.5927 MB / 381.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.899e-05/0.1679, allocations: 106.8 kB / 381.7 MB, free: 8.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.1682, allocations: 260.9 kB / 382 MB, free: 8.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.1682, allocations: 29.7 kB / 382 MB, free: 8.188 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1683, allocations: 172.2 kB / 382.2 MB, free: 8.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.1684, allocations: 47.58 kB / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.004e-05/0.1685, allocations: 41.7 kB / 382.2 MB, free: 7.922 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1686, allocations: 338.8 kB / 382.6 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.169, allocations: 100.8 kB / 382.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.1693, allocations: 163.4 kB / 382.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005751/0.1699, allocations: 247.5 kB / 383.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1699, allocations: 0 / 383.1 MB, free: 7.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001034/0.1709, allocations: 415.7 kB / 383.5 MB, free: 6.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.171, allocations: 37.73 kB / 383.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.171, allocations: 4 kB / 383.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004852/0.1715, allocations: 104.7 kB / 383.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.1717, allocations: 43.91 kB / 383.7 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/0.1739, allocations: 1.888 MB / 385.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.1742, allocations: 47.78 kB / 385.6 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.517e-05/0.1742, allocations: 12 kB / 385.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003193/0.1745, allocations: 180.1 kB / 385.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002875/0.1748, allocations: 147.7 kB / 385.9 MB, free: 3.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004939/0.1753, allocations: 227.6 kB / 386.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.332e-06/0.1754, allocations: 4 kB / 386.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007283/0.1761, allocations: 343.6 kB / 386.5 MB, free: 3.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.1761, allocations: 33.7 kB / 386.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.796e-06/0.1761, allocations: 0 / 386.5 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001179/0.1763, allocations: 49.02 kB / 386.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.1765, allocations: 43.91 kB / 386.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.1779, allocations: 1.713 MB / 388.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.1781, allocations: 43.89 kB / 388.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.1782, allocations: 8 kB / 388.4 MB, free: 1.332 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.0001725/0.1784, allocations: 204.1 kB / 388.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.1784, allocations: 23.86 kB / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.54e-05/0.1785, allocations: 25.83 kB / 388.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1785, allocations: 4 kB / 388.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.1785, allocations: 0 / 388.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1785, allocations: 0 / 388.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.1788, allocations: 297.3 kB / 388.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1788, allocations: 0 / 388.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.1789, allocations: 19.98 kB / 388.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002178/0.1792, allocations: 76.78 kB / 389 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.953e-05/0.1792, allocations: 4 kB / 389 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001935/0.1811, allocations: 1.715 MB / 390.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1811, allocations: 0 / 390.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008446/0.182, allocations: 321.6 kB / 391.1 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.1821, allocations: 101 kB / 391.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.1821, allocations: 7.938 kB / 391.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.1823, allocations: 31.97 kB / 391.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.775e-05/0.1824, allocations: 23.91 kB / 391.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.1825, allocations: 7.938 kB / 391.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.1826, allocations: 184.5 kB / 391.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1827, allocations: 0 / 391.4 MB, free: 14.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005388/0.1832, allocations: 127.8 kB / 391.5 MB, free: 13.94 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.0001567/0.1834, allocations: 103.2 kB / 391.6 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0014/0.1848, allocations: 0.6915 MB / 392.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.1848, allocations: 0 / 392.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004419/0.1852, allocations: 230.5 kB / 392.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.1856, allocations: 48.66 kB / 392.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009634/0.1865, allocations: 450.9 kB / 393 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.1869, allocations: 0.7483 MB / 393.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.187, allocations: 30.27 kB / 393.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.358e-05/0.1871, allocations: 19.44 kB / 393.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1871, allocations: 0 / 393.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of Templates: time 0.00891/0.196, allocations: 4.314 MB / 398.1 MB, free: 7.191 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)