Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.001592/0.001592, allocations: 110.2 kB / 19.69 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.002029/0.002029, allocations: 211.6 kB / 23.01 MB, free: 4.566 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.557/1.557, allocations: 230.6 MB / 256.8 MB, free: 8 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.1349/0.1349, allocations: 24.12 MB / 337.3 MB, free: 11.45 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.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") [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.00226/0.00226, allocations: 75.81 kB / 474.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3321, allocations: 59.59 MB / 0.5216 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003106/0.3352, allocations: 1.896 MB / 0.5235 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3362, allocations: 0.5529 MB / 0.524 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.735e-05/0.3363, allocations: 9 kB / 0.524 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002917/0.3366, allocations: 29.12 kB / 0.5241 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.3367, allocations: 51.47 kB / 0.5241 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002026/0.3369, allocations: 58.03 kB / 0.5242 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003152/0.3373, allocations: 235 kB / 0.5244 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.3374, allocations: 28.61 kB / 0.5244 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002548/0.3377, allocations: 100.7 kB / 0.5245 GB, free: 8.512 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.3378, allocations: 93.05 kB / 0.5246 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.3379, allocations: 17.78 kB / 0.5246 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.962e-05/0.3379, allocations: 12.94 kB / 0.5246 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.418e-05/0.338, allocations: 45.89 kB / 0.5247 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.829e-05/0.338, allocations: 66.17 kB / 0.5247 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.3382, allocations: 151 kB / 0.5249 GB, free: 8.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3382, allocations: 0 / 0.5249 GB, free: 8.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3382, allocations: 1.062 kB / 0.5249 GB, free: 8.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3383, allocations: 0 / 0.5249 GB, free: 8.34 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0009478/0.3392, allocations: 426.4 kB / 0.5253 GB, free: 8.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.3392, allocations: 10.95 kB / 0.5253 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.737e-05/0.3393, allocations: 20.69 kB / 0.5253 GB, free: 7.996 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003565/0.3396, allocations: 198.1 kB / 0.5255 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.3397, allocations: 5.906 kB / 0.5255 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.3397, allocations: 11.84 kB / 0.5255 GB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.3399, allocations: 126.3 kB / 0.5256 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3399, allocations: 1.188 kB / 0.5256 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.3399, allocations: 5.188 kB / 0.5256 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.3399, allocations: 2.344 kB / 0.5256 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.3401, allocations: 86.77 kB / 0.5257 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000749/0.3409, allocations: 439.6 kB / 0.5262 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.3412, allocations: 150.4 kB / 0.5263 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001142/0.3413, allocations: 62.17 kB / 0.5264 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.47e-05/0.3413, allocations: 5.5 kB / 0.5264 GB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.431e-05/0.3413, allocations: 37.17 kB / 0.5264 GB, free: 7.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.452e-06/0.3413, allocations: 0 / 0.5264 GB, free: 7.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009514/0.3423, allocations: 468.2 kB / 0.5268 GB, free: 6.973 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.3423, allocations: 64.84 kB / 0.5269 GB, free: 6.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.3426, allocations: 196.4 kB / 0.5271 GB, free: 6.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3426, allocations: 26.64 kB / 0.5271 GB, free: 6.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.3427, allocations: 123 kB / 0.5272 GB, free: 6.629 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.326e-05/0.3428, allocations: 59.97 kB / 0.5273 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.3428, allocations: 31.5 kB / 0.5273 GB, free: 6.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.3429, allocations: 328.2 kB / 0.5276 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.945e-05/0.343, allocations: 55.66 kB / 0.5277 GB, free: 6.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.3431, allocations: 67.62 kB / 0.5278 GB, free: 6.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007395/0.3438, allocations: 264.5 kB / 0.528 GB, free: 6.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.3438, allocations: 0 / 0.528 GB, free: 6.086 MB / 382.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004954/0.3443, allocations: 236.4 kB / 0.5282 GB, free: 5.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3443, allocations: 9.531 kB / 0.5282 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3443, allocations: 1.031 kB / 0.5282 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001721/0.3445, allocations: 46.89 kB / 0.5283 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.3447, allocations: 50.58 kB / 0.5283 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.3464, allocations: 4.435 MB / 0.5327 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001837/0.3466, allocations: 17.98 kB / 0.5327 GB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.3466, allocations: 3.906 kB / 0.5327 GB, free: 1.422 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.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: 2 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.3467, allocations: 128.9 kB / 0.5328 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.034e-05/0.3467, allocations: 14.28 kB / 0.5328 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.824e-05/0.3468, allocations: 25.89 kB / 0.5328 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3468, allocations: 2.438 kB / 0.5328 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.3468, allocations: 4.453 kB / 0.5329 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.3468, allocations: 1.875 kB / 0.5329 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005938/0.3474, allocations: 480.2 kB / 0.5333 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3474, allocations: 1.562 kB / 0.5333 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.3475, allocations: 34.7 kB / 0.5333 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/0.3477, allocations: 36.73 kB / 0.5334 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3477, allocations: 10.66 kB / 0.5334 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/0.3487, allocations: 1.516 MB / 0.5349 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3487, allocations: 0 / 0.5349 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005142/0.3492, allocations: 335.7 kB / 0.5352 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.3492, allocations: 15.28 kB / 0.5352 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.606e-05/0.3493, allocations: 6.438 kB / 0.5352 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001886/0.3495, allocations: 11.88 kB / 0.5352 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.284e-05/0.3495, allocations: 23.42 kB / 0.5352 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.3495, allocations: 2.953 kB / 0.5352 GB, free: 15.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002707/0.3498, allocations: 157.5 kB / 0.5354 GB, free: 15.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3498, allocations: 0 / 0.5354 GB, free: 15.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004048/0.3502, allocations: 33.16 kB / 0.5354 GB, free: 15.06 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.x_scaled[1]) * 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 (13): * Single equations (assignments): 12 * 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.0001201/0.3503, allocations: 101.9 kB / 0.5355 GB, free: 14.97 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006166/0.3509, allocations: 348.8 kB / 0.5359 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3509, allocations: 4.062 kB / 0.5359 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002861/0.3512, allocations: 181.2 kB / 0.536 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003104/0.3515, allocations: 19.3 kB / 0.5361 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.3526, allocations: 0.5567 MB / 0.5366 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.353, allocations: 0.7246 MB / 0.5373 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.138e-05/0.353, allocations: 23.98 kB / 0.5373 GB, free: 13.44 MB / 398.1 MB Notification: Performance of SimCode: time 3.8e-07/0.353, allocations: 1.156 kB / 0.5373 GB, free: 13.44 MB / 398.1 MB Notification: Performance of Templates: time 0.00615/0.3592, allocations: 2.785 MB / 0.5401 GB, free: 13.24 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile [Timeout 660] (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.235737825045362] Failed to read output from testmodel.py, exit status != 0: 0.3689856871496886 0.385260341 0.043509158000000006 Calling exit ...