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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 103.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 187.8 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 225.6 MB / 247.8 MB, free: 13.97 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.1035/0.1035, allocations: 22.69 MB / 325.4 MB, free: 3.562 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002914/0.002914, allocations: 67.89 kB / 457.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1331, allocations: 58.02 MB / 0.5036 GB, free: 7.168 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.00308/0.1362, allocations: 1.865 MB / 0.5054 GB, free: 5.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009412/0.1371, allocations: 0.5223 MB / 0.5059 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.611e-05/0.1372, allocations: 4 kB / 0.5059 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002641/0.1375, allocations: 27.78 kB / 0.5059 GB, free: 4.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.1376, allocations: 55.62 kB / 0.506 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001557/0.1378, allocations: 51.92 kB / 0.506 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002527/0.1381, allocations: 199.5 kB / 0.5062 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.1382, allocations: 33.48 kB / 0.5063 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.1383, allocations: 99.67 kB / 0.5064 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.1385, allocations: 95.58 kB / 0.5065 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.1385, allocations: 16 kB / 0.5065 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.548e-05/0.1386, allocations: 12 kB / 0.5065 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.373e-05/0.1386, allocations: 35.84 kB / 0.5065 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.121e-05/0.1387, allocations: 71.59 kB / 0.5066 GB, free: 4.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000197/0.1389, allocations: 147.3 kB / 0.5067 GB, free: 3.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1389, allocations: 4 kB / 0.5067 GB, free: 3.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1389, allocations: 3.938 kB / 0.5067 GB, free: 3.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1389, allocations: 0 / 0.5067 GB, free: 3.918 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.0009969/0.1399, allocations: 498.6 kB / 0.5072 GB, free: 3.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.14, allocations: 12.03 kB / 0.5072 GB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.703e-05/0.14, allocations: 16.84 kB / 0.5072 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.1404, allocations: 256 kB / 0.5075 GB, free: 3.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1404, allocations: 8.375 kB / 0.5075 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.1405, allocations: 12.38 kB / 0.5075 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.1407, allocations: 125.4 kB / 0.5076 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.1407, allocations: 0 / 0.5076 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.1407, allocations: 4 kB / 0.5076 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.1407, allocations: 4 kB / 0.5076 GB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1409, allocations: 91.88 kB / 0.5077 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007858/0.1417, allocations: 460.4 kB / 0.5082 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.1421, allocations: 164.8 kB / 0.5083 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.1422, allocations: 52.84 kB / 0.5084 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.1422, allocations: 4 kB / 0.5084 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.1423, allocations: 34.55 kB / 0.5084 GB, free: 2.051 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 3.055e-06/0.1423, allocations: 3.984 kB / 0.5084 GB, free: 2.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001076/0.1433, allocations: 0.5361 MB / 0.5089 GB, free: 1.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1434, allocations: 55.41 kB / 0.509 GB, free: 1.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003449/0.1437, allocations: 194.2 kB / 0.5092 GB, free: 1.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.1437, allocations: 33.64 kB / 0.5092 GB, free: 1.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.266e-05/0.1438, allocations: 120.3 kB / 0.5093 GB, free: 1.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.484e-05/0.1439, allocations: 67.45 kB / 0.5094 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.1439, allocations: 33.72 kB / 0.5094 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1441, allocations: 330.8 kB / 0.5097 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1442, allocations: 47.92 kB / 0.5098 GB, free: 0.543 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1443, allocations: 66.56 kB / 0.5098 GB, free: 488 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007861/0.1451, allocations: 271.8 kB / 0.5101 GB, free: 212 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.1451, allocations: 0 / 0.5101 GB, free: 212 kB / 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.2828/0.4279, allocations: 378.7 kB / 0.5104 GB, free: 15.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.4279, allocations: 9.656 kB / 0.5105 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.4279, allocations: 0.8438 kB / 0.5105 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.4282, allocations: 48.72 kB / 0.5105 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.4284, allocations: 34.3 kB / 0.5105 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.4303, allocations: 4.635 MB / 0.5151 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002005/0.4305, allocations: 19.64 kB / 0.5151 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.4305, allocations: 4.188 kB / 0.5151 GB, free: 11.07 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.0001369/0.4307, allocations: 137.1 kB / 0.5152 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.365e-05/0.4307, allocations: 12.31 kB / 0.5152 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.4308, allocations: 27.58 kB / 0.5153 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.4308, allocations: 1.719 kB / 0.5153 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.4308, allocations: 0.5938 kB / 0.5153 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.4308, allocations: 2.766 kB / 0.5153 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.4314, allocations: 0.5006 MB / 0.5157 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4314, allocations: 4.266 kB / 0.5158 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.4316, allocations: 24.27 kB / 0.5158 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001409/0.4317, allocations: 37.88 kB / 0.5158 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.4317, allocations: 6.156 kB / 0.5158 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009021/0.4326, allocations: 1.616 MB / 0.5174 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4326, allocations: 8.656 kB / 0.5174 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.4331, allocations: 331.6 kB / 0.5177 GB, free: 9.012 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.002e-05/0.4331, allocations: 101.5 kB / 0.5178 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.4332, allocations: 5.125 kB / 0.5178 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.4333, allocations: 17.59 kB / 0.5178 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.047e-05/0.4334, allocations: 17.81 kB / 0.5179 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.4334, allocations: 6.156 kB / 0.5179 GB, free: 8.914 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000243/0.4337, allocations: 156 kB / 0.518 GB, free: 8.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4337, allocations: 0 / 0.518 GB, free: 8.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.4341, allocations: 32.72 kB / 0.518 GB, free: 8.84 MB / 382.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 9.237e-05/0.4342, allocations: 102.6 kB / 0.5181 GB, free: 8.754 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004725/0.4346, allocations: 349.2 kB / 0.5185 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4346, allocations: 6 kB / 0.5185 GB, free: 8.535 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.4349, allocations: 180.3 kB / 0.5187 GB, free: 8.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.4352, allocations: 22.75 kB / 0.5187 GB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008705/0.436, allocations: 0.5177 MB / 0.5192 GB, free: 8.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.4362, allocations: 0.7279 MB / 0.5199 GB, free: 7.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.945e-05/0.4363, allocations: 16.44 kB / 0.5199 GB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.4363, allocations: 15.84 kB / 0.5199 GB, free: 7.426 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4363, allocations: 0 / 0.5199 GB, free: 7.426 MB / 382.1 MB Notification: Performance of Templates: time 0.005904/0.4422, allocations: 2.013 MB / 0.5219 GB, free: 7.32 MB / 382.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: 5.133180591277778] Failed to read output from testmodel.py, exit status != 0: 0.45172857819125056 0.463592537 0.321743906 Calling exit ...