Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.GenOrder3and7,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|turboGen1.generator.i.1.|turboGen1.generator.i.2.|turboGen1.generator.i.3.|turboGen1.generator.tau_el|turboGen2.generator.i.1.|turboGen2.generator.i.2.|turboGen2.generator.i.3.|turboGen2.generator.tau_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7") translateModel(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|turboGen1.generator.i.1.|turboGen1.generator.i.2.|turboGen1.generator.i.3.|turboGen1.generator.tau_el|turboGen2.generator.i.1.|turboGen2.generator.i.2.|turboGen2.generator.i.3.|turboGen2.generator.tau_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 114.3 kB / 17.75 MB, free: 5.305 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.001061/0.001061, allocations: 189.3 kB / 18.68 MB, free: 4.383 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.332/1.332, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2465/0.2465, allocations: 38.04 MB / 330.6 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2936, allocations: 58.05 MB / 0.5048 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7): time 0.0128/0.3064, allocations: 13.35 MB / 0.5178 GB, free: 14.37 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.3202, allocations: 8.115 MB / 0.5258 GB, free: 8.629 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002535/0.3228, allocations: 48.97 kB / 0.5258 GB, free: 8.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1032/0.426, allocations: 72.58 MB / 0.5967 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004236/0.4303, allocations: 1.423 MB / 0.5981 GB, free: 8.996 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.4331, allocations: 1.005 MB / 0.599 GB, free: 7.996 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0158/0.4489, allocations: 12.33 MB / 0.6111 GB, free: 11.65 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002667/0.4516, allocations: 1.927 MB / 0.613 GB, free: 9.668 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.025/0.4766, allocations: 18.89 MB / 0.6314 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002845/0.4795, allocations: 1.709 MB / 0.6331 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000951/0.4805, allocations: 272 kB / 0.6333 GB, free: 4.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002305/0.4828, allocations: 0.87 MB / 0.6342 GB, free: 3.898 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.4843, allocations: 1.227 MB / 0.6354 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002196/0.4865, allocations: 1.408 MB / 0.6368 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00447/0.491, allocations: 4.042 MB / 0.6407 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.491, allocations: 0 / 0.6407 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.491, allocations: 0 / 0.6407 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.351e-05/0.4911, allocations: 0 / 0.6407 GB, free: 13.2 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 520 * Number of variables: 520 Notification: Performance of Generate backend data structure: time 0.006174/0.4973, allocations: 3.124 MB / 0.6438 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.4973, allocations: 11.89 kB / 0.6438 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001677/0.499, allocations: 389.5 kB / 0.6441 GB, free: 9.602 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003864/0.5029, allocations: 1.985 MB / 0.6461 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.503, allocations: 151.7 kB / 0.6462 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000482/0.5035, allocations: 239.8 kB / 0.6465 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004153/0.5077, allocations: 2.756 MB / 0.6492 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.085e-05/0.5077, allocations: 7.906 kB / 0.6492 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.5079, allocations: 79.98 kB / 0.6492 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003925/0.5083, allocations: 155.6 kB / 0.6494 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003963/0.5123, allocations: 2.497 MB / 0.6518 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01318/0.5255, allocations: 8.656 MB / 0.6603 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.5281, allocations: 1.725 MB / 0.662 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.5299, allocations: 1.214 MB / 0.6631 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 8.453e-05/0.53, allocations: 25.3 kB / 0.6632 GB, free: 5.695 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002059/0.5321, allocations: 1.431 MB / 0.6646 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=200): time 4.148e-06/0.5321, allocations: 0 / 0.6646 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of matching and sorting (n=291): time 0.1027/0.6348, allocations: 29.69 MB / 0.6936 GB, free: 6.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/0.635, allocations: 409.8 kB / 0.694 GB, free: 5.781 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002528/0.6376, allocations: 1.528 MB / 0.6954 GB, free: 4.246 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003928/0.638, allocations: 85.69 kB / 0.6955 GB, free: 4.156 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008126/0.6388, allocations: 0.9367 MB / 0.6964 GB, free: 3.207 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009606/0.6398, allocations: 0.9514 MB / 0.6974 GB, free: 2.242 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.6408, allocations: 0.5222 MB / 0.6979 GB, free: 1.711 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.56e-05/0.6409, allocations: 301.1 kB / 0.6982 GB, free: 1.414 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/0.6436, allocations: 1.655 MB / 0.6998 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003136/0.6468, allocations: 2.111 MB / 0.7018 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02343/0.6702, allocations: 8.993 MB / 0.7106 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.427e-05/0.6703, allocations: 4 kB / 0.7106 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.2406/0.9109, allocations: 6.496 MB / 0.717 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/0.911, allocations: 35.95 kB / 0.717 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01253/0.9235, allocations: 5.89 MB / 0.7228 GB, free: 182.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008157/0.9317, allocations: 2.612 MB / 0.7253 GB, free: 182.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003195/0.9349, allocations: 0.7148 MB / 0.726 GB, free: 182 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04377/0.9787, allocations: 42.92 MB / 0.7679 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/0.981, allocations: 177.2 kB / 0.7681 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/0.9812, allocations: 113.3 kB / 0.7682 GB, free: 149.7 MB / 0.5606 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: $DER.turboGen2.generator.psi_rd[1] = 0.0 $DER.turboGen2.generator.psi_rq[1] = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003025/0.9843, allocations: 2.255 MB / 0.7704 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002479/0.9868, allocations: 2.054 MB / 0.7724 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02032/1.007, allocations: 8.856 MB / 0.7811 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.383e-05/1.007, allocations: 4 kB / 0.7811 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=397) (initialization_lambda0): time 0.01122/1.018, allocations: 6.402 MB / 0.7873 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/1.018, allocations: 33.7 kB / 0.7874 GB, free: 132.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009925/1.028, allocations: 5.793 MB / 0.793 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006855/1.035, allocations: 2.608 MB / 0.7956 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/1.037, allocations: 371.4 kB / 0.7959 GB, free: 123.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03348/1.07, allocations: 36.64 MB / 0.8317 GB, free: 85.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/1.072, allocations: 167.8 kB / 0.8318 GB, free: 84.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/1.073, allocations: 104 kB / 0.8319 GB, free: 84.74 MB / 0.5606 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.turboGen2.generator.psi_rd[1] = 0.0 $DER.turboGen2.generator.psi_rq[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 58 (system.initime,relayGrd.cnt,$PRE.relayGrd.cnt,$whenCondition1,$PRE.switchGrd1.switch_a.open,$PRE.switchGrd1.switch_b.open,$PRE.switchGrd1.switch_c.open,$PRE.switchGrd2.switch_a.open,$PRE.switchGrd2.switch_b.open,$PRE.switchGrd2.switch_c.open,relayGrd.y[3],$PRE.relayGrd.y[3],relayGrd.y[2],$PRE.relayGrd.y[2],relayGrd.y[1],$PRE.relayGrd.y[1],switchGrd2.switch_c.closed,switchGrd2.switch_c.open,switchGrd2.switch_c.arc,$PRE.switchGrd2.switch_c.arc,switchGrd2.switch_b.closed,switchGrd2.switch_b.open,switchGrd2.switch_b.arc,$PRE.switchGrd2.switch_b.arc,switchGrd2.switch_a.closed,switchGrd2.switch_a.open,switchGrd2.switch_a.arc,$PRE.switchGrd2.switch_a.arc,switchGrd1.switch_c.closed,switchGrd1.switch_c.open,switchGrd1.switch_c.arc,$PRE.switchGrd1.switch_c.arc,switchGrd1.switch_b.closed,switchGrd1.switch_b.open,switchGrd1.switch_b.arc,$PRE.switchGrd1.switch_b.arc,switchGrd1.switch_a.closed,switchGrd1.switch_a.open,switchGrd1.switch_a.arc,$PRE.switchGrd1.switch_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 2, 1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(3,23,100.0%), (1,2,100.0%), (6,11,77.8%), (1,3,100.0%), (5,25,52.0%), (1,2,100.0%), (1,4,100.0%), (6,12,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0006775/1.073, allocations: 392.6 kB / 0.8323 GB, free: 84.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004493/1.074, allocations: 233.2 kB / 0.8325 GB, free: 84.12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00874/1.083, allocations: 5.407 MB / 0.8378 GB, free: 78.59 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.102e-05/1.083, allocations: 19.94 kB / 0.8378 GB, free: 78.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/1.083, allocations: 192 / 0.8378 GB, free: 78.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001288/1.084, allocations: 0.6114 MB / 0.8384 GB, free: 77.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004087/1.084, allocations: 87.81 kB / 0.8385 GB, free: 77.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/1.086, allocations: 151.7 kB / 0.8387 GB, free: 77.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005207/1.086, allocations: 271.9 kB / 0.8389 GB, free: 77.44 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01151/1.098, allocations: 6.155 MB / 0.8449 GB, free: 71.25 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01037/1.108, allocations: 6.929 MB / 0.8517 GB, free: 64.23 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003362/1.112, allocations: 2.105 MB / 0.8538 GB, free: 62.11 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002102/1.114, allocations: 1.06 MB / 0.8548 GB, free: 61.05 MB / 0.5606 GB Notification: Performance of Backend: time 6.61e-07/1.114, allocations: 0 / 0.8548 GB, free: 61.05 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02262/1.136, allocations: 10.52 MB / 0.8651 GB, free: 50.21 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01237/1.149, allocations: 6.944 MB / 0.8718 GB, free: 43.29 MB / 0.5606 GB Notification: Performance of Templates: time 0.3205/1.469, allocations: 74.72 MB / 0.9448 GB, free: 179.6 MB / 0.5762 GB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe 2>&1)