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.001084/0.001084, allocations: 110.3 kB / 17.75 MB, free: 5.352 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.001382/0.001382, allocations: 189.3 kB / 18.68 MB, free: 4.434 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1752/0.1752, allocations: 38.04 MB / 330.6 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 55.91 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.3007, allocations: 58.07 MB / 0.5048 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7): time 0.01305/0.3138, allocations: 13.34 MB / 0.5178 GB, free: 14.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.3273, allocations: 8.128 MB / 0.5258 GB, free: 8.531 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001896/0.3293, allocations: 49.88 kB / 0.5258 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1027/0.4319, allocations: 72.58 MB / 0.5967 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005388/0.4373, allocations: 1.427 MB / 0.5981 GB, free: 8.996 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003095/0.4405, allocations: 0.9948 MB / 0.5991 GB, free: 8.004 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0188/0.4593, allocations: 12.32 MB / 0.6111 GB, free: 11.66 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003073/0.4624, allocations: 1.923 MB / 0.613 GB, free: 9.684 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02622/0.4886, allocations: 18.89 MB / 0.6314 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002671/0.4913, allocations: 1.717 MB / 0.6331 GB, free: 5.047 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006955/0.492, allocations: 276 kB / 0.6334 GB, free: 4.777 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001859/0.4939, allocations: 0.8583 MB / 0.6342 GB, free: 3.918 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.4953, allocations: 1.227 MB / 0.6354 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002127/0.4974, allocations: 1.415 MB / 0.6368 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004571/0.502, allocations: 4.039 MB / 0.6407 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.502, allocations: 0 / 0.6407 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.833e-06/0.502, allocations: 0 / 0.6407 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.513e-05/0.5021, allocations: 0 / 0.6407 GB, free: 13.21 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.006966/0.5091, allocations: 3.12 MB / 0.6438 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.5092, allocations: 15.89 kB / 0.6438 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.5109, allocations: 385.5 kB / 0.6441 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003703/0.5146, allocations: 1.985 MB / 0.6461 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.5147, allocations: 155.7 kB / 0.6462 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004942/0.5152, allocations: 235.8 kB / 0.6465 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004184/0.5194, allocations: 2.756 MB / 0.6491 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.879e-05/0.5195, allocations: 15.78 kB / 0.6492 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/0.5197, allocations: 75.98 kB / 0.6492 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003616/0.52, allocations: 159.6 kB / 0.6494 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003948/0.524, allocations: 2.497 MB / 0.6518 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0122/0.5362, allocations: 8.668 MB / 0.6603 GB, free: 8.699 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/0.5387, allocations: 1.714 MB / 0.662 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00176/0.5405, allocations: 1.214 MB / 0.6631 GB, free: 5.73 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.5406, allocations: 21.31 kB / 0.6632 GB, free: 5.711 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002019/0.5427, allocations: 1.419 MB / 0.6646 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=200): time 3.888e-06/0.5427, allocations: 0 / 0.6646 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of matching and sorting (n=291): time 0.09824/0.6409, allocations: 29.7 MB / 0.6936 GB, free: 6.289 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.6411, allocations: 409.7 kB / 0.6939 GB, free: 5.801 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00225/0.6434, allocations: 1.532 MB / 0.6954 GB, free: 4.262 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002334/0.6436, allocations: 85.77 kB / 0.6955 GB, free: 4.172 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007424/0.6444, allocations: 0.9406 MB / 0.6964 GB, free: 3.219 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008326/0.6452, allocations: 0.9475 MB / 0.6974 GB, free: 2.258 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008739/0.6461, allocations: 0.5184 MB / 0.6979 GB, free: 1.73 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.52e-05/0.6462, allocations: 301.1 kB / 0.6982 GB, free: 1.434 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002681/0.6489, allocations: 1.658 MB / 0.6998 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002994/0.6519, allocations: 2.107 MB / 0.7018 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02312/0.675, allocations: 8.99 MB / 0.7106 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.675, allocations: 8 kB / 0.7106 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.2177/0.8927, allocations: 6.496 MB / 0.717 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.591e-05/0.8928, allocations: 36.06 kB / 0.717 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01333/0.9061, allocations: 5.889 MB / 0.7228 GB, free: 182.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007976/0.9142, allocations: 2.614 MB / 0.7253 GB, free: 182 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003034/0.9172, allocations: 0.7155 MB / 0.726 GB, free: 181.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04116/0.9584, allocations: 42.93 MB / 0.7679 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/0.9606, allocations: 184.6 kB / 0.7681 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/0.9608, allocations: 105.9 kB / 0.7682 GB, free: 149.6 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.002978/0.9638, allocations: 2.244 MB / 0.7704 GB, free: 148.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002219/0.9661, allocations: 2.059 MB / 0.7724 GB, free: 147.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01975/0.9858, allocations: 8.855 MB / 0.7811 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.202e-05/0.9859, allocations: 4 kB / 0.7811 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=397) (initialization_lambda0): time 0.01113/0.997, allocations: 6.411 MB / 0.7873 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.9971, allocations: 33.7 kB / 0.7874 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00993/1.007, allocations: 5.795 MB / 0.793 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006883/1.014, allocations: 2.605 MB / 0.7956 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/1.015, allocations: 375.4 kB / 0.7959 GB, free: 123.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03398/1.049, allocations: 36.64 MB / 0.8317 GB, free: 85.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002244/1.052, allocations: 163.8 kB / 0.8318 GB, free: 84.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/1.052, allocations: 104 kB / 0.8319 GB, free: 84.81 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.0007026/1.053, allocations: 400.4 kB / 0.8323 GB, free: 84.42 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004399/1.053, allocations: 225.3 kB / 0.8325 GB, free: 84.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008736/1.062, allocations: 5.42 MB / 0.8378 GB, free: 78.65 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.359e-05/1.062, allocations: 19.89 kB / 0.8379 GB, free: 78.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/1.062, allocations: 4 kB / 0.8379 GB, free: 78.62 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/1.063, allocations: 0.6114 MB / 0.8385 GB, free: 77.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003714/1.063, allocations: 83.88 kB / 0.8385 GB, free: 77.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/1.065, allocations: 143.8 kB / 0.8387 GB, free: 77.77 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005289/1.065, allocations: 269.5 kB / 0.8389 GB, free: 77.5 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01062/1.076, allocations: 6.147 MB / 0.8449 GB, free: 71.33 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007881/1.084, allocations: 6.94 MB / 0.8517 GB, free: 64.3 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002312/1.086, allocations: 2.101 MB / 0.8538 GB, free: 62.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001427/1.087, allocations: 1.056 MB / 0.8548 GB, free: 61.13 MB / 0.5606 GB Notification: Performance of Backend: time 2.31e-07/1.087, allocations: 0 / 0.8548 GB, free: 61.13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01679/1.104, allocations: 10.51 MB / 0.8651 GB, free: 50.29 MB / 0.5606 GB Notification: Performance of SimCode: time 0.007764/1.112, allocations: 6.951 MB / 0.8718 GB, free: 43.36 MB / 0.5606 GB Notification: Performance of Templates: time 0.3135/1.426, allocations: 74.71 MB / 0.9448 GB, free: 179.5 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)