Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001638/0.001639, allocations: 111.6 kB / 17.28 MB, free: 6.199 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.001537/0.001537, allocations: 193.3 kB / 18.21 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.961/1.961, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2991/0.2991, allocations: 38.02 MB / 330 MB, free: 8.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 65.38 kB / 398.9 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1531, allocations: 58.06 MB / 457 MB, free: 8.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.008709/0.1619, allocations: 4.574 MB / 461.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00265/0.1646, allocations: 1.052 MB / 462.6 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004014/0.1651, allocations: 23.81 kB / 462.6 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.1653, allocations: 31.77 kB / 462.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007521/0.1661, allocations: 151.3 kB / 462.8 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002945/0.1665, allocations: 79.86 kB / 462.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006192/0.1671, allocations: 374.7 kB / 463.3 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002675/0.1674, allocations: 84.56 kB / 463.4 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003517/0.1677, allocations: 163.2 kB / 463.5 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.1681, allocations: 175.4 kB / 463.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.527e-05/0.1682, allocations: 16 kB / 463.7 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.569e-05/0.1683, allocations: 16 kB / 463.7 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.1684, allocations: 83.73 kB / 463.8 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.1686, allocations: 127.3 kB / 463.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.169, allocations: 191.5 kB / 464.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.169, allocations: 0 / 464.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.169, allocations: 0 / 464.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.169, allocations: 0 / 464.1 MB, free: 1.238 MB / 334.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.001234/0.1703, allocations: 0.5505 MB / 464.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.1703, allocations: 15.89 kB / 464.7 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.639e-05/0.1704, allocations: 32.56 kB / 464.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005653/0.171, allocations: 300.1 kB / 465 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.93e-05/0.171, allocations: 16.38 kB / 465 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.523e-05/0.1711, allocations: 27.92 kB / 465 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/0.1717, allocations: 266.1 kB / 465.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1717, allocations: 7.938 kB / 465.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.1718, allocations: 4 kB / 465.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1718, allocations: 8 kB / 465.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003877/0.1722, allocations: 167.8 kB / 465.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.174, allocations: 1.187 MB / 466.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.1742, allocations: 77.14 kB / 466.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.745e-05/0.1743, allocations: 33.78 kB / 466.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.1743, allocations: 0 / 466.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.141e-05/0.1744, allocations: 30.56 kB / 466.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.194e-06/0.1744, allocations: 0 / 466.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0009672/0.1754, allocations: 408.7 kB / 467.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/0.1754, allocations: 89.17 kB / 467.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003224/0.1758, allocations: 246.5 kB / 467.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.1758, allocations: 29.7 kB / 467.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.176, allocations: 191.6 kB / 467.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.176, allocations: 27.64 kB / 467.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.266e-05/0.1761, allocations: 49.55 kB / 467.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1763, allocations: 330.8 kB / 468.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.672e-05/0.1764, allocations: 32.42 kB / 468.2 MB, free: 12.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.1766, allocations: 118.9 kB / 468.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.1769, allocations: 164.7 kB / 468.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1769, allocations: 0 / 468.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003747/0.1772, allocations: 185.2 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.1773, allocations: 10.34 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.1773, allocations: 7.938 kB / 468.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1773, allocations: 4 kB / 468.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.1776, allocations: 39.92 kB / 468.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.1776, allocations: 4.438 kB / 468.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.1778, allocations: 19.89 kB / 468.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.1778, allocations: 8 kB / 468.7 MB, free: 12.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000196/0.178, allocations: 153.7 kB / 468.9 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.1781, allocations: 15.81 kB / 468.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002249/0.1783, allocations: 99.25 kB / 469 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.1783, allocations: 4 kB / 469 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1783, allocations: 0 / 469 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1784, allocations: 0 / 469 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006463/0.179, allocations: 431.2 kB / 469.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.179, allocations: 0 / 469.4 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001274/0.1792, allocations: 12 kB / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.1792, allocations: 4 kB / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.1792, allocations: 0 / 469.4 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.1792, allocations: 3.984 kB / 469.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.1792, allocations: 4 kB / 469.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.1796, allocations: 232.9 kB / 469.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.563e-05/0.1797, allocations: 96.95 kB / 469.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.195e-05/0.1797, allocations: 3.938 kB / 469.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.1799, allocations: 4 kB / 469.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.312e-05/0.1799, allocations: 15.86 kB / 469.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.18, allocations: 4 kB / 469.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.1802, allocations: 170 kB / 470 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1802, allocations: 4 kB / 470 MB, free: 10.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000502/0.1807, allocations: 40 kB / 470 MB, free: 10.78 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001298/0.1808, allocations: 91.25 kB / 470.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.1811, allocations: 96.59 kB / 470.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1811, allocations: 0 / 470.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.621e-05/0.1812, allocations: 32.45 kB / 470.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007605/0.182, allocations: 71.06 kB / 470.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.1833, allocations: 0.6081 MB / 470.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004662/0.1838, allocations: 0.7595 MB / 471.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/0.1839, allocations: 19.44 kB / 471.7 MB, free: 9.043 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1839, allocations: 4 kB / 471.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of Templates: time 0.007021/0.1909, allocations: 2.65 MB / 474.3 MB, free: 6.395 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)