Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 105.8 kB / 17.06 MB, free: 6.016 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.001461/0.001461, allocations: 195 kB / 18 MB, free: 5.094 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.698/1.698, allocations: 205.1 MB / 223.9 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.1961/0.1961, allocations: 37.98 MB / 309.2 MB, free: 5.953 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.001673/0.001673, allocations: 67.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.143, allocations: 55.25 MB / 487.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.007072/0.1501, allocations: 4.332 MB / 491.5 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002179/0.1523, allocations: 0.9827 MB / 492.4 MB, free: 2.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004111/0.1528, allocations: 11.94 kB / 492.4 MB, free: 2.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.1531, allocations: 55.48 kB / 492.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.1542, allocations: 238.8 kB / 492.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.1546, allocations: 103.8 kB / 492.8 MB, free: 2.586 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009457/0.1556, allocations: 0.4944 MB / 493.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003664/0.156, allocations: 155.6 kB / 493.5 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006266/0.1566, allocations: 227.1 kB / 493.7 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008019/0.1574, allocations: 271.1 kB / 494 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.1576, allocations: 24 kB / 494 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.1577, allocations: 27.94 kB / 494 MB, free: 1.402 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.1579, allocations: 151.6 kB / 494.2 MB, free: 1.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002729/0.1582, allocations: 171.1 kB / 494.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006671/0.1589, allocations: 362.7 kB / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1589, allocations: 0 / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1589, allocations: 0 / 494.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.761e-05/0.1589, allocations: 0 / 494.7 MB, free: 0.7305 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001577/0.1605, allocations: 0.6594 MB / 495.3 MB, free: 20 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.1606, allocations: 11.89 kB / 495.4 MB, free: 8 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.1607, allocations: 40.64 kB / 495.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00073/0.1615, allocations: 383.7 kB / 495.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.691e-05/0.1615, allocations: 28.67 kB / 495.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.353e-05/0.1616, allocations: 28 kB / 495.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005933/0.1622, allocations: 352.7 kB / 496.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1622, allocations: 0 / 496.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.1622, allocations: 12 kB / 496.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.1624, allocations: 24.53 kB / 496.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.1628, allocations: 246 kB / 496.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.165, allocations: 1.359 MB / 497.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/0.1654, allocations: 172.9 kB / 498 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002173/0.1657, allocations: 97.72 kB / 498.1 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.1657, allocations: 11.98 kB / 498.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1658, allocations: 34.56 kB / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.1658, allocations: 0 / 498.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001691/0.1675, allocations: 0.7613 MB / 498.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.1675, allocations: 81.11 kB / 499 MB, free: 12.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003859/0.1679, allocations: 300.4 kB / 499.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.168, allocations: 29.7 kB / 499.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1682, allocations: 215.6 kB / 499.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.368e-05/0.1682, allocations: 55.2 kB / 499.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.1684, allocations: 53.59 kB / 499.6 MB, free: 11.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1685, allocations: 338.8 kB / 499.9 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.1687, allocations: 71.98 kB / 500 MB, free: 11.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1689, allocations: 160.8 kB / 0.4884 GB, free: 10.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.1692, allocations: 256.6 kB / 0.4887 GB, free: 10.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1692, allocations: 0 / 0.4887 GB, free: 10.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005228/0.1697, allocations: 317.7 kB / 0.489 GB, free: 10.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.1698, allocations: 8 kB / 0.489 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1698, allocations: 4 kB / 0.489 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002207/0.17, allocations: 53.25 kB / 0.489 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001705/0.1702, allocations: 51.92 kB / 0.4891 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.1717, allocations: 1.609 MB / 0.4907 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.1718, allocations: 15.94 kB / 0.4907 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1719, allocations: 11.98 kB / 0.4907 GB, free: 8.332 MB / 382.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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001941/0.1721, allocations: 169.8 kB / 0.4909 GB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.402e-05/0.1722, allocations: 27.62 kB / 0.4909 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004355/0.1726, allocations: 240.4 kB / 0.4911 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.1726, allocations: 4 kB / 0.4911 GB, free: 7.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1726, allocations: 3.984 kB / 0.4911 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.1726, allocations: 3.984 kB / 0.4911 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009414/0.1736, allocations: 0.6445 MB / 0.4917 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1736, allocations: 4 kB / 0.4918 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.1737, allocations: 23.98 kB / 0.4918 GB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.1739, allocations: 60.83 kB / 0.4918 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.174, allocations: 11.98 kB / 0.4918 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.1753, allocations: 1.601 MB / 0.4934 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1753, allocations: 0 / 0.4934 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.1759, allocations: 413.5 kB / 0.4938 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.176, allocations: 108.7 kB / 0.4939 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.176, allocations: 0 / 0.4939 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.1762, allocations: 8 kB / 0.4939 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.669e-05/0.1762, allocations: 11.98 kB / 0.4939 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.1763, allocations: 11.98 kB / 0.4939 GB, free: 4.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1765, allocations: 207.1 kB / 0.4941 GB, free: 4.535 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1765, allocations: 0 / 0.4941 GB, free: 4.535 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000408/0.1769, allocations: 68.06 kB / 0.4942 GB, free: 4.469 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001672/0.1771, allocations: 103.2 kB / 0.4943 GB, free: 4.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006704/0.1778, allocations: 307.3 kB / 0.4946 GB, free: 4.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.1778, allocations: 4 kB / 0.4946 GB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003714/0.1782, allocations: 198.6 kB / 0.4948 GB, free: 3.836 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.1788, allocations: 72.5 kB / 0.4949 GB, free: 3.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00143/0.1802, allocations: 0.7247 MB / 0.4956 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005511/0.1808, allocations: 0.8065 MB / 0.4963 GB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.181, allocations: 46.94 kB / 0.4964 GB, free: 2.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.512e-05/0.181, allocations: 23.44 kB / 0.4964 GB, free: 2.109 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.181, allocations: 0 / 0.4964 GB, free: 2.109 MB / 382.1 MB Notification: Performance of Templates: time 0.00829/0.1893, allocations: 3.031 MB / 0.4994 GB, free: 15.07 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)