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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001443/0.001443, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.196/1.196, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001726/0.001726, allocations: 128.8 kB / 256.6 MB, free: 4.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1678/0.1678, allocations: 37.95 MB / 338.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001178, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.09108, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008703/0.09982, allocations: 10.37 MB / 464.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006255/0.1061, allocations: 3.631 MB / 468 MB, free: 2.508 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.1076, allocations: 67.62 kB / 468.1 MB, free: 2.441 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001388/0.109, allocations: 354.2 kB / 468.4 MB, free: 2.094 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001913/0.111, allocations: 0.7195 MB / 469.1 MB, free: 1.371 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008792/0.1119, allocations: 395.5 kB / 469.5 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002338/0.1142, allocations: 2.42 MB / 471.9 MB, free: 14.55 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.1154, allocations: 0.8364 MB / 472.8 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008759/0.1162, allocations: 0.6378 MB / 473.4 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009737/0.1172, allocations: 0.8017 MB / 474.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.1174, allocations: 80 kB / 474.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005591/0.1179, allocations: 311.5 kB / 474.6 MB, free: 11.87 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003647/0.1183, allocations: 434.8 kB / 475 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006348/0.119, allocations: 0.6296 MB / 475.6 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.1205, allocations: 1.854 MB / 477.5 MB, free: 8.949 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1206, allocations: 4 kB / 477.5 MB, free: 8.945 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1206, allocations: 0 / 477.5 MB, free: 8.945 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.1206, allocations: 0 / 477.5 MB, free: 8.945 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.002969/0.1236, allocations: 1.604 MB / 479.1 MB, free: 7.285 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1236, allocations: 12.03 kB / 479.1 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006596/0.1243, allocations: 187.2 kB / 479.3 MB, free: 7.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.126, allocations: 0.8951 MB / 480.2 MB, free: 6.152 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.338e-05/0.126, allocations: 74 kB / 480.3 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002608/0.1263, allocations: 120 kB / 480.4 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.1282, allocations: 1.315 MB / 481.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.1283, allocations: 7.906 kB / 481.7 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.999e-05/0.1284, allocations: 36 kB / 481.7 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.772e-05/0.1285, allocations: 69.97 kB / 481.8 MB, free: 4.477 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.1302, allocations: 1.062 MB / 482.9 MB, free: 3.414 MB / 330.7 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006745/0.1369, allocations: 4.91 MB / 487.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.1381, allocations: 0.7378 MB / 488.5 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.1386, allocations: 344.1 kB / 488.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.814e-05/0.1386, allocations: 8.562 kB / 488.9 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.1387, allocations: 47.12 kB / 488.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 2.996e-06/0.1387, allocations: 3.938 kB / 488.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.005381/0.144, allocations: 3.061 MB / 492 MB, free: 9.879 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.1441, allocations: 141.1 kB / 492.1 MB, free: 9.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008403/0.145, allocations: 0.7195 MB / 492.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.145, allocations: 41.7 kB / 492.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003805/0.1454, allocations: 0.5416 MB / 493.4 MB, free: 8.387 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.1456, allocations: 252.3 kB / 493.7 MB, free: 8.137 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/0.1459, allocations: 158.6 kB / 493.8 MB, free: 7.977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.146, allocations: 341.9 kB / 494.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004662/0.1465, allocations: 304.6 kB / 494.4 MB, free: 7.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.1471, allocations: 0.5317 MB / 495 MB, free: 6.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/0.1482, allocations: 0.8841 MB / 495.9 MB, free: 5.711 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1482, allocations: 4 kB / 495.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00264/0.1508, allocations: 1.328 MB / 497.2 MB, free: 4.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1509, allocations: 8 kB / 497.2 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.1509, allocations: 8 kB / 497.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.1522, allocations: 416.7 kB / 497.6 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005963/0.1528, allocations: 167.7 kB / 497.8 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007756/0.1606, allocations: 4.822 MB / 0.4908 GB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007802/0.1614, allocations: 51.88 kB / 0.4909 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.234e-05/0.1615, allocations: 35.98 kB / 0.4909 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009481/0.1625, allocations: 0.5494 MB / 0.4914 GB, free: 14.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006331/0.1631, allocations: 0.5316 MB / 0.492 GB, free: 13.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00111/0.1642, allocations: 0.8568 MB / 0.4928 GB, free: 12.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.114e-06/0.1642, allocations: 4 kB / 0.4928 GB, free: 12.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.002475/0.1667, allocations: 1.25 MB / 0.494 GB, free: 11.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1668, allocations: 8 kB / 0.494 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.1668, allocations: 8 kB / 0.494 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/0.1681, allocations: 401 kB / 0.4944 GB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/0.1687, allocations: 171.7 kB / 0.4946 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006743/0.1754, allocations: 4.611 MB / 0.4991 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.1761, allocations: 31.98 kB / 0.4991 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.998e-05/0.1762, allocations: 39.98 kB / 0.4992 GB, free: 5.914 MB / 362.7 MB 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 (79): * Single equations (assignments): 78 * 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.0002613/0.1765, allocations: 232 kB / 0.4994 GB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.1767, allocations: 90.88 kB / 0.4995 GB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.1782, allocations: 0.8749 MB / 0.5003 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.1782, allocations: 8 kB / 0.5003 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1782, allocations: 7.938 kB / 0.5003 GB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.1782, allocations: 3.984 kB / 0.5003 GB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002991/0.1812, allocations: 1.857 MB / 0.5022 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1812, allocations: 0 / 0.5022 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.1821, allocations: 163.8 kB / 0.5023 GB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.1821, allocations: 4 kB / 0.5023 GB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.306e-05/0.1821, allocations: 19.98 kB / 0.5023 GB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1821, allocations: 8.031 kB / 0.5023 GB, free: 2.547 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.1822, allocations: 4 kB / 0.5023 GB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.183/0.3651, allocations: 6.833 MB / 0.509 GB, free: 62.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.3655, allocations: 222.8 kB / 0.5092 GB, free: 62.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.828e-05/0.3656, allocations: 21.83 kB / 0.5092 GB, free: 62.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004396/0.366, allocations: 28.62 kB / 0.5093 GB, free: 62.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.945e-05/0.3661, allocations: 43.22 kB / 0.5093 GB, free: 62.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.381e-05/0.3662, allocations: 26.33 kB / 0.5093 GB, free: 62.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006142/0.3668, allocations: 0.4937 MB / 0.5098 GB, free: 62.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3668, allocations: 3.75 kB / 0.5098 GB, free: 62.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00194/0.3688, allocations: 0.6297 MB / 0.5104 GB, free: 62.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,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.0002826/0.3691, allocations: 151.6 kB / 0.5106 GB, free: 62.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00314/0.3722, allocations: 1.868 MB / 0.5124 GB, free: 61.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3722, allocations: 2.5 kB / 0.5124 GB, free: 61.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004932/0.3727, allocations: 352.1 kB / 0.5128 GB, free: 61.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.3738, allocations: 230.7 kB / 0.513 GB, free: 61.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.3775, allocations: 3.396 MB / 0.5163 GB, free: 59.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007141/0.3782, allocations: 1.217 MB / 0.5175 GB, free: 58.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009586/0.3792, allocations: 258.8 kB / 0.5177 GB, free: 58.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.3794, allocations: 73.3 kB / 0.5178 GB, free: 58.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.3794, allocations: 0 / 0.5178 GB, free: 58.59 MB / 362.7 MB Notification: Performance of Templates: time 0.02388/0.4033, allocations: 19.72 MB / 0.5371 GB, free: 45.3 MB / 362.7 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)