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.00168/0.00168, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.002244/0.002244, allocations: 216.9 kB / 23.01 MB, free: 5.125 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.498/1.498, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.1077/0.1077, allocations: 24.12 MB / 337.3 MB, free: 11.44 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.002287/0.002287, allocations: 75.88 kB / 474.6 MB, free: 5.902 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3459, allocations: 59.61 MB / 0.5216 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003268/0.3492, allocations: 2.552 MB / 0.5241 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.3506, allocations: 0.8175 MB / 0.5249 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.3508, allocations: 8.062 kB / 0.5249 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003892/0.3512, allocations: 97.95 kB / 0.525 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.3515, allocations: 133 kB / 0.5252 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004311/0.3519, allocations: 225.4 kB / 0.5254 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006486/0.3526, allocations: 0.5686 MB / 0.5259 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001976/0.3528, allocations: 103.8 kB / 0.526 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003823/0.3531, allocations: 235.5 kB / 0.5263 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003314/0.3535, allocations: 250.4 kB / 0.5265 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.098e-05/0.3535, allocations: 33.09 kB / 0.5265 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.137e-05/0.3536, allocations: 34.94 kB / 0.5266 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3537, allocations: 112.2 kB / 0.5267 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.3539, allocations: 187.8 kB / 0.5268 GB, free: 7.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.3543, allocations: 399.4 kB / 0.5272 GB, free: 6.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3543, allocations: 5.281 kB / 0.5272 GB, free: 6.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3543, allocations: 0 / 0.5272 GB, free: 6.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3543, allocations: 0 / 0.5272 GB, free: 6.906 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.00178/0.3561, allocations: 0.768 MB / 0.528 GB, free: 6.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.3561, allocations: 9.641 kB / 0.528 GB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.436e-05/0.3562, allocations: 51.83 kB / 0.528 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008013/0.357, allocations: 371.2 kB / 0.5284 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.357, allocations: 29.11 kB / 0.5284 GB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.3571, allocations: 41.53 kB / 0.5285 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004727/0.3576, allocations: 298 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3576, allocations: 0 / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.46e-05/0.3576, allocations: 14.72 kB / 0.5288 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.3576, allocations: 8.031 kB / 0.5288 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.358, allocations: 215.1 kB / 0.529 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0015/0.3595, allocations: 0.9966 MB / 0.5299 GB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007761/0.3603, allocations: 368.8 kB / 0.5303 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.3605, allocations: 149 kB / 0.5304 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.3605, allocations: 8.688 kB / 0.5304 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.3606, allocations: 36.7 kB / 0.5305 GB, free: 5.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=37): time 1.653e-06/0.3606, allocations: 1.344 kB / 0.5305 GB, free: 5.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=39): time 0.001813/0.3624, allocations: 0.952 MB / 0.5314 GB, free: 4.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.409e-05/0.3624, allocations: 55.78 kB / 0.5315 GB, free: 4.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/0.3632, allocations: 428.8 kB / 0.5319 GB, free: 4.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.3632, allocations: 39.48 kB / 0.5319 GB, free: 4.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3633, allocations: 206 kB / 0.5321 GB, free: 4.055 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.026e-05/0.3634, allocations: 152.4 kB / 0.5323 GB, free: 3.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.3635, allocations: 75.94 kB / 0.5323 GB, free: 3.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.579e-05/0.3636, allocations: 350.2 kB / 0.5327 GB, free: 3.559 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.3638, allocations: 109.1 kB / 0.5328 GB, free: 3.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.3641, allocations: 172.6 kB / 0.5329 GB, free: 3.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.3656, allocations: 0.6075 MB / 0.5335 GB, free: 3.176 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3656, allocations: 1.031 kB / 0.5335 GB, free: 3.176 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.0009276/0.3665, allocations: 0.5035 MB / 0.534 GB, free: 2.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.3665, allocations: 8.906 kB / 0.534 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.3666, allocations: 2.062 kB / 0.534 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002681/0.3668, allocations: 97.05 kB / 0.5341 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/0.3672, allocations: 86.59 kB / 0.5342 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004374/0.3716, allocations: 7.623 MB / 0.5416 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005009/0.3721, allocations: 39.36 kB / 0.5417 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.3721, allocations: 17.81 kB / 0.5417 GB, free: 11.23 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.0002571/0.3723, allocations: 167.3 kB / 0.5419 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.049e-05/0.3724, allocations: 41.73 kB / 0.5419 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001008/0.3725, allocations: 54.94 kB / 0.542 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3725, allocations: 3.344 kB / 0.542 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3725, allocations: 1.156 kB / 0.542 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3725, allocations: 6.281 kB / 0.542 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001426/0.374, allocations: 0.8397 MB / 0.5428 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.374, allocations: 1.922 kB / 0.5428 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003375/0.3743, allocations: 59.16 kB / 0.5428 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002998/0.3746, allocations: 80.41 kB / 0.5429 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/0.3746, allocations: 14.09 kB / 0.5429 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002109/0.3767, allocations: 1.78 MB / 0.5447 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.3768, allocations: 4 kB / 0.5447 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.3778, allocations: 0.6255 MB / 0.5453 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3779, allocations: 41.22 kB / 0.5453 GB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.232e-05/0.378, allocations: 11.16 kB / 0.5453 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003879/0.3784, allocations: 35.69 kB / 0.5454 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.109e-05/0.3785, allocations: 29.58 kB / 0.5454 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.3785, allocations: 16.08 kB / 0.5454 GB, free: 8.492 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006973/0.3792, allocations: 322.6 kB / 0.5457 GB, free: 8.359 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3792, allocations: 7.938 kB / 0.5457 GB, free: 8.352 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006051/0.3798, allocations: 81.5 kB / 0.5458 GB, free: 8.34 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.0001442/0.3799, allocations: 109.5 kB / 0.5459 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001025/0.381, allocations: 0.6297 MB / 0.5465 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.381, allocations: 0 / 0.5465 GB, free: 7.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004389/0.3814, allocations: 285.1 kB / 0.5468 GB, free: 7.617 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.3819, allocations: 58.06 kB / 0.5469 GB, free: 7.586 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.3837, allocations: 1.047 MB / 0.5479 GB, free: 6.902 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004976/0.3842, allocations: 0.8287 MB / 0.5487 GB, free: 6.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.3843, allocations: 33.52 kB / 0.5487 GB, free: 6.191 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3843, allocations: 0 / 0.5487 GB, free: 6.191 MB / 398.1 MB Notification: Performance of Templates: time 0.01091/0.3952, allocations: 7.328 MB / 0.5559 GB, free: 2.879 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.5225671059452] Failed to read output from testmodel.py, exit status != 0: 0.4046908200252801 0.41952803499999997 0.06204390199999994 Calling exit ...