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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001136/0.001137, allocations: 109.6 kB / 16.92 MB, free: 6.332 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.001113/0.001113, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2331/0.2331, allocations: 38.03 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 61 kB / 398.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1063, allocations: 58.06 MB / 456.8 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01138/0.1177, allocations: 9.261 MB / 466.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005129/0.1229, allocations: 3.253 MB / 469.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005968/0.1235, allocations: 39.81 kB / 469.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.1247, allocations: 413.3 kB / 469.8 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.1263, allocations: 0.8005 MB / 470.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000918/0.1272, allocations: 471.2 kB / 471.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001811/0.129, allocations: 1.863 MB / 472.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.1303, allocations: 1.12 MB / 474 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009035/0.1312, allocations: 0.7471 MB / 474.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009784/0.1322, allocations: 0.8172 MB / 475.6 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001893/0.1324, allocations: 140 kB / 475.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006009/0.133, allocations: 383.5 kB / 476.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003996/0.1334, allocations: 494.8 kB / 476.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006095/0.1341, allocations: 0.7037 MB / 477.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.1358, allocations: 1.959 MB / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1358, allocations: 0 / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1358, allocations: 0 / 479.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.1358, allocations: 0 / 479.3 MB, free: 1.555 MB / 350.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.002854/0.1387, allocations: 1.64 MB / 480.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.1387, allocations: 15.83 kB / 480.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007306/0.1395, allocations: 191.2 kB / 481.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.1409, allocations: 0.9109 MB / 482 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.674e-05/0.141, allocations: 78.06 kB / 482.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002661/0.1413, allocations: 127.8 kB / 482.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.1433, allocations: 1.341 MB / 483.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/0.1433, allocations: 7.938 kB / 483.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001363/0.1434, allocations: 47.97 kB / 483.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/0.1435, allocations: 61.98 kB / 483.7 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001734/0.1453, allocations: 1.077 MB / 484.8 MB, free: 11.88 MB / 366.1 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.006821/0.1521, allocations: 5.133 MB / 489.9 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/0.1532, allocations: 0.7542 MB / 490.6 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005028/0.1538, allocations: 344.3 kB / 491 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.1538, allocations: 4.562 kB / 491 MB, free: 5.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1538, allocations: 43.12 kB / 491 MB, free: 5.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.184e-06/0.1539, allocations: 0 / 491 MB, free: 5.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.006009/0.1599, allocations: 2.681 MB / 493.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.16, allocations: 137.1 kB / 493.8 MB, free: 2.375 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001063/0.1611, allocations: 0.7471 MB / 494.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.062e-05/0.1612, allocations: 37.77 kB / 494.6 MB, free: 1.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004629/0.1616, allocations: 0.5689 MB / 495.2 MB, free: 1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.1619, allocations: 252.3 kB / 495.4 MB, free: 0.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.1621, allocations: 158.6 kB / 495.6 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1622, allocations: 341.9 kB / 495.9 MB, free: 256 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004975/0.1627, allocations: 304.6 kB / 496.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006693/0.1634, allocations: 0.549 MB / 496.8 MB, free: 15.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/0.1646, allocations: 0.8975 MB / 497.7 MB, free: 14.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.884e-06/0.1646, allocations: 7.938 kB / 497.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002848/0.1675, allocations: 1.34 MB / 499 MB, free: 12.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.1675, allocations: 8 kB / 499 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.1676, allocations: 8 kB / 499 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001372/0.169, allocations: 428.7 kB / 499.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/0.1696, allocations: 167.7 kB / 499.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008475/0.1781, allocations: 5.286 MB / 0.4931 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007733/0.1789, allocations: 39.98 kB / 0.4931 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.179, allocations: 43.92 kB / 0.4932 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009814/0.18, allocations: 0.5526 MB / 0.4937 GB, free: 6.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006704/0.1806, allocations: 0.5412 MB / 0.4942 GB, free: 5.598 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001188/0.1818, allocations: 0.8741 MB / 0.4951 GB, free: 4.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.286e-06/0.1819, allocations: 4 kB / 0.4951 GB, free: 4.609 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002622/0.1845, allocations: 1.258 MB / 0.4963 GB, free: 3.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.1845, allocations: 8 kB / 0.4963 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.1845, allocations: 12 kB / 0.4963 GB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/0.1858, allocations: 417.2 kB / 0.4967 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006086/0.1864, allocations: 163.8 kB / 0.4969 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007318/0.1938, allocations: 5.061 MB / 0.5018 GB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007105/0.1945, allocations: 28 kB / 0.5018 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.263e-05/0.1946, allocations: 39.98 kB / 0.5019 GB, free: 13.48 MB / 398.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.0002526/0.1949, allocations: 240 kB / 0.5021 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.1951, allocations: 102.7 kB / 0.5022 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.1966, allocations: 0.8635 MB / 0.5031 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.1967, allocations: 8 kB / 0.5031 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1967, allocations: 8 kB / 0.5031 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.1967, allocations: 3.984 kB / 0.5031 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002992/0.1997, allocations: 1.853 MB / 0.5049 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1997, allocations: 0 / 0.5049 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008172/0.2005, allocations: 167.8 kB / 0.505 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.2006, allocations: 4 kB / 0.5051 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-05/0.2006, allocations: 27.88 kB / 0.5051 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.59e-06/0.2006, allocations: 0 / 0.5051 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.2006, allocations: 7.938 kB / 0.5051 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/0.2027, allocations: 1.262 MB / 0.5063 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000449/0.2031, allocations: 231.8 kB / 0.5065 GB, free: 8.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.2033, allocations: 19.92 kB / 0.5066 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005638/0.2039, allocations: 27.98 kB / 0.5066 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.204, allocations: 40.59 kB / 0.5066 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.463e-05/0.2041, allocations: 27.94 kB / 0.5066 GB, free: 8.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007636/0.2048, allocations: 0.5107 MB / 0.5071 GB, free: 7.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2049, allocations: 0 / 0.5071 GB, free: 7.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001647/0.2065, allocations: 468 kB / 0.5076 GB, free: 7.492 MB / 398.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.0003083/0.2068, allocations: 143.7 kB / 0.5077 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004035/0.2109, allocations: 2.056 MB / 0.5097 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2109, allocations: 0.5 kB / 0.5097 GB, free: 5.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005844/0.2115, allocations: 355.5 kB / 0.5101 GB, free: 4.918 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.2127, allocations: 260.7 kB / 0.5103 GB, free: 4.676 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004148/0.2169, allocations: 2.513 MB / 0.5128 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008793/0.2178, allocations: 1.201 MB / 0.514 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008231/0.2186, allocations: 247.4 kB / 0.5142 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002049/0.2188, allocations: 67.42 kB / 0.5143 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2188, allocations: 0 / 0.5143 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of Templates: time 0.2624/0.4812, allocations: 17.89 MB / 0.5317 GB, free: 63.34 MB / 398.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)