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.001163/0.001163, allocations: 111 kB / 17.74 MB, free: 5.34 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.001331/0.001331, allocations: 188.4 kB / 18.67 MB, free: 4.418 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.313/1.313, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1798/0.1798, allocations: 37.98 MB / 309.9 MB, free: 5.957 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.001527/0.001527, allocations: 71.02 kB / 432.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09241, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008733/0.1012, allocations: 7.451 MB / 495.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004837/0.1061, allocations: 3.038 MB / 498.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005402/0.1066, allocations: 23.88 kB / 498.3 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.1088, allocations: 0.7823 MB / 499.1 MB, free: 12.98 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.001951/0.1108, allocations: 0.6843 MB / 499.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.1118, allocations: 371.2 kB / 0.4884 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001801/0.1137, allocations: 1.328 MB / 0.4897 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000947/0.1146, allocations: 0.7447 MB / 0.4904 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007888/0.1154, allocations: 0.5604 MB / 0.491 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008532/0.1163, allocations: 0.6306 MB / 0.4916 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001185/0.1164, allocations: 79.94 kB / 0.4917 GB, free: 8.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007951/0.1172, allocations: 479.2 kB / 0.4921 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003648/0.1176, allocations: 450.9 kB / 0.4926 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004353/0.118, allocations: 0.5054 MB / 0.4931 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.1194, allocations: 1.425 MB / 0.4944 GB, free: 5.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1194, allocations: 7.984 kB / 0.4945 GB, free: 5.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1194, allocations: 0 / 0.4945 GB, free: 5.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.1194, allocations: 0 / 0.4945 GB, free: 5.715 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.001957/0.1214, allocations: 1.254 MB / 0.4957 GB, free: 4.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.1214, allocations: 15.88 kB / 0.4957 GB, free: 4.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.1226, allocations: 203.5 kB / 0.4959 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/0.1239, allocations: 0.7216 MB / 0.4966 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.124, allocations: 58.38 kB / 0.4966 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002172/0.1242, allocations: 99.91 kB / 0.4967 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.1257, allocations: 1.115 MB / 0.4978 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.636e-05/0.1257, allocations: 4 kB / 0.4978 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.14e-05/0.1258, allocations: 31.98 kB / 0.4979 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.126, allocations: 73.95 kB / 0.4979 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.1273, allocations: 0.886 MB / 0.4988 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.004761/0.132, allocations: 4.054 MB / 0.5028 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005695/0.1326, allocations: 422 kB / 0.5032 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/0.133, allocations: 269.6 kB / 0.5034 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.1331, allocations: 11.92 kB / 0.5034 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.1331, allocations: 42.5 kB / 0.5035 GB, free: 12.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.574e-06/0.1331, allocations: 0 / 0.5035 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.003964/0.1371, allocations: 1.985 MB / 0.5054 GB, free: 10.03 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.1371, allocations: 85.55 kB / 0.5055 GB, free: 9.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005949/0.1377, allocations: 0.5692 MB / 0.506 GB, free: 9.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.045e-05/0.1378, allocations: 33.7 kB / 0.5061 GB, free: 9.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/0.1381, allocations: 474.5 kB / 0.5065 GB, free: 8.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.1382, allocations: 193.3 kB / 0.5067 GB, free: 8.648 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.1384, allocations: 146.5 kB / 0.5069 GB, free: 8.496 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1385, allocations: 378.7 kB / 0.5072 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.1389, allocations: 273.8 kB / 0.5075 GB, free: 7.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005209/0.1395, allocations: 0.5042 MB / 0.508 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.002892/0.1424, allocations: 1.404 MB / 0.5093 GB, free: 5.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1424, allocations: 0 / 0.5093 GB, free: 5.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001755/0.1441, allocations: 1.099 MB / 0.5104 GB, free: 4.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1442, allocations: 8.5 kB / 0.5104 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001143/0.1453, allocations: 0.756 MB / 0.5112 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004922/0.1458, allocations: 158.4 kB / 0.5113 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000599/0.1464, allocations: 183.7 kB / 0.5115 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003793/0.1502, allocations: 4.852 MB / 0.5162 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005427/0.1508, allocations: 39.97 kB / 0.5163 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/0.1509, allocations: 35.98 kB / 0.5163 GB, free: 14.12 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.0004892/0.1514, allocations: 321.5 kB / 0.5166 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.1515, allocations: 71.09 kB / 0.5167 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.1526, allocations: 0.6356 MB / 0.5173 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.1526, allocations: 4 kB / 0.5173 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1526, allocations: 0 / 0.5173 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1526, allocations: 3.984 kB / 0.5173 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/0.155, allocations: 1.526 MB / 0.5188 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.155, allocations: 0 / 0.5188 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006395/0.1557, allocations: 128 kB / 0.5189 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.1557, allocations: 4 kB / 0.5189 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.1558, allocations: 16 kB / 0.5189 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.1558, allocations: 4 kB / 0.5189 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1558, allocations: 3.938 kB / 0.5189 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.157, allocations: 0.9524 MB / 0.5199 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002662/0.1573, allocations: 180.3 kB / 0.52 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.1574, allocations: 19.98 kB / 0.5201 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000359/0.1578, allocations: 19.92 kB / 0.5201 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.1579, allocations: 44.27 kB / 0.5201 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.1579, allocations: 16 kB / 0.5201 GB, free: 10.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004892/0.1584, allocations: 411 kB / 0.5205 GB, free: 9.633 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1584, allocations: 0 / 0.5205 GB, free: 9.633 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008181/0.1592, allocations: 228 kB / 0.5207 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.0002926/0.1595, allocations: 135 kB / 0.5209 GB, free: 9.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.1612, allocations: 1.031 MB / 0.5219 GB, free: 8.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1612, allocations: 3.938 kB / 0.5219 GB, free: 8.195 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.1616, allocations: 266.3 kB / 0.5221 GB, free: 7.934 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007952/0.1624, allocations: 155.6 kB / 0.5223 GB, free: 7.781 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.1656, allocations: 2.002 MB / 0.5242 GB, free: 5.719 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007149/0.1664, allocations: 1.082 MB / 0.5253 GB, free: 4.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002133/0.1666, allocations: 63.42 kB / 0.5254 GB, free: 4.547 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1666, allocations: 0 / 0.5254 GB, free: 4.547 MB / 414.1 MB Notification: Performance of Templates: time 0.223/0.3896, allocations: 15.48 MB / 0.5405 GB, free: 48 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)