Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7") translateModel(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_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.001179/0.001179, allocations: 104.8 kB / 17.74 MB, free: 5.316 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.001643/0.001644, allocations: 194.9 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.39/1.39, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1747/0.1747, allocations: 37.98 MB / 309.9 MB, free: 5.945 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.91 kB / 432.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1016, allocations: 55.25 MB / 487.8 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.GenOrder3and7): time 0.01407/0.1157, allocations: 13.36 MB / 0.4894 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.1286, allocations: 8.172 MB / 0.4974 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001731/0.1304, allocations: 55.69 kB / 0.4975 GB, free: 2.641 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeComponents: time 0.3372/0.4676, allocations: 72.55 MB / 0.5683 GB, free: 19.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003517/0.4712, allocations: 1.397 MB / 0.5697 GB, free: 18.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002051/0.4733, allocations: 1.003 MB / 0.5706 GB, free: 17.85 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01332/0.4866, allocations: 12.32 MB / 0.5827 GB, free: 6.418 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0023/0.4889, allocations: 1.931 MB / 0.5846 GB, free: 4.512 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02529/0.5142, allocations: 18.88 MB / 0.603 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003056/0.5173, allocations: 1.722 MB / 0.6047 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008231/0.5182, allocations: 272 kB / 0.6049 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002106/0.5203, allocations: 0.8589 MB / 0.6058 GB, free: 15.71 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001204/0.5215, allocations: 1.221 MB / 0.607 GB, free: 14.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001909/0.5234, allocations: 1.424 MB / 0.6084 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004622/0.5281, allocations: 4.049 MB / 0.6123 GB, free: 9.145 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.5281, allocations: 1.5 kB / 0.6123 GB, free: 9.145 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5281, allocations: 0 / 0.6123 GB, free: 9.145 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.84e-05/0.5282, allocations: 4 kB / 0.6123 GB, free: 9.141 MB / 446.1 MB 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.007588/0.5358, allocations: 3.127 MB / 0.6154 GB, free: 5.965 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.5359, allocations: 11.89 kB / 0.6154 GB, free: 5.953 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001863/0.5377, allocations: 385.5 kB / 0.6158 GB, free: 5.574 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004287/0.542, allocations: 2.007 MB / 0.6177 GB, free: 3.594 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.5422, allocations: 158.8 kB / 0.6179 GB, free: 3.441 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005078/0.5427, allocations: 238.1 kB / 0.6181 GB, free: 3.215 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004343/0.547, allocations: 2.751 MB / 0.6208 GB, free: 396 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.516e-05/0.5471, allocations: 11.89 kB / 0.6208 GB, free: 384 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001985/0.5473, allocations: 83.89 kB / 0.6209 GB, free: 304 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003773/0.5477, allocations: 155.6 kB / 0.621 GB, free: 148 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004212/0.5519, allocations: 2.483 MB / 0.6234 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01385/0.5658, allocations: 8.684 MB / 0.6319 GB, free: 4.883 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.5685, allocations: 1.714 MB / 0.6336 GB, free: 3.148 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002028/0.5706, allocations: 1.22 MB / 0.6348 GB, free: 1.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.5707, allocations: 25.22 kB / 0.6348 GB, free: 1.891 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002282/0.573, allocations: 1.412 MB / 0.6362 GB, free: 456 kB / 462.1 MB Notification: Performance of pre-optimization done (n=200): time 6.071e-06/0.573, allocations: 0 / 0.6362 GB, free: 456 kB / 462.1 MB Notification: Performance of matching and sorting (n=291): time 0.1006/0.6736, allocations: 29.71 MB / 0.6652 GB, free: 2.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002369/0.6738, allocations: 409.8 kB / 0.6656 GB, free: 2.051 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002556/0.6764, allocations: 1.548 MB / 0.6671 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00023/0.6767, allocations: 77.7 kB / 0.6672 GB, free: 424 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001066/0.6777, allocations: 0.9536 MB / 0.6681 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009618/0.6787, allocations: 0.9482 MB / 0.669 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009292/0.6797, allocations: 0.5258 MB / 0.6696 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.6798, allocations: 313.1 kB / 0.6699 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/0.6827, allocations: 1.651 MB / 0.6715 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003173/0.6859, allocations: 2.115 MB / 0.6735 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02357/0.7095, allocations: 8.99 MB / 0.6823 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/0.7095, allocations: 4 kB / 0.6823 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=397) (initialization): time 0.01401/0.7235, allocations: 6.496 MB / 0.6887 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.775e-05/0.7236, allocations: 45.86 kB / 0.6887 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01214/0.7357, allocations: 5.885 MB / 0.6945 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0079/0.7437, allocations: 2.605 MB / 0.697 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00278/0.7465, allocations: 0.7215 MB / 0.6977 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05076/0.7972, allocations: 42.93 MB / 0.7396 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002643/0.7999, allocations: 179.7 kB / 0.7398 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005802/0.8005, allocations: 103.4 kB / 0.7399 GB, free: 3.059 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.004719/0.8053, allocations: 2.246 MB / 0.7421 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.236/1.041, allocations: 2.063 MB / 0.7441 GB, free: 195.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02303/1.064, allocations: 8.849 MB / 0.7527 GB, free: 194.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.51e-05/1.064, allocations: 3.25 kB / 0.7527 GB, free: 194.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=397) (initialization_lambda0): time 0.01331/1.078, allocations: 6.409 MB / 0.759 GB, free: 192.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.175e-05/1.078, allocations: 34.7 kB / 0.759 GB, free: 192.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01045/1.088, allocations: 5.785 MB / 0.7647 GB, free: 190.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00685/1.095, allocations: 2.611 MB / 0.7672 GB, free: 189.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/1.097, allocations: 376 kB / 0.7676 GB, free: 189.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03275/1.129, allocations: 36.63 MB / 0.8034 GB, free: 157 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002172/1.131, allocations: 170.3 kB / 0.8035 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/1.132, allocations: 104 kB / 0.8036 GB, free: 156.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_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.0007184/1.132, allocations: 403.8 kB / 0.804 GB, free: 156.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004788/1.133, allocations: 233 kB / 0.8042 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00852/1.141, allocations: 5.409 MB / 0.8095 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/1.141, allocations: 15.89 kB / 0.8095 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/1.141, allocations: 4 kB / 0.8095 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/1.143, allocations: 0.6149 MB / 0.8101 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003429/1.143, allocations: 82.41 kB / 0.8102 GB, free: 150 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001339/1.144, allocations: 154.4 kB / 0.8104 GB, free: 149.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004938/1.145, allocations: 265.6 kB / 0.8106 GB, free: 149.6 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01045/1.155, allocations: 6.163 MB / 0.8166 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00811/1.163, allocations: 6.926 MB / 0.8234 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002296/1.166, allocations: 2.108 MB / 0.8255 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001477/1.167, allocations: 1.06 MB / 0.8265 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of Backend: time 2.71e-07/1.167, allocations: 4 kB / 0.8265 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01723/1.184, allocations: 10.5 MB / 0.8368 GB, free: 122.4 MB / 0.5606 GB Notification: Performance of SimCode: time 0.008377/1.193, allocations: 6.962 MB / 0.8436 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of Templates: time 0.09785/1.291, allocations: 74.74 MB / 0.9165 GB, free: 40.59 MB / 0.5606 GB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.GenOrder3and7.pipe 2>&1)