Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 112.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 189.4 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1006/0.1006, allocations: 22.92 MB / 329.2 MB, free: 2.133 MB / 254.1 MB
"
[Timeout remaining time 180]
Using package AES with version  (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P")
translateModel(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.89 kB / 461.1 MB, free: 0.6602 MB / 318.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1205, allocations: 58.12 MB / 0.507 GB, free: 6.434 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P): time 0.003221/0.1237, allocations: 1.496 MB / 0.5085 GB, free: 4.918 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0008138/0.1245, allocations: 435.1 kB / 0.5089 GB, free: 4.492 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 4.942e-05/0.1246, allocations: 0 / 0.5089 GB, free: 4.492 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 6.039e-05/0.1246, allocations: 7.922 kB / 0.5089 GB, free: 4.484 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.1248, allocations: 15.86 kB / 0.5089 GB, free: 4.469 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 5.226e-05/0.1249, allocations: 15.91 kB / 0.509 GB, free: 4.453 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001073/0.125, allocations: 67.77 kB / 0.509 GB, free: 4.387 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 7.303e-05/0.125, allocations: 4 kB / 0.509 GB, free: 4.383 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.1252, allocations: 39.8 kB / 0.5091 GB, free: 4.344 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.64e-05/0.1252, allocations: 35.81 kB / 0.5091 GB, free: 4.309 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.1253, allocations: 4 kB / 0.5091 GB, free: 4.305 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.522e-05/0.1253, allocations: 8 kB / 0.5091 GB, free: 4.297 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.481e-05/0.1253, allocations: 15.92 kB / 0.5091 GB, free: 4.281 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 4.687e-05/0.1254, allocations: 23.88 kB / 0.5091 GB, free: 4.258 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.1255, allocations: 47.69 kB / 0.5092 GB, free: 4.211 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1255, allocations: 0 / 0.5092 GB, free: 4.211 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.312e-06/0.1255, allocations: 0 / 0.5092 GB, free: 4.211 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 5.139e-06/0.1255, allocations: 0 / 0.5092 GB, free: 4.211 MB / 382.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 12
 * Number of variables: 12
Notification: Performance of Generate backend data structure: time 0.0005995/0.1261, allocations: 310.1 kB / 0.5095 GB, free: 3.879 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1261, allocations: 11.98 kB / 0.5095 GB, free: 3.867 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.1262, allocations: 12.89 kB / 0.5095 GB, free: 3.855 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.1264, allocations: 126.4 kB / 0.5096 GB, free: 3.707 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.1264, allocations: 4.375 kB / 0.5096 GB, free: 3.703 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/0.1264, allocations: 8.375 kB / 0.5096 GB, free: 3.695 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001555/0.1266, allocations: 73.48 kB / 0.5097 GB, free: 3.617 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.1266, allocations: 0 / 0.5097 GB, free: 3.617 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1266, allocations: 0 / 0.5097 GB, free: 3.617 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1266, allocations: 0 / 0.5097 GB, free: 3.617 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 8.431e-05/0.1267, allocations: 35.92 kB / 0.5098 GB, free: 3.582 MB / 382.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005799/0.1273, allocations: 283.8 kB / 0.51 GB, free: 3.262 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002686/0.1275, allocations: 86.42 kB / 0.5101 GB, free: 3.168 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 6.293e-05/0.1276, allocations: 32.94 kB / 0.5101 GB, free: 3.133 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.1276, allocations: 0 / 0.5101 GB, free: 3.133 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.1276, allocations: 34.56 kB / 0.5102 GB, free: 3.09 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=9): time 9.12e-07/0.1276, allocations: 0 / 0.5102 GB, free: 3.09 MB / 382.1 MB
Notification: Performance of matching and sorting (n=10): time 0.000735/0.1284, allocations: 310 kB / 0.5105 GB, free: 2.75 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.1284, allocations: 59.34 kB / 0.5105 GB, free: 2.68 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.1286, allocations: 130.1 kB / 0.5106 GB, free: 2.539 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.1286, allocations: 29.7 kB / 0.5107 GB, free: 2.504 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.052e-05/0.1287, allocations: 99.98 kB / 0.5108 GB, free: 2.402 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.1287, allocations: 39.69 kB / 0.5108 GB, free: 2.363 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.939e-05/0.1288, allocations: 29.7 kB / 0.5108 GB, free: 2.328 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001444/0.1289, allocations: 314.8 kB / 0.5111 GB, free: 2.012 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.512e-05/0.1289, allocations: 23.98 kB / 0.5112 GB, free: 1.988 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.115e-05/0.129, allocations: 45.23 kB / 0.5112 GB, free: 1.938 MB / 382.1 MB
Error: Initialization problem is structural singular. Please, check the initial conditions.
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.1294, allocations: 157.6 kB / 0.5114 GB, free: 1.777 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1294, allocations: 4 kB / 0.5114 GB, free: 1.773 MB / 382.1 MB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002414/0.1297, allocations: 130.4 kB / 0.5115 GB, free: 1.637 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1297, allocations: 4 kB / 0.5115 GB, free: 1.633 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1297, allocations: 0 / 0.5115 GB, free: 1.633 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0001468/0.1298, allocations: 33.58 kB / 0.5115 GB, free: 1.598 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.488e-05/0.1299, allocations: 31.98 kB / 0.5115 GB, free: 1.566 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2971/0.427, allocations: 1.463 MB / 0.513 GB, free: 13.79 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001364/0.4271, allocations: 2.859 kB / 0.513 GB, free: 13.79 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.4271, allocations: 7.094 kB / 0.513 GB, free: 13.79 MB / 382.1 MB
Warning: Assuming fixed start value for the following 1 variables:
         deltag:VARIABLE(unit = \"rad\" fixed = true )  \"generator angle wrt port\" type: Real
Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system:
         Pm = Pcmd.
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (12):
 * Single equations (assignments): 11
 * 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
   {(1,3)}
Notification: Performance of prepare postOptimizeDAE: time 0.0001422/0.4273, allocations: 114.3 kB / 0.5131 GB, free: 13.68 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.711e-05/0.4273, allocations: 10.83 kB / 0.5131 GB, free: 13.68 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.598e-05/0.4274, allocations: 15.28 kB / 0.5131 GB, free: 13.67 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.4274, allocations: 6.625 kB / 0.5131 GB, free: 13.67 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4274, allocations: 2.406 kB / 0.5131 GB, free: 13.67 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4274, allocations: 0.6094 kB / 0.5131 GB, free: 13.67 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006575/0.4281, allocations: 350.6 kB / 0.5135 GB, free: 13.39 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.4281, allocations: 2.359 kB / 0.5135 GB, free: 13.39 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.4282, allocations: 19.89 kB / 0.5135 GB, free: 13.39 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/0.4283, allocations: 38.3 kB / 0.5135 GB, free: 13.39 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.4284, allocations: 5.062 kB / 0.5135 GB, free: 13.39 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009645/0.4293, allocations: 1.476 MB / 0.515 GB, free: 12.04 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4293, allocations: 3.938 kB / 0.515 GB, free: 12.04 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.4296, allocations: 254.2 kB / 0.5152 GB, free: 11.89 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.728e-05/0.4296, allocations: 10.38 kB / 0.5152 GB, free: 11.89 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/0.4297, allocations: 2 kB / 0.5152 GB, free: 11.89 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.484e-05/0.4297, allocations: 0.6875 kB / 0.5152 GB, free: 11.89 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.96e-05/0.4298, allocations: 11.56 kB / 0.5152 GB, free: 11.89 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.4298, allocations: 2.406 kB / 0.5152 GB, free: 11.89 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 6.747e-05/0.4298, allocations: 100.8 kB / 0.5153 GB, free: 11.82 MB / 382.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4298, allocations: 0 / 0.5153 GB, free: 11.82 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0003771/0.4302, allocations: 26 kB / 0.5154 GB, free: 11.82 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 3 (thetap,deltag,wg)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 6
 * 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
   {(1,3)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001056/0.4303, allocations: 99.89 kB / 0.5155 GB, free: 11.73 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003772/0.4307, allocations: 180.9 kB / 0.5156 GB, free: 11.62 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4307, allocations: 3.281 kB / 0.5156 GB, free: 11.62 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.4309, allocations: 157.3 kB / 0.5158 GB, free: 11.5 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000243/0.4311, allocations: 16.28 kB / 0.5158 GB, free: 11.5 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008234/0.4319, allocations: 420.6 kB / 0.5162 GB, free: 11.27 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.4321, allocations: 0.6967 MB / 0.5169 GB, free: 10.57 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 3.655e-05/0.4321, allocations: 7.828 kB / 0.5169 GB, free: 10.57 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.28e-05/0.4322, allocations: 12.03 kB / 0.5169 GB, free: 10.57 MB / 382.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.4322, allocations: 0 / 0.5169 GB, free: 10.57 MB / 382.1 MB
Notification: Performance of Templates: time 0.004931/0.4371, allocations: 1.27 MB / 0.5181 GB, free: 10.48 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.makefile [Timeout 660]
(rm -f AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; mkfifo AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe ; head -c 1048576 < AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe >> ../files/AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.sim & ./AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P  -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.ProcessComponents.Electric.Generators_PAport.Generator_order0_prescribed_P.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.135203893296421]
Failed to read output from testmodel.py, exit status != 0:
0.4450338613241911 0.46831989100000004 0.33822866
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fee076997b0>