Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=7406,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=7406,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 113.5 kB / 17.02 MB, free: 6.129 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.001215/0.001215, allocations: 195.1 kB / 17.96 MB, free: 5.238 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.632/1.632, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1913/0.1913, allocations: 38 MB / 309.2 MB, free: 5.965 MB / 254.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.001388/0.001388, allocations: 68.31 kB / 431.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1424, allocations: 55.24 MB / 487 MB, free: 8.371 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006133/0.1486, allocations: 4.082 MB / 491.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1503, allocations: 0.8968 MB / 492 MB, free: 3.355 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1505, allocations: 7.938 kB / 492 MB, free: 3.348 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.1507, allocations: 47.52 kB / 492.1 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004863/0.1512, allocations: 171 kB / 492.2 MB, free: 3.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002035/0.1514, allocations: 79.89 kB / 492.3 MB, free: 3.055 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004382/0.1519, allocations: 406.5 kB / 492.7 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.1521, allocations: 114.2 kB / 492.8 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.1524, allocations: 167.3 kB / 493 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.1528, allocations: 191.3 kB / 493.2 MB, free: 2.195 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.076e-05/0.1529, allocations: 20 kB / 493.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.24e-05/0.1529, allocations: 20 kB / 493.2 MB, free: 2.156 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001162/0.153, allocations: 87.72 kB / 493.3 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.1532, allocations: 139.2 kB / 493.4 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003603/0.1536, allocations: 294.9 kB / 493.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1536, allocations: 0 / 493.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1536, allocations: 0 / 493.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.1536, allocations: 0 / 493.7 MB, free: 1.645 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001153/0.1548, allocations: 0.5855 MB / 494.3 MB, free: 1.012 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.1548, allocations: 15.83 kB / 494.3 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.446e-05/0.1549, allocations: 36.55 kB / 494.4 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005389/0.1554, allocations: 338.9 kB / 494.7 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.1555, allocations: 16.81 kB / 494.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.1556, allocations: 48.02 kB / 494.8 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004552/0.1561, allocations: 282 kB / 495 MB, free: 228 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1561, allocations: 0 / 495 MB, free: 228 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.1561, allocations: 12 kB / 495.1 MB, free: 216 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.1562, allocations: 4 kB / 495.1 MB, free: 212 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.1565, allocations: 195.8 kB / 495.2 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00155/0.158, allocations: 1.268 MB / 496.5 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.1583, allocations: 127.8 kB / 496.6 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.086e-05/0.1584, allocations: 42.62 kB / 496.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.1584, allocations: 4 kB / 496.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.1585, allocations: 42.5 kB / 496.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 3.296e-06/0.1585, allocations: 0 / 496.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009374/0.1594, allocations: 0.5231 MB / 497.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.025e-05/0.1595, allocations: 106.8 kB / 497.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.1598, allocations: 238.6 kB / 497.6 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.983e-05/0.1598, allocations: 29.7 kB / 497.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.1599, allocations: 215.7 kB / 497.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.032e-05/0.16, allocations: 35.45 kB / 497.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.512e-05/0.16, allocations: 45.7 kB / 497.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1602, allocations: 334.8 kB / 498.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.1603, allocations: 43.84 kB / 498.3 MB, free: 12.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.1604, allocations: 132 kB / 498.4 MB, free: 12.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002274/0.1607, allocations: 191.8 kB / 498.6 MB, free: 12.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1607, allocations: 0 / 498.6 MB, free: 12.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003912/0.1611, allocations: 229.8 kB / 498.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.1611, allocations: 8.406 kB / 498.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.1611, allocations: 4 kB / 498.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001273/0.1613, allocations: 32.83 kB / 498.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003364/0.1616, allocations: 67.83 kB / 498.9 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.1616, allocations: 7.938 kB / 498.9 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.1617, allocations: 7.984 kB / 498.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.65e-05/0.1618, allocations: 12 kB / 499 MB, free: 11.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.1619, allocations: 149.8 kB / 499.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.162, allocations: 27.66 kB / 499.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002675/0.1623, allocations: 139.4 kB / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1623, allocations: 3.938 kB / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.1623, allocations: 4 kB / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1623, allocations: 7.984 kB / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1627, allocations: 285.5 kB / 499.6 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1627, allocations: 0 / 499.6 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.1629, allocations: 31.92 kB / 499.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1629, allocations: 0 / 499.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.1629, allocations: 4 kB / 499.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1629, allocations: 7.938 kB / 499.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1629, allocations: 0 / 499.6 MB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.1633, allocations: 359.4 kB / 499.9 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.077e-05/0.1634, allocations: 96.86 kB / 0.4883 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.1635, allocations: 4 kB / 0.4883 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.1636, allocations: 12 kB / 0.4883 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.861e-05/0.1636, allocations: 11.92 kB / 0.4884 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.1637, allocations: 8.094 kB / 0.4884 GB, free: 10.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.1638, allocations: 177.9 kB / 0.4885 GB, free: 10.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1638, allocations: 0 / 0.4885 GB, free: 10.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003426/0.1642, allocations: 44 kB / 0.4886 GB, free: 10.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0001034/0.1643, allocations: 99.41 kB / 0.4887 GB, free: 10.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003377/0.1646, allocations: 217.7 kB / 0.4889 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1646, allocations: 0 / 0.4889 GB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.009e-05/0.1647, allocations: 51.92 kB / 0.4889 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.1653, allocations: 61.94 kB / 0.489 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.1663, allocations: 0.5999 MB / 0.4896 GB, free: 9.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003536/0.1667, allocations: 0.7714 MB / 0.4903 GB, free: 8.621 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.553e-05/0.1668, allocations: 30.28 kB / 0.4903 GB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.296e-05/0.1668, allocations: 19.44 kB / 0.4904 GB, free: 8.574 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1668, allocations: 0 / 0.4904 GB, free: 8.574 MB / 382.1 MB Notification: Performance of Templates: time 0.005793/0.1726, allocations: 2.189 MB / 0.4925 GB, free: 6.383 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)