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.001405/0.001405, allocations: 84.23 kB / 20.23 MB, free: 4.207 MB / 18.57 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.001618/0.001618, allocations: 157.7 kB / 23.53 MB, free: 0.9023 MB / 18.57 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.485/1.485, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 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.1057/0.1057, allocations: 18.14 MB / 278.5 MB, free: 11.32 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 356.5 MB, free: 8.199 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.915e-05/3.085e-05, allocations: 2.312 kB / 356.5 MB, free: 8.195 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.004303/0.004334, allocations: 2.375 MB / 358.9 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.006154, allocations: 0.7715 MB / 359.7 MB, free: 5.031 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.006305, allocations: 7.938 kB / 359.7 MB, free: 5.023 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004496/0.006755, allocations: 95.16 kB / 359.8 MB, free: 4.93 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003856/0.007141, allocations: 151 kB / 359.9 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008195/0.00796, allocations: 279.4 kB / 360.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006567/0.008617, allocations: 475.2 kB / 360.7 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002418/0.008858, allocations: 97.06 kB / 360.8 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004004/0.009259, allocations: 195.4 kB / 360.9 MB, free: 3.754 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.009622, allocations: 191.3 kB / 361.1 MB, free: 3.566 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.665e-05/0.009699, allocations: 36 kB / 361.2 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.026e-05/0.009769, allocations: 32 kB / 361.2 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.009929, allocations: 119.5 kB / 361.3 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001755/0.0101, allocations: 119.6 kB / 361.4 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.01069, allocations: 402.5 kB / 361.8 MB, free: 2.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.0107, allocations: 3.938 kB / 361.8 MB, free: 2.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.0107, allocations: 4 kB / 361.8 MB, free: 2.863 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.01071, allocations: 0 / 361.8 MB, free: 2.863 MB / 282.7 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.00222/0.01293, allocations: 0.7542 MB / 362.6 MB, free: 2.078 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.01297, allocations: 12.86 kB / 362.6 MB, free: 2.066 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.01312, allocations: 72.61 kB / 362.7 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009306/0.01405, allocations: 365.5 kB / 363 MB, free: 1.609 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.01409, allocations: 32.97 kB / 363.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.01416, allocations: 40.36 kB / 363.1 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005763/0.01474, allocations: 298.1 kB / 363.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.01475, allocations: 4 kB / 363.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.01479, allocations: 12 kB / 363.4 MB, free: 1.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.0148, allocations: 4 kB / 363.4 MB, free: 1.215 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.01526, allocations: 222.4 kB / 363.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.01734, allocations: 0.8834 MB / 364.5 MB, free: 72 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008989/0.01823, allocations: 360.2 kB / 364.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000281/0.01851, allocations: 141.4 kB / 365 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.119e-05/0.01855, allocations: 8 kB / 365 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.01859, allocations: 38.31 kB / 365 MB, free: 15.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.904e-06/0.01859, allocations: 4 kB / 365 MB, free: 15.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002276/0.02086, allocations: 0.9612 MB / 366 MB, free: 14.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.02092, allocations: 55.41 kB / 366.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000897/0.02182, allocations: 437.4 kB / 366.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.02185, allocations: 37.7 kB / 366.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.02204, allocations: 204.6 kB / 366.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.02219, allocations: 150.7 kB / 366.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.02231, allocations: 74.16 kB / 366.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.02254, allocations: 354.8 kB / 367.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.02276, allocations: 105 kB / 367.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.02305, allocations: 174.5 kB / 367.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.02488, allocations: 0.6078 MB / 368.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.02488, allocations: 0 / 368.2 MB, free: 12.27 MB / 298.7 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.001162/0.02605, allocations: 0.5207 MB / 368.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.02607, allocations: 4 kB / 368.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.02608, allocations: 4 kB / 368.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005952/0.02667, allocations: 118.6 kB / 368.8 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003816/0.02705, allocations: 83.89 kB / 368.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006556/0.03361, allocations: 7.561 MB / 376.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.03404, allocations: 43.89 kB / 376.5 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.03407, allocations: 16 kB / 376.5 MB, free: 3.469 MB / 298.7 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.0002545/0.03433, allocations: 165.8 kB / 376.7 MB, free: 3.297 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.03443, allocations: 47.77 kB / 376.7 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.03454, allocations: 52.06 kB / 376.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.03455, allocations: 4 kB / 376.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.03455, allocations: 0 / 376.8 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.03456, allocations: 7.922 kB / 376.8 MB, free: 3.184 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.03595, allocations: 0.7494 MB / 377.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.03595, allocations: 0 / 377.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003487/0.0363, allocations: 63.91 kB / 377.6 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005136/0.03681, allocations: 100.8 kB / 377.7 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.03684, allocations: 7.938 kB / 377.7 MB, free: 2.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.03912, allocations: 1.751 MB / 379.5 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.03912, allocations: 4.062 kB / 379.5 MB, free: 368 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.04026, allocations: 0.6163 MB / 380.1 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.346e-05/0.04034, allocations: 39.72 kB / 380.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.394e-05/0.0404, allocations: 15.98 kB / 380.1 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004077/0.0408, allocations: 43.83 kB / 380.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.04088, allocations: 27.95 kB / 380.2 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.04091, allocations: 8 kB / 380.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007347/0.04164, allocations: 323 kB / 380.5 MB, free: 15.28 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.04164, allocations: 7.938 kB / 380.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005645/0.04221, allocations: 84 kB / 380.6 MB, free: 15.19 MB / 314.7 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.0001459/0.04235, allocations: 103.2 kB / 380.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.04339, allocations: 0.6196 MB / 381.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.04339, allocations: 8 kB / 381.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000465/0.04386, allocations: 282.9 kB / 381.6 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.04433, allocations: 65.67 kB / 381.7 MB, free: 14.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.04598, allocations: 0.898 MB / 382.6 MB, free: 13.13 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.04626, allocations: 227.6 kB / 382.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001663/0.04642, allocations: 47.25 kB / 382.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.04653, allocations: 28.5 kB / 382.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.04653, allocations: 0 / 382.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of Templates: time 0.01062/0.05715, allocations: 4.284 MB / 387.2 MB, free: 8.57 MB / 314.7 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: 4.759451300953515]