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.007133/0.007133, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001444/0.001445, allocations: 193.5 kB / 16.67 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.914/1.914, 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.00158/0.00158, allocations: 57.81 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1413, allocations: 46.63 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.005997/0.1474, allocations: 2.692 MB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.1498, allocations: 0.7251 MB / 376.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005388/0.1504, allocations: 4 kB / 376.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003821/0.1509, allocations: 47.5 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006267/0.1515, allocations: 99.19 kB / 376.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005976/0.1521, allocations: 83.89 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008264/0.153, allocations: 362.4 kB / 377.2 MB, free: 13.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.1533, allocations: 84.64 kB / 377.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003726/0.1537, allocations: 143.4 kB / 377.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.154, allocations: 147.4 kB / 377.6 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.234e-05/0.1541, allocations: 32 kB / 377.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.617e-05/0.1542, allocations: 28 kB / 377.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.658e-05/0.1543, allocations: 59.77 kB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.1545, allocations: 147.2 kB / 377.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.155, allocations: 322.9 kB / 378.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1551, allocations: 4 kB / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1551, allocations: 0 / 378.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.1551, allocations: 0 / 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.001726/0.1568, allocations: 0.6302 MB / 378.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.55e-05/0.1569, allocations: 15.95 kB / 378.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.157, allocations: 32.56 kB / 378.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006812/0.1577, allocations: 279.5 kB / 379.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.1578, allocations: 12.81 kB / 379.1 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.1579, allocations: 20.38 kB / 379.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008036/0.1587, allocations: 251.5 kB / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.1587, allocations: 0 / 379.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.445e-05/0.1588, allocations: 19.94 kB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.1588, allocations: 4 kB / 379.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008191/0.1596, allocations: 249.6 kB / 379.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.1616, allocations: 0.8619 MB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007518/0.1623, allocations: 222.6 kB / 380.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.1626, allocations: 96.78 kB / 380.8 MB, free: 9.449 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.1627, allocations: 8 kB / 380.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004266/0.1631, allocations: 173.7 kB / 381 MB, free: 9.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.705e-06/0.1631, allocations: 0 / 381 MB, free: 9.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.002051/0.1652, allocations: 0.5887 MB / 381.6 MB, free: 8.633 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.1653, allocations: 106.8 kB / 381.7 MB, free: 8.504 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.1657, allocations: 260.9 kB / 381.9 MB, free: 8.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.547e-05/0.1657, allocations: 33.7 kB / 382 MB, free: 8.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1659, allocations: 167.9 kB / 382.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.479e-05/0.166, allocations: 47.39 kB / 382.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/0.1661, allocations: 49.61 kB / 382.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.1663, allocations: 330.8 kB / 382.6 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.1666, allocations: 92.78 kB / 382.7 MB, free: 7.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.167, allocations: 171.4 kB / 382.8 MB, free: 7.305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006238/0.1676, allocations: 247.5 kB / 383.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.1676, allocations: 0 / 383.1 MB, free: 7.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001096/0.1687, allocations: 415.6 kB / 383.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.621e-05/0.1688, allocations: 33.7 kB / 383.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.1688, allocations: 0 / 383.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005217/0.1694, allocations: 112.8 kB / 383.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.1696, allocations: 39.91 kB / 383.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/0.1722, allocations: 1.888 MB / 385.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002962/0.1725, allocations: 43.75 kB / 385.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.1725, allocations: 11.98 kB / 385.6 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003394/0.1729, allocations: 180.1 kB / 385.8 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002819/0.1732, allocations: 151.5 kB / 385.9 MB, free: 3.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004967/0.1737, allocations: 227.5 kB / 386.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.897e-06/0.1737, allocations: 4 kB / 386.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007389/0.1744, allocations: 331.6 kB / 386.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.323e-05/0.1745, allocations: 37.69 kB / 386.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1745, allocations: 4.188 kB / 386.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001354/0.1746, allocations: 40.84 kB / 386.5 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.1748, allocations: 39.91 kB / 386.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.1764, allocations: 1.721 MB / 388.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.1766, allocations: 43.88 kB / 388.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1767, allocations: 11.98 kB / 388.4 MB, free: 1.352 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.0001628/0.1768, allocations: 204.1 kB / 388.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.086e-05/0.1769, allocations: 15.81 kB / 388.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.119e-05/0.1769, allocations: 29.83 kB / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.177, allocations: 0 / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.177, allocations: 0 / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.177, allocations: 0 / 388.6 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.1773, allocations: 305.3 kB / 388.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1773, allocations: 4 kB / 388.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.1774, allocations: 23.97 kB / 388.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002346/0.1777, allocations: 56.81 kB / 389 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.1777, allocations: 11.98 kB / 389 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/0.1796, allocations: 1.711 MB / 390.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1796, allocations: 0 / 390.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008095/0.1804, allocations: 317.6 kB / 391 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1805, allocations: 100.8 kB / 391.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.1806, allocations: 8 kB / 391.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.1808, allocations: 31.95 kB / 391.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.016e-05/0.1809, allocations: 23.86 kB / 391.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.1809, allocations: 11.94 kB / 391.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.1811, allocations: 188.5 kB / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1811, allocations: 0 / 391.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005456/0.1817, allocations: 123.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.000184/0.1819, allocations: 107.2 kB / 391.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.1834, allocations: 0.684 MB / 392.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.1834, allocations: 0 / 392.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004313/0.1838, allocations: 247.1 kB / 392.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.1842, allocations: 44.38 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.001/0.1852, allocations: 447.5 kB / 393 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005/0.1857, allocations: 0.7482 MB / 393.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.1858, allocations: 26.36 kB / 393.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.186, allocations: 23.44 kB / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.186, allocations: 0 / 393.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of Templates: time 0.012/0.198, allocations: 4.314 MB / 398.1 MB, free: 7.215 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)