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.01068/0.01068, allocations: 101.9 kB / 15.73 MB, free: 6.008 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.002146/0.002146, allocations: 190.9 kB / 16.67 MB, free: 5.949 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.78/1.78, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.00129/0.00129, allocations: 50.97 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1362, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.005368/0.1417, allocations: 2.707 MB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.1437, allocations: 0.7251 MB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003298/0.144, allocations: 4 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002999/0.1444, allocations: 43.58 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005161/0.1449, allocations: 87.25 kB / 376.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005516/0.1455, allocations: 95.83 kB / 376.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007582/0.1463, allocations: 366.4 kB / 377.2 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.1466, allocations: 76.66 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/0.1469, allocations: 139.5 kB / 377.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000306/0.1472, allocations: 147.4 kB / 377.6 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.261e-05/0.1473, allocations: 28 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.482e-05/0.1474, allocations: 32 kB / 377.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.59e-05/0.1475, allocations: 71.64 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.1477, allocations: 147.2 kB / 377.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.1483, allocations: 326.9 kB / 378.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1483, allocations: 0 / 378.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1483, allocations: 0 / 378.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.1483, allocations: 0 / 378.2 MB, free: 12.31 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.001782/0.1501, allocations: 0.6341 MB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.499e-05/0.1502, allocations: 8.031 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.1503, allocations: 32.56 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006617/0.151, allocations: 275.5 kB / 379.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.151, allocations: 16.81 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.1511, allocations: 20.38 kB / 379.1 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007115/0.1518, allocations: 251.5 kB / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.1518, allocations: 0 / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.1519, allocations: 8 kB / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.1519, allocations: 11.94 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008778/0.1528, allocations: 253.6 kB / 379.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.1548, allocations: 0.8541 MB / 380.5 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008325/0.1557, allocations: 226.5 kB / 380.7 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003108/0.156, allocations: 96.8 kB / 380.8 MB, free: 9.465 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.989e-05/0.1561, allocations: 4 kB / 380.8 MB, free: 9.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000553/0.1566, allocations: 177.8 kB / 381 MB, free: 9.266 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 3.076e-06/0.1566, allocations: 4 kB / 381 MB, free: 9.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.002238/0.1589, allocations: 0.5848 MB / 381.6 MB, free: 8.648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.159, allocations: 110.7 kB / 381.7 MB, free: 8.516 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004115/0.1594, allocations: 260.9 kB / 381.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.1595, allocations: 29.7 kB / 382 MB, free: 8.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.1597, allocations: 175.9 kB / 382.1 MB, free: 8.035 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.1598, allocations: 43.39 kB / 382.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.1599, allocations: 49.61 kB / 382.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002101/0.1601, allocations: 330.8 kB / 382.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000395/0.1605, allocations: 96.78 kB / 382.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003869/0.1609, allocations: 155.5 kB / 382.8 MB, free: 7.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006793/0.1616, allocations: 259.4 kB / 383.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1616, allocations: 0 / 383.1 MB, free: 7.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001182/0.1628, allocations: 407.6 kB / 383.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.1629, allocations: 37.69 kB / 383.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.1629, allocations: 0 / 383.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000542/0.1635, allocations: 112.8 kB / 383.6 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002027/0.1637, allocations: 35.95 kB / 383.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003005/0.1667, allocations: 1.888 MB / 385.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003906/0.1671, allocations: 51.67 kB / 385.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.421e-05/0.1672, allocations: 12.06 kB / 385.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004225/0.1676, allocations: 176.1 kB / 385.8 MB, free: 4.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003561/0.168, allocations: 151.6 kB / 385.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005777/0.1686, allocations: 227.5 kB / 386.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/0.1686, allocations: 3.938 kB / 386.1 MB, free: 3.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0008456/0.1694, allocations: 339.8 kB / 386.5 MB, free: 3.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.075e-05/0.1695, allocations: 37.7 kB / 386.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1695, allocations: 0 / 386.5 MB, free: 3.359 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001698/0.1697, allocations: 44.83 kB / 386.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.1699, allocations: 31.97 kB / 386.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.1721, allocations: 1.721 MB / 388.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003801/0.1725, allocations: 47.86 kB / 388.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.1726, allocations: 8 kB / 388.4 MB, free: 1.367 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.0002474/0.1728, allocations: 204.1 kB / 388.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.1729, allocations: 15.81 kB / 388.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.635e-05/0.173, allocations: 25.83 kB / 388.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.173, allocations: 0 / 388.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.173, allocations: 4 kB / 388.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.173, allocations: 0 / 388.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.1734, allocations: 309.2 kB / 388.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.1734, allocations: 0 / 388.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.1736, allocations: 23.97 kB / 388.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002512/0.1738, allocations: 64.8 kB / 389 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.1739, allocations: 0 / 389 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/0.1761, allocations: 1.723 MB / 390.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.1762, allocations: 0 / 390.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008923/0.1771, allocations: 325.6 kB / 391 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.1772, allocations: 92.83 kB / 391.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/0.1772, allocations: 8 kB / 391.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002754/0.1775, allocations: 27.95 kB / 391.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.1777, allocations: 27.91 kB / 391.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.1777, allocations: 4 kB / 391.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002508/0.178, allocations: 188.5 kB / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.178, allocations: 0 / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006156/0.1786, allocations: 123.7 kB / 391.5 MB, free: 13.98 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.0002308/0.1788, allocations: 103.2 kB / 391.6 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.1805, allocations: 0.6873 MB / 392.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1805, allocations: 3.938 kB / 392.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004895/0.181, allocations: 243.7 kB / 392.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004057/0.1814, allocations: 52.44 kB / 392.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.1826, allocations: 447.7 kB / 393 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004461/0.1831, allocations: 0.7483 MB / 393.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001282/0.1832, allocations: 22.3 kB / 393.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.712e-05/0.1833, allocations: 19.44 kB / 393.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1833, allocations: 0 / 393.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of Templates: time 0.01066/0.1939, allocations: 4.31 MB / 398.1 MB, free: 7.234 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)