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.001358/0.001359, allocations: 104.8 kB / 17.05 MB, free: 6.027 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.001489/0.001489, allocations: 196 kB / 18 MB, free: 5.105 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.361/1.361, 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.1602/0.1602, allocations: 37.99 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.001295/0.001295, allocations: 71.89 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1169, allocations: 55.24 MB / 487.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01038/0.1273, allocations: 9.252 MB / 496.4 MB, free: 15.06 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005502/0.1329, allocations: 3.303 MB / 499.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006173/0.1335, allocations: 43.75 kB / 499.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.1347, allocations: 417.3 kB / 0.4884 GB, free: 11.29 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.001751/0.1365, allocations: 0.7888 MB / 0.4892 GB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.1375, allocations: 483.2 kB / 0.4896 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00186/0.1394, allocations: 1.87 MB / 0.4915 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001277/0.1407, allocations: 1.124 MB / 0.4926 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009089/0.1416, allocations: 0.7549 MB / 0.4933 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.1426, allocations: 0.8094 MB / 0.4941 GB, free: 5.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001856/0.1428, allocations: 140 kB / 0.4942 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006125/0.1435, allocations: 383.5 kB / 0.4946 GB, free: 4.922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004218/0.1439, allocations: 0.4908 MB / 0.4951 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006151/0.1445, allocations: 0.7076 MB / 0.4958 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001854/0.1464, allocations: 1.99 MB / 0.4977 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1464, allocations: 0 / 0.4977 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1464, allocations: 0 / 0.4977 GB, free: 1.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.1464, allocations: 0 / 0.4977 GB, free: 1.723 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.00291/0.1493, allocations: 1.643 MB / 0.4993 GB, free: 24 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.1494, allocations: 15.89 kB / 0.4993 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006591/0.15, allocations: 187.3 kB / 0.4995 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001625/0.1517, allocations: 0.9616 MB / 0.5004 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.59e-05/0.1518, allocations: 74.06 kB / 0.5005 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002589/0.152, allocations: 124 kB / 0.5006 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.1539, allocations: 1.345 MB / 0.5019 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/0.1539, allocations: 11.91 kB / 0.5019 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.032e-05/0.154, allocations: 36 kB / 0.502 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001109/0.1541, allocations: 73.97 kB / 0.5021 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.1558, allocations: 1.073 MB / 0.5031 GB, free: 12 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.005859/0.1617, allocations: 5.098 MB / 0.5081 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.1627, allocations: 0.7603 MB / 0.5088 GB, free: 5.863 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/0.1632, allocations: 344.1 kB / 0.5092 GB, free: 5.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.06e-05/0.1633, allocations: 4.562 kB / 0.5092 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.1633, allocations: 47.06 kB / 0.5092 GB, free: 5.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.354e-06/0.1633, allocations: 0 / 0.5092 GB, free: 5.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.005183/0.1685, allocations: 2.674 MB / 0.5118 GB, free: 2.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.1686, allocations: 145 kB / 0.512 GB, free: 2.516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008168/0.1694, allocations: 0.7472 MB / 0.5127 GB, free: 1.762 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.1695, allocations: 37.7 kB / 0.5127 GB, free: 1.719 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003501/0.1698, allocations: 0.5727 MB / 0.5133 GB, free: 1.137 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.17, allocations: 248.4 kB / 0.5135 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.1702, allocations: 162.6 kB / 0.5137 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1703, allocations: 341.9 kB / 0.514 GB, free: 396 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/0.1708, allocations: 300.7 kB / 0.5143 GB, free: 92 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006257/0.1714, allocations: 0.5488 MB / 0.5148 GB, free: 15.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.1726, allocations: 0.9014 MB / 0.5157 GB, free: 14.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/0.1726, allocations: 3.938 kB / 0.5157 GB, free: 14.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002562/0.1752, allocations: 1.344 MB / 0.517 GB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.1752, allocations: 16 kB / 0.517 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.1752, allocations: 8 kB / 0.517 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.1765, allocations: 420.5 kB / 0.5174 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005683/0.1771, allocations: 171.7 kB / 0.5176 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00838/0.1854, allocations: 5.273 MB / 0.5227 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005435/0.186, allocations: 39.98 kB / 0.5228 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.464e-05/0.1861, allocations: 39.98 kB / 0.5228 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009165/0.187, allocations: 0.5565 MB / 0.5234 GB, free: 6.387 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000724/0.1877, allocations: 0.5412 MB / 0.5239 GB, free: 5.734 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001147/0.1889, allocations: 0.8702 MB / 0.5247 GB, free: 4.754 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.404e-06/0.1889, allocations: 4 kB / 0.5248 GB, free: 4.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002389/0.1913, allocations: 1.262 MB / 0.526 GB, free: 3.477 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1913, allocations: 12.03 kB / 0.526 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.1914, allocations: 8 kB / 0.526 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/0.1927, allocations: 405 kB / 0.5264 GB, free: 3.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005851/0.1933, allocations: 175.7 kB / 0.5266 GB, free: 2.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2483/0.4415, allocations: 5.037 MB / 0.5315 GB, free: 48.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006952/0.4423, allocations: 34.52 kB / 0.5315 GB, free: 48.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.159e-05/0.4423, allocations: 38.91 kB / 0.5315 GB, free: 48.47 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.0002043/0.4426, allocations: 233.5 kB / 0.5318 GB, free: 48.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.4427, allocations: 97.56 kB / 0.5319 GB, free: 48.29 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/0.444, allocations: 0.8682 MB / 0.5327 GB, free: 48.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.444, allocations: 11.25 kB / 0.5327 GB, free: 48.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4441, allocations: 2.281 kB / 0.5327 GB, free: 48.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4441, allocations: 4.469 kB / 0.5327 GB, free: 48.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002716/0.4468, allocations: 1.86 MB / 0.5345 GB, free: 47.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.102e-06/0.4468, allocations: 1.688 kB / 0.5345 GB, free: 47.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007661/0.4476, allocations: 163.5 kB / 0.5347 GB, free: 47.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.4476, allocations: 4.125 kB / 0.5347 GB, free: 47.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/0.4477, allocations: 18.55 kB / 0.5347 GB, free: 47.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.4477, allocations: 4.484 kB / 0.5347 GB, free: 47.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4477, allocations: 1.344 kB / 0.5347 GB, free: 47.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.4493, allocations: 1.272 MB / 0.536 GB, free: 46.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.4496, allocations: 233.7 kB / 0.5362 GB, free: 46.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.369e-05/0.4497, allocations: 13.91 kB / 0.5362 GB, free: 46.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.4501, allocations: 27.44 kB / 0.5362 GB, free: 46.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.71e-05/0.4502, allocations: 49.97 kB / 0.5363 GB, free: 46.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.4502, allocations: 19.36 kB / 0.5363 GB, free: 46.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007427/0.451, allocations: 0.5161 MB / 0.5368 GB, free: 46.32 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.633e-06/0.451, allocations: 2.719 kB / 0.5368 GB, free: 46.32 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002151/0.4531, allocations: 466.6 kB / 0.5373 GB, free: 46.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.0003045/0.4535, allocations: 152.6 kB / 0.5374 GB, free: 46.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003381/0.4568, allocations: 1.898 MB / 0.5392 GB, free: 45.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4569, allocations: 0.75 kB / 0.5393 GB, free: 45.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005844/0.4575, allocations: 352 kB / 0.5396 GB, free: 45.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.4586, allocations: 255.5 kB / 0.5398 GB, free: 45.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004257/0.4629, allocations: 2.484 MB / 0.5423 GB, free: 43.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008249/0.4637, allocations: 1.207 MB / 0.5434 GB, free: 43.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007247/0.4645, allocations: 252.4 kB / 0.5437 GB, free: 43.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.4647, allocations: 66.48 kB / 0.5437 GB, free: 43.11 MB / 414.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4647, allocations: 0 / 0.5437 GB, free: 43.11 MB / 414.1 MB Notification: Performance of Templates: time 0.02477/0.4894, allocations: 18.62 MB / 0.5619 GB, free: 33.21 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)