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.001342/0.001342, allocations: 111.6 kB / 17.06 MB, free: 6 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.001466/0.001466, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1718/0.1718, allocations: 38.04 MB / 329.9 MB, free: 8.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 67.89 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3393, allocations: 58.05 MB / 0.5041 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.009241/0.3486, allocations: 9.253 MB / 0.5131 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007241/0.3558, allocations: 3.25 MB / 0.5163 GB, free: 15.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009381/0.3568, allocations: 42.72 kB / 0.5164 GB, free: 15 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001448/0.3583, allocations: 408 kB / 0.5167 GB, free: 14.76 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002077/0.3604, allocations: 0.813 MB / 0.5175 GB, free: 14.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.3616, allocations: 479.9 kB / 0.518 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002751/0.3644, allocations: 1.867 MB / 0.5198 GB, free: 13.15 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001484/0.3659, allocations: 1.122 MB / 0.5209 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001231/0.3671, allocations: 0.7635 MB / 0.5217 GB, free: 12.21 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001086/0.3682, allocations: 0.8068 MB / 0.5224 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.3684, allocations: 138.9 kB / 0.5226 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006742/0.3691, allocations: 386.3 kB / 0.5229 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005033/0.3696, allocations: 0.4889 MB / 0.5234 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007224/0.3703, allocations: 0.7052 MB / 0.5241 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00303/0.3734, allocations: 1.993 MB / 0.5261 GB, free: 10.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.3734, allocations: 2.312 kB / 0.5261 GB, free: 10.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3734, allocations: 0 / 0.5261 GB, free: 10.36 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.119e-05/0.3734, allocations: 0 / 0.5261 GB, free: 10.36 MB / 398.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.003602/0.3771, allocations: 1.634 MB / 0.5277 GB, free: 9.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.3771, allocations: 13.23 kB / 0.5277 GB, free: 9.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007768/0.3779, allocations: 189.8 kB / 0.5278 GB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.3796, allocations: 0.9531 MB / 0.5288 GB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.607e-05/0.3797, allocations: 80.84 kB / 0.5289 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003065/0.38, allocations: 122.2 kB / 0.529 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/0.3826, allocations: 1.352 MB / 0.5303 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.532e-05/0.3827, allocations: 2.375 kB / 0.5303 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001183/0.3828, allocations: 42.22 kB / 0.5303 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/0.3829, allocations: 70.34 kB / 0.5304 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.3849, allocations: 1.077 MB / 0.5315 GB, free: 7.309 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.008073/0.393, allocations: 5.088 MB / 0.5364 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001377/0.3944, allocations: 0.7618 MB / 0.5372 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000618/0.395, allocations: 353 kB / 0.5375 GB, free: 2.473 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.816e-05/0.3951, allocations: 15.69 kB / 0.5375 GB, free: 2.465 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.3951, allocations: 39.22 kB / 0.5376 GB, free: 2.422 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 3.436e-06/0.3951, allocations: 4 kB / 0.5376 GB, free: 2.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.006084/0.4012, allocations: 2.666 MB / 0.5402 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.239e-05/0.4013, allocations: 145.1 kB / 0.5403 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.4023, allocations: 0.7507 MB / 0.541 GB, free: 96 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.4024, allocations: 36.23 kB / 0.5411 GB, free: 56 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004445/0.4029, allocations: 0.5594 MB / 0.5416 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.4031, allocations: 258.7 kB / 0.5419 GB, free: 15.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.4034, allocations: 157.5 kB / 0.542 GB, free: 15.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4035, allocations: 343.1 kB / 0.5423 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005556/0.4041, allocations: 298.6 kB / 0.5426 GB, free: 14.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007522/0.4048, allocations: 0.5497 MB / 0.5432 GB, free: 14.26 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/0.4062, allocations: 0.9032 MB / 0.544 GB, free: 13.58 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.4062, allocations: 10.69 kB / 0.5441 GB, free: 13.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.003061/0.4093, allocations: 1.332 MB / 0.5454 GB, free: 12.87 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.4093, allocations: 8.344 kB / 0.5454 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.4093, allocations: 9.375 kB / 0.5454 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001527/0.4109, allocations: 425 kB / 0.5458 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.4116, allocations: 174.4 kB / 0.5459 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00841/0.42, allocations: 5.27 MB / 0.5511 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007527/0.4208, allocations: 35.98 kB / 0.5511 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.303e-05/0.4209, allocations: 36 kB / 0.5512 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009813/0.4219, allocations: 0.5643 MB / 0.5517 GB, free: 6.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006487/0.4225, allocations: 0.5295 MB / 0.5522 GB, free: 6.176 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001157/0.4237, allocations: 0.878 MB / 0.5531 GB, free: 5.191 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.897e-06/0.4237, allocations: 3.938 kB / 0.5531 GB, free: 5.188 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002513/0.4262, allocations: 1.273 MB / 0.5543 GB, free: 3.902 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.4262, allocations: 8 kB / 0.5543 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.4263, allocations: 8.312 kB / 0.5543 GB, free: 3.887 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.4276, allocations: 401 kB / 0.5547 GB, free: 3.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006334/0.4282, allocations: 171.7 kB / 0.5549 GB, free: 3.324 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007466/0.4357, allocations: 5.056 MB / 0.5598 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008015/0.4365, allocations: 31.98 kB / 0.5599 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-05/0.4366, allocations: 40 kB / 0.5599 GB, free: 14.05 MB / 430.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.000327/0.4369, allocations: 228 kB / 0.5601 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.4371, allocations: 94.81 kB / 0.5602 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.4387, allocations: 0.8791 MB / 0.5611 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.4387, allocations: 8 kB / 0.5611 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.4387, allocations: 4 kB / 0.5611 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.4387, allocations: 3.984 kB / 0.5611 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003045/0.4418, allocations: 1.857 MB / 0.5629 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.4418, allocations: 0 / 0.5629 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008572/0.4427, allocations: 159.8 kB / 0.563 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.357e-06/0.4427, allocations: 4 kB / 0.563 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.242e-05/0.4428, allocations: 23.94 kB / 0.5631 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.4428, allocations: 8.031 kB / 0.5631 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4428, allocations: 3.984 kB / 0.5631 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001841/0.4446, allocations: 1.26 MB / 0.5643 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004382/0.4451, allocations: 239.8 kB / 0.5645 GB, free: 9.156 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.4452, allocations: 15.94 kB / 0.5646 GB, free: 9.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.4457, allocations: 27.98 kB / 0.5646 GB, free: 9.113 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.839e-05/0.4458, allocations: 40.59 kB / 0.5646 GB, free: 9.074 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.4459, allocations: 23.98 kB / 0.5646 GB, free: 9.051 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006781/0.4465, allocations: 0.5107 MB / 0.5651 GB, free: 8.547 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.833e-06/0.4466, allocations: 0 / 0.5651 GB, free: 8.547 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001723/0.4483, allocations: 471.9 kB / 0.5656 GB, free: 8.086 MB / 430.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.0003182/0.4486, allocations: 153.1 kB / 0.5657 GB, free: 7.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003698/0.4523, allocations: 1.903 MB / 0.5676 GB, free: 6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4523, allocations: 0 / 0.5676 GB, free: 6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005871/0.4529, allocations: 357.1 kB / 0.5679 GB, free: 5.652 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.4543, allocations: 257.1 kB / 0.5682 GB, free: 5.406 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004075/0.4584, allocations: 2.47 MB / 0.5706 GB, free: 2.895 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000913/0.4594, allocations: 1.201 MB / 0.5718 GB, free: 1.664 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008377/0.4602, allocations: 243.4 kB / 0.572 GB, free: 1.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.4604, allocations: 75.42 kB / 0.5721 GB, free: 1.348 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4604, allocations: 0 / 0.5721 GB, free: 1.348 MB / 430.1 MB Notification: Performance of Templates: time 0.02924/0.4897, allocations: 18.17 MB / 0.5898 GB, free: 15.32 MB / 462.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)