Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 113.7 kB / 17.74 MB, free: 5.312 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.00164/0.001641, allocations: 189.6 kB / 18.67 MB, free: 4.395 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.414/1.414, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.18/0.18, allocations: 37.98 MB / 309.9 MB, free: 5.938 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.001412/0.001412, allocations: 67.91 kB / 432.5 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 55.25 MB / 487.8 MB, free: 8.316 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.009257/0.111, allocations: 7.451 MB / 495.2 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005137/0.1161, allocations: 3.038 MB / 498.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000639/0.1168, allocations: 27.88 kB / 498.3 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.1191, allocations: 0.7779 MB / 499.1 MB, free: 12.96 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001974/0.1211, allocations: 0.6882 MB / 499.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.1222, allocations: 375.2 kB / 0.4884 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.1242, allocations: 1.328 MB / 0.4897 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.1253, allocations: 0.7525 MB / 0.4904 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.1263, allocations: 0.5565 MB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.1275, allocations: 0.6268 MB / 0.4916 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002062/0.1277, allocations: 72 kB / 0.4917 GB, free: 8.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.1288, allocations: 491.1 kB / 0.4921 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006571/0.1295, allocations: 454.9 kB / 0.4926 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.1307, allocations: 0.5015 MB / 0.4931 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002516/0.1332, allocations: 1.421 MB / 0.4945 GB, free: 5.695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1333, allocations: 3.938 kB / 0.4945 GB, free: 5.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1333, allocations: 0 / 0.4945 GB, free: 5.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.706e-05/0.1333, allocations: 0 / 0.4945 GB, free: 5.691 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002809/0.1362, allocations: 1.262 MB / 0.4957 GB, free: 4.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1362, allocations: 11.89 kB / 0.4957 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.1376, allocations: 211.5 kB / 0.4959 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.1391, allocations: 0.7177 MB / 0.4966 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.1391, allocations: 62.36 kB / 0.4967 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/0.1394, allocations: 95.92 kB / 0.4968 GB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.1412, allocations: 1.115 MB / 0.4978 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.1412, allocations: 0 / 0.4978 GB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.293e-05/0.1413, allocations: 32 kB / 0.4979 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.1415, allocations: 73.95 kB / 0.4979 GB, free: 1.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.143, allocations: 0.886 MB / 0.4988 GB, free: 1.098 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005446/0.1484, allocations: 4.062 MB / 0.5028 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006194/0.1491, allocations: 418 kB / 0.5032 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.1495, allocations: 269.6 kB / 0.5034 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.1495, allocations: 7.938 kB / 0.5034 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.1496, allocations: 42.56 kB / 0.5035 GB, free: 12.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 3.968e-06/0.1496, allocations: 0 / 0.5035 GB, free: 12.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004334/0.1539, allocations: 1.985 MB / 0.5054 GB, free: 10.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.436e-05/0.154, allocations: 89.67 kB / 0.5055 GB, free: 9.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000688/0.1547, allocations: 0.5692 MB / 0.5061 GB, free: 9.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.1548, allocations: 33.7 kB / 0.5061 GB, free: 9.285 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.1551, allocations: 470.4 kB / 0.5065 GB, free: 8.816 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.1552, allocations: 193.3 kB / 0.5067 GB, free: 8.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.1555, allocations: 146.5 kB / 0.5069 GB, free: 8.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1556, allocations: 378.7 kB / 0.5072 GB, free: 8.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004173/0.156, allocations: 273.8 kB / 0.5075 GB, free: 7.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.1566, allocations: 0.5042 MB / 0.508 GB, free: 7.223 MB / 398.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003129/0.1597, allocations: 1.4 MB / 0.5093 GB, free: 5.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.1598, allocations: 3.938 kB / 0.5093 GB, free: 5.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001905/0.1617, allocations: 1.095 MB / 0.5104 GB, free: 4.582 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.1617, allocations: 8 kB / 0.5104 GB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001195/0.1629, allocations: 0.7486 MB / 0.5112 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.1635, allocations: 166.4 kB / 0.5113 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006288/0.1641, allocations: 175.7 kB / 0.5115 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.1682, allocations: 4.86 MB / 0.5162 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006178/0.1689, allocations: 39.97 kB / 0.5163 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.671e-05/0.169, allocations: 36.06 kB / 0.5163 GB, free: 14.1 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005344/0.1695, allocations: 317.5 kB / 0.5166 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.1697, allocations: 67.09 kB / 0.5167 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.1708, allocations: 0.6317 MB / 0.5173 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.1708, allocations: 8 kB / 0.5173 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1708, allocations: 4 kB / 0.5173 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1709, allocations: 3.984 kB / 0.5173 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002588/0.1734, allocations: 1.518 MB / 0.5188 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.1735, allocations: 4 kB / 0.5188 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000606/0.1741, allocations: 127.8 kB / 0.5189 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/0.1741, allocations: 4 kB / 0.5189 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.281e-05/0.1742, allocations: 16.09 kB / 0.5189 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.216e-05/0.1742, allocations: 4 kB / 0.5189 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1742, allocations: 4 kB / 0.5189 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.1755, allocations: 0.9564 MB / 0.5199 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.1758, allocations: 184.3 kB / 0.52 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.1759, allocations: 27.83 kB / 0.5201 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.1763, allocations: 19.98 kB / 0.5201 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.898e-05/0.1764, allocations: 40.27 kB / 0.5201 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.1764, allocations: 16 kB / 0.5201 GB, free: 10.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004997/0.1769, allocations: 411 kB / 0.5205 GB, free: 9.609 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1769, allocations: 0 / 0.5205 GB, free: 9.609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008738/0.1778, allocations: 228 kB / 0.5208 GB, free: 9.387 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.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 (55): * Single equations (assignments): 54 * 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.0003265/0.1781, allocations: 139.1 kB / 0.5209 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001691/0.1798, allocations: 1.022 MB / 0.5219 GB, free: 8.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.1798, allocations: 1.438 kB / 0.5219 GB, free: 8.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.1802, allocations: 266.2 kB / 0.5221 GB, free: 7.918 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008552/0.1811, allocations: 159.3 kB / 0.5223 GB, free: 7.762 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003329/0.1844, allocations: 2.006 MB / 0.5243 GB, free: 5.695 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007327/0.1852, allocations: 1.078 MB / 0.5253 GB, free: 4.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/0.1854, allocations: 63.42 kB / 0.5254 GB, free: 4.527 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1854, allocations: 0 / 0.5254 GB, free: 4.527 MB / 414.1 MB Notification: Performance of Templates: time 0.2259/0.4113, allocations: 15.36 MB / 0.5404 GB, free: 47.99 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)