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.001142/0.001142, allocations: 106.2 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.001152/0.001152, 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.408/1.408, 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.1724/0.1724, allocations: 37.98 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.001395/0.001395, allocations: 63.91 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.1007, allocations: 55.25 MB / 487.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008895/0.1096, allocations: 7.443 MB / 494.6 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004461/0.1141, allocations: 3.042 MB / 497.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002781/0.1144, allocations: 27.88 kB / 497.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.1163, allocations: 0.7823 MB / 498.4 MB, free: 12.99 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.001439/0.1177, allocations: 0.6882 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007907/0.1185, allocations: 371.1 kB / 499.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.1201, allocations: 1.328 MB / 0.4891 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009065/0.121, allocations: 0.7486 MB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006137/0.1216, allocations: 0.5604 MB / 0.4903 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007997/0.1224, allocations: 0.6268 MB / 0.4909 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.1225, allocations: 72 kB / 0.491 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007224/0.1233, allocations: 479.2 kB / 0.4915 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003877/0.1236, allocations: 454.9 kB / 0.4919 GB, free: 7.664 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004502/0.1241, allocations: 0.5092 MB / 0.4924 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1254, allocations: 1.421 MB / 0.4938 GB, free: 5.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1254, allocations: 0 / 0.4938 GB, free: 5.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1255, allocations: 0 / 0.4938 GB, free: 5.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.1255, allocations: 0 / 0.4938 GB, free: 5.727 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.002035/0.1275, allocations: 1.266 MB / 0.495 GB, free: 4.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1276, allocations: 11.89 kB / 0.495 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001246/0.1288, allocations: 207.5 kB / 0.4952 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.1301, allocations: 0.7178 MB / 0.4959 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.128e-05/0.1302, allocations: 62.38 kB / 0.496 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.1304, allocations: 99.91 kB / 0.4961 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.132, allocations: 1.115 MB / 0.4972 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.053e-05/0.132, allocations: 0 / 0.4972 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.058e-05/0.1321, allocations: 35.98 kB / 0.4972 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001898/0.1323, allocations: 73.95 kB / 0.4973 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.1337, allocations: 0.886 MB / 0.4982 GB, free: 1.125 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.005016/0.1387, allocations: 4.054 MB / 0.5021 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.1393, allocations: 425.9 kB / 0.5025 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003604/0.1397, allocations: 265.7 kB / 0.5028 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.1397, allocations: 19.84 kB / 0.5028 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1398, allocations: 38.56 kB / 0.5028 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.933e-06/0.1398, allocations: 0 / 0.5028 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.004021/0.1438, allocations: 1.974 MB / 0.5048 GB, free: 10.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.1439, allocations: 89.55 kB / 0.5048 GB, free: 9.934 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006224/0.1445, allocations: 0.5731 MB / 0.5054 GB, free: 9.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.1446, allocations: 41.81 kB / 0.5054 GB, free: 9.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.1449, allocations: 466.4 kB / 0.5059 GB, free: 8.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.145, allocations: 189.3 kB / 0.5061 GB, free: 8.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.1453, allocations: 154.5 kB / 0.5062 GB, free: 8.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1454, allocations: 378.7 kB / 0.5066 GB, free: 8.113 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000399/0.1458, allocations: 269.8 kB / 0.5068 GB, free: 7.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005516/0.1464, allocations: 0.5042 MB / 0.5073 GB, free: 7.246 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.002984/0.1494, allocations: 1.408 MB / 0.5087 GB, free: 5.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1494, allocations: 0 / 0.5087 GB, free: 5.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001813/0.1512, allocations: 1.091 MB / 0.5098 GB, free: 4.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.1513, allocations: 8 kB / 0.5098 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001189/0.1525, allocations: 0.756 MB / 0.5105 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005161/0.153, allocations: 162.5 kB / 0.5107 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000591/0.1536, allocations: 171.7 kB / 0.5108 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004454/0.158, allocations: 4.856 MB / 0.5156 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005872/0.1587, allocations: 39.97 kB / 0.5156 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.1587, allocations: 35.98 kB / 0.5156 GB, free: 14.13 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.0004917/0.1592, allocations: 317.5 kB / 0.5159 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.1593, allocations: 67.09 kB / 0.516 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.1604, allocations: 0.6395 MB / 0.5166 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.1604, allocations: 8 kB / 0.5166 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.1604, allocations: 0 / 0.5166 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.1604, allocations: 3.984 kB / 0.5166 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.1628, allocations: 1.522 MB / 0.5181 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1629, allocations: 8 kB / 0.5181 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005956/0.1635, allocations: 124.1 kB / 0.5183 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.1635, allocations: 4 kB / 0.5183 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.1635, allocations: 19.98 kB / 0.5183 GB, free: 11.33 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1635, allocations: 11.88 kB / 0.5183 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1635, allocations: 0 / 0.5183 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.1647, allocations: 0.9485 MB / 0.5192 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002238/0.165, allocations: 188.2 kB / 0.5194 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.785e-05/0.1651, allocations: 16 kB / 0.5194 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.1654, allocations: 19.98 kB / 0.5194 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.322e-05/0.1655, allocations: 40.33 kB / 0.5195 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.1655, allocations: 19.98 kB / 0.5195 GB, free: 10.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000472/0.166, allocations: 411 kB / 0.5199 GB, free: 9.633 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.166, allocations: 0 / 0.5199 GB, free: 9.633 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008287/0.1668, allocations: 228 kB / 0.5201 GB, free: 9.41 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.0003214/0.1672, allocations: 143 kB / 0.5202 GB, free: 9.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.1687, allocations: 1.022 MB / 0.5212 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1687, allocations: 0 / 0.5212 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000368/0.1691, allocations: 262.3 kB / 0.5215 GB, free: 7.941 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007516/0.1699, allocations: 160.3 kB / 0.5216 GB, free: 7.785 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002944/0.1728, allocations: 1.934 MB / 0.5235 GB, free: 5.797 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007167/0.1736, allocations: 1.071 MB / 0.5246 GB, free: 4.699 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004803/0.1741, allocations: 205.8 kB / 0.5248 GB, free: 4.496 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001944/0.1743, allocations: 63.42 kB / 0.5248 GB, free: 4.434 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1743, allocations: 0 / 0.5248 GB, free: 4.434 MB / 414.1 MB Notification: Performance of Templates: time 0.2485/0.4227, allocations: 8.976 MB / 0.5336 GB, free: 49.95 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)