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.001908/0.001908, 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.002455/0.002455, allocations: 216.7 kB / 23.77 MB, free: 4.52 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.661/1.661, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.1098/0.1098, allocations: 24.04 MB / 338 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.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.002234/0.002234, allocations: 73.45 kB / 475.1 MB, free: 5.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2801, allocations: 59.57 MB / 0.5221 GB, free: 10.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002501/0.2826, allocations: 1.821 MB / 0.5239 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008263/0.2834, allocations: 0.5243 MB / 0.5244 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.407e-05/0.2835, allocations: 1.281 kB / 0.5244 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.2837, allocations: 33.39 kB / 0.5244 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.2839, allocations: 51.58 kB / 0.5245 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001648/0.2841, allocations: 58.83 kB / 0.5245 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002474/0.2843, allocations: 227.7 kB / 0.5248 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.2844, allocations: 26.88 kB / 0.5248 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.2846, allocations: 100.9 kB / 0.5249 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001531/0.2848, allocations: 90.33 kB / 0.525 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.897e-05/0.2848, allocations: 12.62 kB / 0.525 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.895e-05/0.2848, allocations: 12.44 kB / 0.525 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.498e-05/0.2849, allocations: 49.64 kB / 0.525 GB, free: 8.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.17e-05/0.2849, allocations: 55.23 kB / 0.5251 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.2851, allocations: 154.6 kB / 0.5252 GB, free: 8.469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2851, allocations: 0 / 0.5252 GB, free: 8.469 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2851, allocations: 1.594 kB / 0.5252 GB, free: 8.469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2851, allocations: 0 / 0.5252 GB, free: 8.469 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.000801/0.2859, allocations: 427.6 kB / 0.5257 GB, free: 8.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.2859, allocations: 13.16 kB / 0.5257 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.505e-05/0.286, allocations: 16.5 kB / 0.5257 GB, free: 8.125 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003562/0.2863, allocations: 185.3 kB / 0.5259 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.2864, allocations: 9.281 kB / 0.5259 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.2864, allocations: 12.06 kB / 0.5259 GB, free: 7.965 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.2866, allocations: 132.1 kB / 0.526 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.2866, allocations: 1.031 kB / 0.526 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.2866, allocations: 5.875 kB / 0.526 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.2866, allocations: 6.188 kB / 0.526 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.2868, allocations: 84.81 kB / 0.5261 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006363/0.2875, allocations: 376 kB / 0.5265 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.2878, allocations: 154.8 kB / 0.5266 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.2879, allocations: 65.95 kB / 0.5267 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.2879, allocations: 1.438 kB / 0.5267 GB, free: 7.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.2879, allocations: 37.83 kB / 0.5267 GB, free: 7.438 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.2879, allocations: 0 / 0.5267 GB, free: 7.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008724/0.2888, allocations: 475.6 kB / 0.5272 GB, free: 7.137 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.844e-05/0.2888, allocations: 54.94 kB / 0.5272 GB, free: 7.074 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003009/0.2891, allocations: 199.5 kB / 0.5274 GB, free: 6.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.2891, allocations: 25.7 kB / 0.5274 GB, free: 6.918 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.2891, allocations: 119.5 kB / 0.5275 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.2892, allocations: 61 kB / 0.5276 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.2892, allocations: 36.47 kB / 0.5276 GB, free: 6.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.147e-05/0.2893, allocations: 322.4 kB / 0.5279 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.71e-05/0.2894, allocations: 51.55 kB / 0.528 GB, free: 6.395 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.2895, allocations: 73.78 kB / 0.5281 GB, free: 6.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007067/0.2902, allocations: 260 kB / 0.5283 GB, free: 6.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2902, allocations: 9.641 kB / 0.5283 GB, free: 6.254 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.0004655/0.2906, allocations: 229.2 kB / 0.5285 GB, free: 6.133 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2907, allocations: 6.594 kB / 0.5285 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2907, allocations: 3.938 kB / 0.5285 GB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/0.2908, allocations: 51.95 kB / 0.5286 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.291, allocations: 38.95 kB / 0.5286 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.2927, allocations: 4.387 MB / 0.5329 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.2929, allocations: 16.41 kB / 0.5329 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.2929, allocations: 3.594 kB / 0.5329 GB, free: 1.68 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 9.725e-05/0.293, allocations: 137.5 kB / 0.5331 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.883e-05/0.293, allocations: 15.09 kB / 0.5331 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.685e-05/0.2931, allocations: 24.22 kB / 0.5331 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2931, allocations: 5.156 kB / 0.5331 GB, free: 1.516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.2931, allocations: 5.312 kB / 0.5331 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2931, allocations: 0 / 0.5331 GB, free: 1.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005289/0.2936, allocations: 428.3 kB / 0.5335 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2936, allocations: 5.188 kB / 0.5335 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.2938, allocations: 30.27 kB / 0.5336 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.2939, allocations: 37.61 kB / 0.5336 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.2939, allocations: 12.09 kB / 0.5336 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008863/0.2948, allocations: 1.482 MB / 0.535 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2948, allocations: 1.125 kB / 0.535 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004945/0.2953, allocations: 339 kB / 0.5354 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.2953, allocations: 14.2 kB / 0.5354 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.2953, allocations: 6.875 kB / 0.5354 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001896/0.2955, allocations: 16.58 kB / 0.5354 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.312e-05/0.2956, allocations: 15.33 kB / 0.5354 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.2956, allocations: 3.562 kB / 0.5354 GB, free: 15.49 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002649/0.2958, allocations: 158.4 kB / 0.5356 GB, free: 15.4 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2958, allocations: 0 / 0.5356 GB, free: 15.4 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004022/0.2962, allocations: 33.09 kB / 0.5356 GB, free: 15.39 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.0001172/0.2964, allocations: 105 kB / 0.5357 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005492/0.2969, allocations: 348.8 kB / 0.536 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2969, allocations: 0 / 0.536 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.2972, allocations: 185.9 kB / 0.5362 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.2975, allocations: 19.19 kB / 0.5362 GB, free: 14.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009682/0.2985, allocations: 0.552 MB / 0.5368 GB, free: 14.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.2986, allocations: 125.4 kB / 0.5369 GB, free: 14.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.515e-05/0.2986, allocations: 15.03 kB / 0.5369 GB, free: 14.39 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2986, allocations: 1 kB / 0.5369 GB, free: 14.39 MB / 398.1 MB Notification: Performance of Templates: time 0.005514/0.3041, allocations: 2.841 MB / 0.5397 GB, free: 14.18 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.12809985410422] Failed to read output from testmodel.py, exit status != 0: 0.3128706361167133 0.326590215 0.038498795 Calling exit ...