Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001516/0.001516, allocations: 100.3 kB / 19.72 MB, free: 1.785 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00258/0.00258, allocations: 204.6 kB / 23.01 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.583/1.583, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.1099/0.1099, allocations: 24.04 MB / 337.2 MB, free: 11.33 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002551/0.002551, allocations: 71.91 kB / 474.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4109, allocations: 59.57 MB / 0.5214 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003595/0.4145, allocations: 2.367 MB / 0.5237 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.4159, allocations: 0.7819 MB / 0.5245 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001783/0.4161, allocations: 8.344 kB / 0.5245 GB, free: 8.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004461/0.4166, allocations: 93.86 kB / 0.5246 GB, free: 8.305 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003392/0.4169, allocations: 133.4 kB / 0.5247 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.4174, allocations: 225 kB / 0.5249 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006603/0.4181, allocations: 0.5607 MB / 0.5254 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002104/0.4183, allocations: 91.36 kB / 0.5255 GB, free: 7.828 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003752/0.4187, allocations: 237.8 kB / 0.5258 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003519/0.419, allocations: 228.9 kB / 0.526 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.191e-05/0.4191, allocations: 33.75 kB / 0.526 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.416e-05/0.4192, allocations: 34.44 kB / 0.526 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.4193, allocations: 110.7 kB / 0.5262 GB, free: 7.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.4195, allocations: 157.3 kB / 0.5263 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004261/0.4199, allocations: 403.9 kB / 0.5267 GB, free: 7.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4199, allocations: 0 / 0.5267 GB, free: 7.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4199, allocations: 1.891 kB / 0.5267 GB, free: 7.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.4199, allocations: 0 / 0.5267 GB, free: 7.309 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001816/0.4217, allocations: 0.7672 MB / 0.5274 GB, free: 6.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.4218, allocations: 9.953 kB / 0.5274 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.79e-05/0.4219, allocations: 51.05 kB / 0.5275 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008344/0.4227, allocations: 372.9 kB / 0.5279 GB, free: 6.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.4227, allocations: 24.16 kB / 0.5279 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-05/0.4228, allocations: 41.48 kB / 0.5279 GB, free: 6.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/0.4233, allocations: 295.8 kB / 0.5282 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.305e-05/0.4233, allocations: 0.75 kB / 0.5282 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.4233, allocations: 19.22 kB / 0.5282 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4234, allocations: 7.188 kB / 0.5282 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004124/0.4238, allocations: 219.2 kB / 0.5284 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.4252, allocations: 0.8788 MB / 0.5293 GB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007638/0.426, allocations: 359.7 kB / 0.5296 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002239/0.4262, allocations: 144.1 kB / 0.5298 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.4262, allocations: 4.578 kB / 0.5298 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.4263, allocations: 36.94 kB / 0.5298 GB, free: 5.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 2.334e-06/0.4263, allocations: 1.094 kB / 0.5298 GB, free: 5.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001955/0.4282, allocations: 0.9658 MB / 0.5308 GB, free: 4.977 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.4282, allocations: 55.69 kB / 0.5308 GB, free: 4.914 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008411/0.4291, allocations: 428.6 kB / 0.5312 GB, free: 4.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.4291, allocations: 35.42 kB / 0.5313 GB, free: 4.688 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.4292, allocations: 206.3 kB / 0.5314 GB, free: 4.516 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.592e-05/0.4293, allocations: 148.7 kB / 0.5316 GB, free: 4.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.4294, allocations: 72.12 kB / 0.5317 GB, free: 4.355 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.407e-05/0.4295, allocations: 350.1 kB / 0.532 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.4298, allocations: 109.5 kB / 0.5321 GB, free: 3.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.4301, allocations: 173.9 kB / 0.5323 GB, free: 3.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.4318, allocations: 0.6121 MB / 0.5329 GB, free: 3.641 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4318, allocations: 1.062 kB / 0.5329 GB, free: 3.641 MB / 382.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=52) (initialization): time 0.00113/0.433, allocations: 0.5032 MB / 0.5334 GB, free: 3.391 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.221e-05/0.433, allocations: 7.453 kB / 0.5334 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.433, allocations: 1.344 kB / 0.5334 GB, free: 3.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000337/0.4333, allocations: 102.7 kB / 0.5335 GB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003743/0.4337, allocations: 88.47 kB / 0.5335 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005074/0.4388, allocations: 7.538 MB / 0.5409 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006218/0.4394, allocations: 44.19 kB / 0.5409 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.4394, allocations: 15.08 kB / 0.541 GB, free: 11.81 MB / 398.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0003788/0.4398, allocations: 166.9 kB / 0.5411 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.4399, allocations: 41.16 kB / 0.5412 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.997e-05/0.44, allocations: 55.42 kB / 0.5412 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.378e-06/0.44, allocations: 7.188 kB / 0.5412 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.4401, allocations: 1.875 kB / 0.5412 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.4401, allocations: 2.016 kB / 0.5412 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.4418, allocations: 0.7476 MB / 0.542 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4418, allocations: 5.094 kB / 0.542 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003278/0.4421, allocations: 54.83 kB / 0.542 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000288/0.4424, allocations: 80.98 kB / 0.5421 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.575e-05/0.4424, allocations: 13.61 kB / 0.5421 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002036/0.4445, allocations: 1.742 MB / 0.5438 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4445, allocations: 0.875 kB / 0.5438 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.4456, allocations: 0.61 MB / 0.5444 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.4457, allocations: 50.12 kB / 0.5444 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.214e-05/0.4458, allocations: 10.8 kB / 0.5445 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.4461, allocations: 39.55 kB / 0.5445 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.4462, allocations: 25.91 kB / 0.5445 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.331e-05/0.4463, allocations: 13.59 kB / 0.5445 GB, free: 9.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007242/0.447, allocations: 324.3 kB / 0.5448 GB, free: 9.047 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.447, allocations: 1.156 kB / 0.5448 GB, free: 9.047 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000761/0.4477, allocations: 81.62 kB / 0.5449 GB, free: 9.035 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (g1.x_scaled[1],g2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.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 (31): * Single equations (assignments): 30 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001737/0.4479, allocations: 109.4 kB / 0.545 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.449, allocations: 0.6285 MB / 0.5456 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.449, allocations: 1.219 kB / 0.5456 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004613/0.4495, allocations: 289.2 kB / 0.5459 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.45, allocations: 58.84 kB / 0.546 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.4518, allocations: 1.022 MB / 0.547 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.4521, allocations: 234.8 kB / 0.5472 GB, free: 7.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001953/0.4523, allocations: 45.08 kB / 0.5472 GB, free: 7.508 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.4524, allocations: 27.72 kB / 0.5473 GB, free: 7.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4524, allocations: 0 / 0.5473 GB, free: 7.5 MB / 398.1 MB Notification: Performance of Templates: time 0.0107/0.4631, allocations: 4.584 MB / 0.5517 GB, free: 5.883 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.sim & ./AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.424265732988715] Failed to read output from testmodel.py, exit status != 0: 0.4733486510813236 0.487858318 0.064586251 Calling exit ...