Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.009627/0.009627, allocations: 96.8 kB / 15.73 MB, free: 6.055 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.00155/0.00155, allocations: 194.7 kB / 16.67 MB, free: 5.973 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.138/2.138, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001784/0.001784, allocations: 51.83 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1348, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004971/0.1399, allocations: 2.692 MB / 375.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.1413, allocations: 0.7212 MB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001664/0.1415, allocations: 11.94 kB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001859/0.1417, allocations: 39.58 kB / 376.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.1419, allocations: 87.25 kB / 376.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003331/0.1423, allocations: 91.83 kB / 376.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.1427, allocations: 366.4 kB / 377.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.143, allocations: 84.7 kB / 377.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.1432, allocations: 131.5 kB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002207/0.1434, allocations: 151.4 kB / 377.6 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.629e-05/0.1434, allocations: 28 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.386e-05/0.1435, allocations: 28 kB / 377.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.1436, allocations: 67.69 kB / 377.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.1438, allocations: 139.3 kB / 377.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.1442, allocations: 330.6 kB / 378.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1442, allocations: 4 kB / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.1442, allocations: 0 / 378.1 MB, free: 12.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1442, allocations: 4 kB / 378.1 MB, free: 12.32 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.00131/0.1455, allocations: 0.6454 MB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1456, allocations: 12.03 kB / 378.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.223e-05/0.1457, allocations: 32.75 kB / 378.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.1461, allocations: 275.7 kB / 379.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.1462, allocations: 12.81 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.1462, allocations: 24.38 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.1468, allocations: 247.5 kB / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1469, allocations: 0 / 379.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.1469, allocations: 12 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1469, allocations: 7.938 kB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007436/0.1477, allocations: 257.5 kB / 379.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001594/0.1493, allocations: 0.8622 MB / 380.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007533/0.15, allocations: 226.6 kB / 380.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.1503, allocations: 92.8 kB / 380.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.1504, allocations: 3.984 kB / 380.8 MB, free: 9.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.1508, allocations: 177.8 kB / 381 MB, free: 9.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.1509, allocations: 0 / 381 MB, free: 9.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001987/0.1529, allocations: 0.5927 MB / 381.6 MB, free: 8.637 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.1529, allocations: 110.8 kB / 381.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.1532, allocations: 256.9 kB / 382 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1533, allocations: 29.7 kB / 382 MB, free: 8.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.1534, allocations: 172.2 kB / 382.2 MB, free: 8.031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.93e-05/0.1534, allocations: 47.58 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.053e-05/0.1535, allocations: 41.7 kB / 382.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1537, allocations: 342.8 kB / 382.6 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.154, allocations: 92.78 kB / 382.7 MB, free: 7.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.1543, allocations: 163.4 kB / 382.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006328/0.155, allocations: 247.5 kB / 383.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.155, allocations: 0 / 383.1 MB, free: 7.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001044/0.156, allocations: 423.7 kB / 383.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.469e-05/0.1561, allocations: 29.7 kB / 383.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1561, allocations: 4 kB / 383.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005153/0.1566, allocations: 104.7 kB / 383.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.1568, allocations: 47.94 kB / 383.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.1589, allocations: 1.884 MB / 385.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.1593, allocations: 55.77 kB / 385.6 MB, free: 4.348 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.1593, allocations: 4 kB / 385.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003455/0.1597, allocations: 180.1 kB / 385.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00029/0.16, allocations: 147.7 kB / 385.9 MB, free: 3.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005107/0.1605, allocations: 231.6 kB / 386.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.323e-06/0.1605, allocations: 7.875 kB / 386.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007297/0.1612, allocations: 339.7 kB / 386.5 MB, free: 3.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.051e-05/0.1613, allocations: 29.7 kB / 386.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.1613, allocations: 4 kB / 386.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001152/0.1614, allocations: 45.02 kB / 386.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.1616, allocations: 43.91 kB / 386.6 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/0.1632, allocations: 1.717 MB / 388.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002864/0.1635, allocations: 43.89 kB / 388.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.1635, allocations: 12 kB / 388.4 MB, free: 1.344 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.0001712/0.1637, allocations: 200.1 kB / 388.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.1637, allocations: 23.86 kB / 388.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.1638, allocations: 25.83 kB / 388.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.1638, allocations: 4 kB / 388.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.1638, allocations: 0 / 388.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.1638, allocations: 0 / 388.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.1641, allocations: 297.4 kB / 388.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1641, allocations: 7.984 kB / 388.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001288/0.1643, allocations: 19.98 kB / 389 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.1645, allocations: 64.8 kB / 389 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.71e-05/0.1645, allocations: 4 kB / 389 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002103/0.1666, allocations: 1.719 MB / 390.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1667, allocations: 0 / 390.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008719/0.1675, allocations: 317.6 kB / 391 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.838e-05/0.1676, allocations: 104.9 kB / 391.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/0.1677, allocations: 3.984 kB / 391.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.1679, allocations: 31.97 kB / 391.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.168, allocations: 27.91 kB / 391.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1681, allocations: 0 / 391.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002003/0.1683, allocations: 188.5 kB / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1683, allocations: 0 / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005867/0.1689, allocations: 123.8 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.0001683/0.169, allocations: 115.2 kB / 391.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.1707, allocations: 0.6837 MB / 392.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1707, allocations: 0 / 392.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004694/0.1712, allocations: 234.5 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.0003614/0.1716, allocations: 52.78 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.001285/0.1729, allocations: 451.7 kB / 393 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.1733, allocations: 0.7483 MB / 393.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001313/0.1735, allocations: 26.28 kB / 393.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.669e-05/0.1736, allocations: 23.44 kB / 393.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1736, allocations: 4 kB / 393.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of Templates: time 0.01021/0.1838, allocations: 4.306 MB / 398.1 MB, free: 7.207 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1)