Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 103 kB / 17.74 MB, free: 5.336 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.001197/0.001197, allocations: 198.5 kB / 18.68 MB, free: 4.406 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.353/1.353, 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.1797/0.1797, allocations: 37.99 MB / 309.9 MB, free: 5.949 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.002555/0.002555, allocations: 59.91 kB / 432.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1064, allocations: 55.25 MB / 487.8 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01108/0.1175, allocations: 9.255 MB / 497.1 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005609/0.1231, allocations: 3.311 MB / 0.4886 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008798/0.124, allocations: 39.81 kB / 0.4887 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.1255, allocations: 417.3 kB / 0.4891 GB, free: 11.26 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.002247/0.1278, allocations: 0.7928 MB / 0.4898 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.129, allocations: 479.2 kB / 0.4903 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002492/0.1315, allocations: 1.87 MB / 0.4921 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.1333, allocations: 1.116 MB / 0.4932 GB, free: 6.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001265/0.1345, allocations: 0.7666 MB / 0.494 GB, free: 6.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00131/0.1359, allocations: 0.8133 MB / 0.4948 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003423/0.1362, allocations: 140 kB / 0.4949 GB, free: 5.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008685/0.1371, allocations: 379.5 kB / 0.4953 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006424/0.1377, allocations: 0.4909 MB / 0.4957 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001141/0.1389, allocations: 0.7037 MB / 0.4964 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.1413, allocations: 1.994 MB / 0.4984 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1413, allocations: 0 / 0.4984 GB, free: 1.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1414, allocations: 0 / 0.4984 GB, free: 1.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.706e-05/0.1414, allocations: 0 / 0.4984 GB, free: 1.688 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003782/0.1452, allocations: 1.643 MB / 0.5 GB, free: 15.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1453, allocations: 11.89 kB / 0.5 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008356/0.1461, allocations: 191.1 kB / 0.5002 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002154/0.1483, allocations: 0.9538 MB / 0.5011 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.44e-05/0.1484, allocations: 78.06 kB / 0.5012 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003529/0.1487, allocations: 124 kB / 0.5013 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.1512, allocations: 1.345 MB / 0.5026 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.324e-05/0.1513, allocations: 3.906 kB / 0.5026 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/0.1514, allocations: 51.97 kB / 0.5027 GB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/0.1515, allocations: 69.98 kB / 0.5027 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001962/0.1535, allocations: 1.073 MB / 0.5038 GB, free: 11.97 MB / 398.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 8.318498358936397e-4 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007739/0.1613, allocations: 5.086 MB / 0.5087 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.1625, allocations: 0.7683 MB / 0.5095 GB, free: 5.832 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005263/0.163, allocations: 344.1 kB / 0.5098 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.457e-05/0.1631, allocations: 8.562 kB / 0.5098 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.1631, allocations: 51.05 kB / 0.5099 GB, free: 5.418 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 3.506e-06/0.1631, allocations: 0 / 0.5099 GB, free: 5.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005783/0.1689, allocations: 2.674 MB / 0.5125 GB, free: 2.652 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.169, allocations: 137.1 kB / 0.5126 GB, free: 2.484 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009797/0.17, allocations: 0.7511 MB / 0.5134 GB, free: 1.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.1701, allocations: 37.7 kB / 0.5134 GB, free: 1.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.1705, allocations: 0.5727 MB / 0.5139 GB, free: 1.102 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002315/0.1707, allocations: 248.5 kB / 0.5142 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002403/0.171, allocations: 166.6 kB / 0.5143 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1711, allocations: 338 kB / 0.5147 GB, free: 360 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005699/0.1717, allocations: 296.7 kB / 0.515 GB, free: 60 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007964/0.1725, allocations: 0.5527 MB / 0.5155 GB, free: 15.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.1738, allocations: 0.8975 MB / 0.5164 GB, free: 14.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.1738, allocations: 4 kB / 0.5164 GB, free: 14.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002952/0.1768, allocations: 1.344 MB / 0.5177 GB, free: 13.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.1768, allocations: 12.03 kB / 0.5177 GB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.1768, allocations: 8 kB / 0.5177 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.1783, allocations: 420.5 kB / 0.5181 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.179, allocations: 175.7 kB / 0.5183 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008434/0.1874, allocations: 5.277 MB / 0.5234 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007153/0.1882, allocations: 35.98 kB / 0.5235 GB, free: 6.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-05/0.1882, allocations: 40 kB / 0.5235 GB, free: 6.918 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009276/0.1892, allocations: 0.5604 MB / 0.524 GB, free: 6.352 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006103/0.1898, allocations: 0.5295 MB / 0.5246 GB, free: 5.711 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001177/0.191, allocations: 0.878 MB / 0.5254 GB, free: 4.723 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.508e-06/0.191, allocations: 4 kB / 0.5254 GB, free: 4.719 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002693/0.1937, allocations: 1.262 MB / 0.5267 GB, free: 3.445 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.1937, allocations: 19.91 kB / 0.5267 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.1938, allocations: 8 kB / 0.5267 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.1951, allocations: 413.1 kB / 0.5271 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.1958, allocations: 167.7 kB / 0.5272 GB, free: 2.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2237/0.4195, allocations: 5.033 MB / 0.5321 GB, free: 47.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000783/0.4203, allocations: 38.25 kB / 0.5322 GB, free: 47.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.4204, allocations: 34.5 kB / 0.5322 GB, free: 47.83 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002314/0.4206, allocations: 234.6 kB / 0.5324 GB, free: 47.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.4208, allocations: 91.94 kB / 0.5325 GB, free: 47.65 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001339/0.4221, allocations: 0.873 MB / 0.5334 GB, free: 47.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4221, allocations: 8.062 kB / 0.5334 GB, free: 47.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.4221, allocations: 1.75 kB / 0.5334 GB, free: 47.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.4224, allocations: 227.8 kB / 0.5336 GB, free: 47.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.4226, allocations: 18.38 kB / 0.5336 GB, free: 47.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004551/0.423, allocations: 27.31 kB / 0.5337 GB, free: 47.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.249e-05/0.4231, allocations: 43 kB / 0.5337 GB, free: 47.41 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001725/0.4249, allocations: 1.05 MB / 0.5347 GB, free: 47.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001668/0.4265, allocations: 1.438 MB / 0.5361 GB, free: 46.44 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004528/0.427, allocations: 337 kB / 0.5364 GB, free: 46.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000631/0.4277, allocations: 0.516 MB / 0.5369 GB, free: 46.09 MB / 414.1 MB Notification: Performance of Backend: time 2.8e-07/0.4277, allocations: 0 / 0.5369 GB, free: 46.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003546/0.4312, allocations: 1.791 MB / 0.5387 GB, free: 45.3 MB / 414.1 MB Notification: Performance of SimCode: time 0.00351/0.4347, allocations: 2.906 MB / 0.5415 GB, free: 43.68 MB / 414.1 MB Notification: Performance of Templates: time 0.02845/0.4632, allocations: 21.16 MB / 0.5622 GB, free: 33.49 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)