Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.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.TieLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.|sensor2.p.1.|sensor2.p.2.|sensor2.p.3.|sensor3.p.1.|sensor3.p.2.|sensor3.p.3.|system.omega",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TieLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.|sensor2.p.1.|sensor2.p.2.|sensor2.p.3.|sensor3.p.1.|sensor3.p.2.|sensor3.p.3.|system.omega",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine") 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: 110.5 kB / 17.75 MB, free: 5.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.001358/0.001358, allocations: 187 kB / 18.68 MB, free: 4.406 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.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.04 MB / 330.6 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.88 kB / 458.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2879, allocations: 58.05 MB / 0.5048 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TieLine): time 0.01636/0.3042, allocations: 17.7 MB / 0.5221 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.3208, allocations: 10.17 MB / 0.532 GB, free: 4.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002516/0.3234, allocations: 78.66 kB / 0.5321 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.4942/0.8176, allocations: 212.8 MB / 0.7399 GB, free: 171.3 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004579/0.8222, allocations: 1.869 MB / 0.7417 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003423/0.8256, allocations: 1.697 MB / 0.7434 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.03166/0.8573, allocations: 31.74 MB / 0.7744 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003061/0.8604, allocations: 2.724 MB / 0.7771 GB, free: 136 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.055/0.9154, allocations: 54.54 MB / 0.8303 GB, free: 83.29 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003173/0.9186, allocations: 2.707 MB / 0.833 GB, free: 80.85 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0007064/0.9193, allocations: 404 kB / 0.8333 GB, free: 80.46 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00183/0.9212, allocations: 0.9726 MB / 0.8343 GB, free: 79.57 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001301/0.9225, allocations: 1.909 MB / 0.8362 GB, free: 77.68 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002032/0.9245, allocations: 2.151 MB / 0.8383 GB, free: 75.54 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004751/0.9293, allocations: 6.145 MB / 0.8443 GB, free: 69.55 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.9293, allocations: 7.734 kB / 0.8443 GB, free: 69.55 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.993e-06/0.9293, allocations: 0 / 0.8443 GB, free: 69.55 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001052/0.9294, allocations: 0 / 0.8443 GB, free: 69.55 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 703 * Number of variables: 703 Notification: Performance of Generate backend data structure: time 0.00891/0.9383, allocations: 4.75 MB / 0.8489 GB, free: 64.76 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.9384, allocations: 11.89 kB / 0.8489 GB, free: 64.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00262/0.941, allocations: 0.6514 MB / 0.8496 GB, free: 64.1 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006653/0.9477, allocations: 3.514 MB / 0.853 GB, free: 60.63 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.265e-05/0.9478, allocations: 200.1 kB / 0.8532 GB, free: 60.44 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006642/0.9485, allocations: 340.5 kB / 0.8535 GB, free: 60.12 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005097/0.9536, allocations: 3.878 MB / 0.8573 GB, free: 56.14 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.867e-05/0.9537, allocations: 7.906 kB / 0.8573 GB, free: 56.13 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/0.9539, allocations: 108.9 kB / 0.8574 GB, free: 56.03 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005914/0.9545, allocations: 253 kB / 0.8576 GB, free: 55.78 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004876/0.9594, allocations: 3.623 MB / 0.8612 GB, free: 52.14 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01667/0.9761, allocations: 12.81 MB / 0.8737 GB, free: 38.98 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.9798, allocations: 2.645 MB / 0.8763 GB, free: 36.33 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.9819, allocations: 1.662 MB / 0.8779 GB, free: 34.66 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.982, allocations: 35.69 kB / 0.8779 GB, free: 34.63 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001869/0.9839, allocations: 1.548 MB / 0.8794 GB, free: 33.07 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=223): time 3.917e-06/0.9839, allocations: 0 / 0.8794 GB, free: 33.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=273): time 0.04969/1.034, allocations: 21.05 MB / 0.9 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/1.034, allocations: 273.4 kB / 0.9003 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/1.037, allocations: 2.765 MB / 0.903 GB, free: 8.684 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001946/1.037, allocations: 77.69 kB / 0.903 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/1.038, allocations: 1.517 MB / 0.9045 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005246/1.038, allocations: 0.9597 MB / 0.9054 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007506/1.039, allocations: 0.5852 MB / 0.906 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.179e-05/1.039, allocations: 301.1 kB / 0.9063 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/1.041, allocations: 1.675 MB / 0.9079 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002311/1.044, allocations: 2.269 MB / 0.9102 GB, free: 1.074 MB / 0.5606 GB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.02341/1.067, allocations: 9.949 MB / 0.9199 GB, free: 6.816 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/1.067, allocations: 8 kB / 0.9199 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01164/1.079, allocations: 6.617 MB / 0.9263 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/1.079, allocations: 12.88 kB / 0.9264 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/1.079, allocations: 16 kB / 0.9264 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005737/1.084, allocations: 1.992 MB / 0.9283 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004464/1.089, allocations: 1.131 MB / 0.9294 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2477/1.337, allocations: 48.34 MB / 0.9766 GB, free: 181.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003192/1.34, allocations: 264 kB / 0.9769 GB, free: 181.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005879/1.341, allocations: 128.4 kB / 0.977 GB, free: 181.5 MB / 0.5919 GB Warning: Assuming fixed start value for the following 6 variables: turboGen1.generator.i_s[1]:VARIABLE(start = turboGen1.generator.i_s_start[1] unit = "A" fixed = true nominal = 1.0 stateSelect=StateSelect.prefer ) "stator current dq0 in rotor-system" type: Real [3] turboGen1.generator.i_s[2]:VARIABLE(start = turboGen1.generator.i_s_start[2] unit = "A" fixed = true nominal = 1.0 stateSelect=StateSelect.prefer ) "stator current dq0 in rotor-system" type: Real [3] turboGen3.generator.i_s[1]:VARIABLE(start = turboGen3.generator.i_s_start[1] unit = "A" fixed = true nominal = 1.0 stateSelect=StateSelect.prefer ) "stator current dq0 in rotor-system" type: Real [3] setpts3.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts2.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts1.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization system: $DER.turboGen1.generator.psi_rd[1] = 0.0 $DER.turboGen1.generator.psi_rq[1] = 0.0 $DER.turboGen2.generator.psi_rd[1] = 0.0 $DER.turboGen2.generator.psi_rq[1] = 0.0 $DER.turboGen3.generator.psi_rd[1] = 0.0 $DER.turboGen3.generator.psi_rq[1] = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.004488/1.345, allocations: 2.556 MB / 0.9795 GB, free: 180.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002834/1.348, allocations: 2.184 MB / 0.9816 GB, free: 179.3 MB / 0.5919 GB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0234/1.371, allocations: 9.761 MB / 0.9912 GB, free: 175.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.525e-05/1.371, allocations: 2.844 kB / 0.9912 GB, free: 175.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=412) (initialization_lambda0): time 0.01001/1.381, allocations: 6.463 MB / 0.9975 GB, free: 172.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/1.381, allocations: 10.91 kB / 0.9975 GB, free: 172.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.108e-05/1.381, allocations: 14.66 kB / 0.9975 GB, free: 172.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005161/1.387, allocations: 1.999 MB / 0.9995 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/1.389, allocations: 0.5998 MB / 1 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02888/1.418, allocations: 38.85 MB / 1.038 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002855/1.421, allocations: 241.8 kB / 1.038 GB, free: 132.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002284/1.421, allocations: 120 kB / 1.038 GB, free: 132.2 MB / 0.5919 GB Warning: Assuming fixed start value for the following 6 variables: turboGen1.generator.i_s[1]:VARIABLE(start = turboGen1.generator.i_s_start[1] unit = "A" fixed = true nominal = 1.0 stateSelect=StateSelect.prefer ) "stator current dq0 in rotor-system" type: Real [3] turboGen1.generator.i_s[2]:VARIABLE(start = turboGen1.generator.i_s_start[2] unit = "A" fixed = true nominal = 1.0 stateSelect=StateSelect.prefer ) "stator current dq0 in rotor-system" type: Real [3] turboGen3.generator.i_s[1]:VARIABLE(start = turboGen3.generator.i_s_start[1] unit = "A" fixed = true nominal = 1.0 stateSelect=StateSelect.prefer ) "stator current dq0 in rotor-system" type: Real [3] setpts3.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts2.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real setpts1.p_set:VARIABLE(start = 1.0 unit = "1" fixed = true protected = true ) "setpt turbine power pu" type: Real Warning: The initial conditions are over specified. The following 6 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.turboGen1.generator.psi_rd[1] = 0.0 $DER.turboGen1.generator.psi_rq[1] = 0.0 $DER.turboGen2.generator.psi_rd[1] = 0.0 $DER.turboGen2.generator.psi_rq[1] = 0.0 $DER.turboGen3.generator.psi_rd[1] = 0.0 $DER.turboGen3.generator.psi_rq[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (310): * Single equations (assignments): 286 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 8 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 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): 13 systems {(1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (4,20,62.5%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,2), (7,34), (3,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0007315/1.422, allocations: 404.7 kB / 1.039 GB, free: 131.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004558/1.422, allocations: 321.4 kB / 1.039 GB, free: 131.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007809/1.43, allocations: 5.424 MB / 1.044 GB, free: 125.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.411e-05/1.43, allocations: 15.94 kB / 1.044 GB, free: 125.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/1.43, allocations: 0 / 1.044 GB, free: 125.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/1.431, allocations: 0.7074 MB / 1.045 GB, free: 125.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004128/1.432, allocations: 98.38 kB / 1.045 GB, free: 125.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/1.434, allocations: 215.7 kB / 1.045 GB, free: 124.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003901/1.434, allocations: 233.8 kB / 1.046 GB, free: 124.7 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01102/1.445, allocations: 5.764 MB / 1.051 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007076/1.452, allocations: 6.163 MB / 1.057 GB, free: 112.6 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00195/1.454, allocations: 1.844 MB / 1.059 GB, free: 110.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002797/1.457, allocations: 1.907 MB / 1.061 GB, free: 108.9 MB / 0.5919 GB Notification: Performance of Backend: time 6.42e-07/1.457, allocations: 0 / 1.061 GB, free: 108.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01771/1.475, allocations: 11.56 MB / 1.072 GB, free: 96.88 MB / 0.5919 GB Notification: Performance of SimCode: time 0.0109/1.486, allocations: 9.341 MB / 1.081 GB, free: 87.6 MB / 0.5919 GB Notification: Performance of Templates: time 0.1011/1.587, allocations: 82.59 MB / 1.162 GB, free: 5.402 MB / 0.5919 GB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TieLine.pipe 2>&1)