Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 109.9 kB / 17.06 MB, free: 6.137 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.001266/0.001266, allocations: 191 kB / 18 MB, free: 5.219 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.751/1.751, 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.961 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.001664/0.001664, allocations: 63.91 kB / 431.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.151, allocations: 55.24 MB / 487.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.006813/0.1579, allocations: 4.425 MB / 491.5 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002832/0.1608, allocations: 1.458 MB / 493 MB, free: 2.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003735/0.1612, allocations: 23.88 kB / 493 MB, free: 2.422 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.1625, allocations: 366.5 kB / 493.4 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006529/0.1632, allocations: 226.9 kB / 493.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000832/0.164, allocations: 243.4 kB / 493.8 MB, free: 1.602 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000655/0.1647, allocations: 0.5339 MB / 494.4 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005536/0.1652, allocations: 289 kB / 494.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004204/0.1657, allocations: 251 kB / 494.9 MB, free: 0.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.1661, allocations: 287.1 kB / 495.2 MB, free: 268 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.1662, allocations: 32 kB / 495.2 MB, free: 236 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003405/0.1665, allocations: 143.8 kB / 495.3 MB, free: 92 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002479/0.1668, allocations: 219.4 kB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.167, allocations: 238.9 kB / 495.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007108/0.1678, allocations: 0.5646 MB / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1678, allocations: 0 / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1678, allocations: 0 / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.1678, allocations: 0 / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.00135/0.1692, allocations: 0.7349 MB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.1692, allocations: 15.88 kB / 497.1 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005402/0.1698, allocations: 88.27 kB / 497.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007145/0.1705, allocations: 399.3 kB / 497.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.1705, allocations: 33.36 kB / 497.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1707, allocations: 56.11 kB / 497.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008663/0.1715, allocations: 0.6248 MB / 498.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.1716, allocations: 7.938 kB / 498.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.434e-05/0.1716, allocations: 16 kB / 498.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.1718, allocations: 28.98 kB / 498.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007563/0.1725, allocations: 479.5 kB / 498.8 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.1758, allocations: 2.884 MB / 0.4899 GB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004671/0.1763, allocations: 236.9 kB / 0.4902 GB, free: 9.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002586/0.1766, allocations: 145.7 kB / 0.4903 GB, free: 9.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.597e-05/0.1767, allocations: 11.98 kB / 0.4903 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.1767, allocations: 42.5 kB / 0.4903 GB, free: 8.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.545e-06/0.1767, allocations: 0 / 0.4903 GB, free: 8.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.00211/0.1789, allocations: 0.958 MB / 0.4913 GB, free: 7.957 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.179, allocations: 81.11 kB / 0.4914 GB, free: 7.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004997/0.1795, allocations: 332.4 kB / 0.4917 GB, free: 7.523 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.172e-05/0.1796, allocations: 33.7 kB / 0.4917 GB, free: 7.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003665/0.1799, allocations: 271.3 kB / 0.492 GB, free: 7.211 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.1801, allocations: 102.6 kB / 0.4921 GB, free: 7.109 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.1803, allocations: 90.16 kB / 0.4921 GB, free: 7.012 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002406/0.1805, allocations: 350.8 kB / 0.4925 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.1808, allocations: 145 kB / 0.4926 GB, free: 6.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005681/0.1813, allocations: 343.3 kB / 0.4929 GB, free: 6.094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008551/0.1822, allocations: 0.5206 MB / 0.4935 GB, free: 5.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.423e-06/0.1822, allocations: 4 kB / 0.4935 GB, free: 5.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008716/0.1831, allocations: 0.5321 MB / 0.494 GB, free: 4.938 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.442e-05/0.1831, allocations: 8 kB / 0.494 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.1832, allocations: 12 kB / 0.494 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.762e-05/0.1832, allocations: 8 kB / 0.494 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.1837, allocations: 120.4 kB / 0.4941 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.959e-05/0.1837, allocations: 15.92 kB / 0.4941 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.184, allocations: 27.98 kB / 0.4942 GB, free: 4.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.1841, allocations: 24 kB / 0.4942 GB, free: 4.727 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0005399/0.1846, allocations: 221.5 kB / 0.4944 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.6e-05/0.1847, allocations: 35.56 kB / 0.4944 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008683/0.1856, allocations: 357.6 kB / 0.4948 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.1856, allocations: 7.938 kB / 0.4948 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.1857, allocations: 0 / 0.4948 GB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1857, allocations: 4 kB / 0.4948 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.1875, allocations: 0.8759 MB / 0.4956 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.1875, allocations: 0 / 0.4956 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/0.1878, allocations: 67.91 kB / 0.4957 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/0.1878, allocations: 0 / 0.4957 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.1878, allocations: 11.98 kB / 0.4957 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.1878, allocations: 12.03 kB / 0.4957 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/0.1879, allocations: 0 / 0.4957 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007835/0.1886, allocations: 0.5896 MB / 0.4963 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.737e-05/0.1887, allocations: 100.7 kB / 0.4964 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.416e-05/0.1888, allocations: 12 kB / 0.4964 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.189, allocations: 15.92 kB / 0.4964 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.189, allocations: 23.97 kB / 0.4964 GB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1891, allocations: 8 kB / 0.4965 GB, free: 2.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.1893, allocations: 219 kB / 0.4967 GB, free: 2.059 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1893, allocations: 0 / 0.4967 GB, free: 2.059 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004717/0.1898, allocations: 92 kB / 0.4968 GB, free: 1.969 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.0001975/0.19, allocations: 107.2 kB / 0.4969 GB, free: 1.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006108/0.1906, allocations: 372.9 kB / 0.4972 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1906, allocations: 0 / 0.4972 GB, free: 1.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.1909, allocations: 140.4 kB / 0.4973 GB, free: 1.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.1914, allocations: 84.95 kB / 0.4974 GB, free: 1.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.1935, allocations: 0.9858 MB / 0.4984 GB, free: 256 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.1942, allocations: 0.862 MB / 0.4992 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004116/0.1947, allocations: 131.1 kB / 0.4994 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.513e-05/0.1948, allocations: 31.42 kB / 0.4994 GB, free: 15.2 MB / 398.1 MB Notification: Performance of SimCode: time 1.183e-06/0.1948, allocations: 4 kB / 0.4994 GB, free: 15.2 MB / 398.1 MB Notification: Performance of Templates: time 0.007996/0.2028, allocations: 3.409 MB / 0.5027 GB, free: 11.79 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)