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.00131/0.00131, allocations: 96.36 kB / 20.46 MB, free: 1.367 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.001479/0.001479, allocations: 215.1 kB / 23.76 MB, free: 4.527 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.462/1.462, allocations: 230.7 MB / 257.5 MB, free: 7.793 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.1106/0.1106, allocations: 24.03 MB / 338 MB, free: 11.32 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.002335/0.002335, allocations: 67.89 kB / 475.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3009, allocations: 59.57 MB / 0.5221 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00299/0.3039, allocations: 2.363 MB / 0.5244 GB, free: 8.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.3052, allocations: 0.7824 MB / 0.5252 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.3053, allocations: 8.25 kB / 0.5252 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.3057, allocations: 93.97 kB / 0.5253 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/0.3059, allocations: 141.9 kB / 0.5254 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.3063, allocations: 219.6 kB / 0.5256 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005307/0.3069, allocations: 0.5524 MB / 0.5262 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.307, allocations: 92.48 kB / 0.5263 GB, free: 7.746 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.3074, allocations: 244.5 kB / 0.5265 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002874/0.3076, allocations: 234.6 kB / 0.5267 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.337e-05/0.3077, allocations: 33.72 kB / 0.5268 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.007e-05/0.3078, allocations: 34.47 kB / 0.5268 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3079, allocations: 105.6 kB / 0.5269 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.308, allocations: 153.5 kB / 0.527 GB, free: 7.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.3084, allocations: 409.5 kB / 0.5274 GB, free: 7.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.3084, allocations: 0 / 0.5274 GB, free: 7.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.3084, allocations: 0 / 0.5274 GB, free: 7.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.3084, allocations: 0 / 0.5274 GB, free: 7.219 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.00165/0.31, allocations: 0.7701 MB / 0.5282 GB, free: 6.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.3101, allocations: 9.641 kB / 0.5282 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.3101, allocations: 52.23 kB / 0.5282 GB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000773/0.3109, allocations: 364.4 kB / 0.5286 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.3109, allocations: 24.25 kB / 0.5286 GB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.579e-05/0.311, allocations: 37.42 kB / 0.5286 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.3114, allocations: 302.2 kB / 0.5289 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3114, allocations: 0 / 0.5289 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.3115, allocations: 10.91 kB / 0.5289 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3115, allocations: 7.062 kB / 0.529 GB, free: 6.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003859/0.3119, allocations: 224.2 kB / 0.5292 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.3132, allocations: 0.8816 MB / 0.53 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007031/0.3139, allocations: 363.7 kB / 0.5304 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002086/0.3141, allocations: 138.7 kB / 0.5305 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.3141, allocations: 5.156 kB / 0.5305 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.33e-05/0.3141, allocations: 40.47 kB / 0.5305 GB, free: 5.406 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.543e-06/0.3141, allocations: 1.188 kB / 0.5305 GB, free: 5.406 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001711/0.3159, allocations: 0.9616 MB / 0.5315 GB, free: 4.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/0.3159, allocations: 63.66 kB / 0.5315 GB, free: 4.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007485/0.3166, allocations: 427.8 kB / 0.532 GB, free: 4.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.3166, allocations: 32.44 kB / 0.532 GB, free: 4.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3167, allocations: 210.4 kB / 0.5322 GB, free: 4.426 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.999e-05/0.3168, allocations: 148.1 kB / 0.5323 GB, free: 4.309 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.544e-05/0.3169, allocations: 72.2 kB / 0.5324 GB, free: 4.266 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.456e-05/0.317, allocations: 354.8 kB / 0.5327 GB, free: 3.934 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.3172, allocations: 109.3 kB / 0.5328 GB, free: 3.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.3175, allocations: 177.5 kB / 0.533 GB, free: 3.789 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.319, allocations: 0.6007 MB / 0.5336 GB, free: 3.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.319, allocations: 1.156 kB / 0.5336 GB, free: 3.555 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.0008638/0.3198, allocations: 0.5139 MB / 0.5341 GB, free: 3.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.3199, allocations: 5.156 kB / 0.5341 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3199, allocations: 2.156 kB / 0.5341 GB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002586/0.3201, allocations: 100.7 kB / 0.5342 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003607/0.3205, allocations: 84.84 kB / 0.5343 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004122/0.3246, allocations: 7.538 MB / 0.5416 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.325, allocations: 40 kB / 0.5417 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.325, allocations: 10.06 kB / 0.5417 GB, free: 11.73 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.0002238/0.3253, allocations: 168.6 kB / 0.5419 GB, free: 11.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.979e-05/0.3253, allocations: 48.97 kB / 0.5419 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.597e-05/0.3254, allocations: 50.52 kB / 0.5419 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3254, allocations: 7.422 kB / 0.542 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.3254, allocations: 5.609 kB / 0.542 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3254, allocations: 2.062 kB / 0.542 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.3267, allocations: 0.7444 MB / 0.5427 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3268, allocations: 3.938 kB / 0.5427 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.3271, allocations: 64.25 kB / 0.5428 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002383/0.3273, allocations: 76.58 kB / 0.5428 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.3273, allocations: 13.38 kB / 0.5428 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.3291, allocations: 1.735 MB / 0.5445 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3291, allocations: 0 / 0.5445 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009739/0.3301, allocations: 0.626 MB / 0.5451 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.126e-05/0.3302, allocations: 48.73 kB / 0.5452 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.3302, allocations: 16.41 kB / 0.5452 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.3306, allocations: 34.86 kB / 0.5452 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.3307, allocations: 26.92 kB / 0.5453 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.3307, allocations: 7.875 kB / 0.5453 GB, free: 9.086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006722/0.3314, allocations: 325.9 kB / 0.5456 GB, free: 8.953 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3314, allocations: 0 / 0.5456 GB, free: 8.953 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005413/0.3319, allocations: 81.81 kB / 0.5457 GB, free: 8.941 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.0001223/0.332, allocations: 117.3 kB / 0.5458 GB, free: 8.832 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000956/0.333, allocations: 0.6247 MB / 0.5464 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.333, allocations: 0 / 0.5464 GB, free: 8.387 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004283/0.3334, allocations: 287.8 kB / 0.5467 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.3339, allocations: 48.62 kB / 0.5467 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001743/0.3356, allocations: 1.051 MB / 0.5477 GB, free: 7.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.3358, allocations: 226.1 kB / 0.5479 GB, free: 7.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.336, allocations: 29.69 kB / 0.548 GB, free: 7.406 MB / 398.1 MB Notification: Performance of SimCode: time 4.2e-07/0.336, allocations: 0 / 0.548 GB, free: 7.406 MB / 398.1 MB Notification: Performance of Templates: time 0.01072/0.3467, allocations: 7.488 MB / 0.5553 GB, free: 4.145 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: 8.318069880828261] Failed to read output from testmodel.py, exit status != 0: 0.3559622308239341 0.369667976 0.058149674000000005 Calling exit ...