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.00117/0.00117, allocations: 72.95 kB / 20.74 MB, free: 3.75 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.001355/0.001355, allocations: 173.3 kB / 24.16 MB, free: 336 kB / 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.008/1.008, allocations: 177.1 MB / 204.6 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.07718/0.07718, allocations: 18.14 MB / 279.2 MB, free: 11.21 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 2.014e-06/2.014e-06, allocations: 4.5 kB / 304.6 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.409e-05/1.61e-05, allocations: 8.562 kB / 304.6 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002991/0.003007, allocations: 2.51 MB / 307.1 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.004515, allocations: 0.8065 MB / 307.9 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.004686, allocations: 11.66 kB / 307.9 MB, free: 14.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004235/0.005109, allocations: 95.52 kB / 308 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002518/0.005361, allocations: 144.9 kB / 308.1 MB, free: 14.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000552/0.005913, allocations: 279.9 kB / 308.4 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004856/0.006399, allocations: 477.8 kB / 308.9 MB, free: 13.65 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.006573, allocations: 89.81 kB / 309 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.006859, allocations: 203.3 kB / 309.1 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.00708, allocations: 195.4 kB / 309.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.209e-05/0.007132, allocations: 32 kB / 309.4 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.828e-05/0.00717, allocations: 36 kB / 309.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.986e-05/0.00726, allocations: 111.5 kB / 309.5 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.016e-05/0.00735, allocations: 119.6 kB / 309.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002789/0.007629, allocations: 286.7 kB / 309.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.007631, allocations: 0 / 309.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.007633, allocations: 0 / 309.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.007638, allocations: 0 / 309.9 MB, free: 12.59 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.000843/0.008481, allocations: 0.6648 MB / 310.6 MB, free: 11.9 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.008515, allocations: 8.922 kB / 310.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.978e-05/0.008585, allocations: 56.83 kB / 310.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.008949, allocations: 282.3 kB / 310.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.008976, allocations: 21.03 kB / 310.9 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.369e-05/0.00902, allocations: 44.25 kB / 311 MB, free: 11.47 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002742/0.009294, allocations: 224.8 kB / 311.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.009305, allocations: 4 kB / 311.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.009321, allocations: 8 kB / 311.2 MB, free: 11.22 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.009331, allocations: 11.98 kB / 311.2 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001304/0.009461, allocations: 97.92 kB / 311.3 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009319/0.01039, allocations: 0.6785 MB / 312 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.01077, allocations: 284.1 kB / 312.3 MB, free: 10.12 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.027e-05/0.01085, allocations: 74.94 kB / 312.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.01087, allocations: 7.75 kB / 312.4 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.01089, allocations: 42.55 kB / 312.4 MB, free: 9.984 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.644e-06/0.0109, allocations: 0 / 312.4 MB, free: 9.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.0009496/0.01185, allocations: 0.6136 MB / 313 MB, free: 9.332 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.01188, allocations: 59.34 kB / 313.1 MB, free: 9.262 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.01211, allocations: 307.3 kB / 313.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.01214, allocations: 33.7 kB / 313.4 MB, free: 8.914 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.01223, allocations: 161.6 kB / 313.6 MB, free: 8.754 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.85e-05/0.01232, allocations: 158.7 kB / 313.7 MB, free: 8.598 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.389e-05/0.01239, allocations: 66.16 kB / 313.8 MB, free: 8.527 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.01251, allocations: 362.7 kB / 314.1 MB, free: 8.164 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.694e-05/0.01256, allocations: 39.81 kB / 314.2 MB, free: 8.125 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.582e-05/0.01266, allocations: 98.45 kB / 314.3 MB, free: 8.008 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.01289, allocations: 238 kB / 314.5 MB, free: 7.762 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.01289, allocations: 0 / 314.5 MB, free: 7.762 MB / 282.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.0004775/0.01337, allocations: 318.5 kB / 314.8 MB, free: 7.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.01338, allocations: 7.984 kB / 314.8 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.01339, allocations: 4 kB / 314.8 MB, free: 7.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002887/0.01368, allocations: 102.6 kB / 314.9 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/0.01399, allocations: 142.8 kB / 315.1 MB, free: 7.172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00279/0.01678, allocations: 7.186 MB / 322.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001203/0.0169, allocations: 12 kB / 322.3 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.01692, allocations: 12 kB / 322.3 MB, free: 15.59 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.0001054/0.01702, allocations: 144.5 kB / 322.4 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.65e-05/0.01707, allocations: 35.97 kB / 322.4 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.297e-05/0.01711, allocations: 48.06 kB / 322.5 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.01712, allocations: 8 kB / 322.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.01712, allocations: 4.047 kB / 322.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.01713, allocations: 11.97 kB / 322.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.01763, allocations: 0.5233 MB / 323 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.01763, allocations: 0 / 323 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001895/0.01782, allocations: 75.89 kB / 323.1 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002433/0.01806, allocations: 88.69 kB / 323.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.81e-05/0.01808, allocations: 11.98 kB / 323.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007752/0.01886, allocations: 1.512 MB / 324.7 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.01886, allocations: 0 / 324.7 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003532/0.01921, allocations: 441.9 kB / 325.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.01925, allocations: 35.75 kB / 325.2 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.01927, allocations: 8 kB / 325.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.01938, allocations: 12 kB / 325.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.057e-05/0.01943, allocations: 27.94 kB / 325.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.01944, allocations: 8 kB / 325.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.826e-05/0.01954, allocations: 132.7 kB / 325.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01954, allocations: 0 / 325.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002939/0.01983, allocations: 84 kB / 325.5 MB, free: 12.25 MB / 298.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.000109/0.01994, allocations: 89.45 kB / 325.5 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004307/0.02037, allocations: 0.5276 MB / 326.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.02038, allocations: 4 kB / 326.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.02055, allocations: 231.8 kB / 326.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.02079, allocations: 71.89 kB / 326.4 MB, free: 11.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009509/0.02174, allocations: 0.7602 MB / 327.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.732e-05/0.02182, allocations: 121.8 kB / 327.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.186e-05/0.02191, allocations: 35.27 kB / 327.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.02205, allocations: 99.36 kB / 327.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.02205, allocations: 3.938 kB / 327.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of Templates: time 0.006934/0.02898, allocations: 4.863 MB / 332.3 MB, free: 5.426 MB / 298.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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8103251666761935]