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.001265/0.001265, allocations: 72.83 kB / 20.74 MB, free: 3.754 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.00118/0.00118, allocations: 173 kB / 24.17 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 0.9611/0.9611, allocations: 177.1 MB / 204.6 MB, free: 5.465 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.06522/0.06522, allocations: 18.14 MB / 279.2 MB, free: 11.19 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.393e-06/1.393e-06, allocations: 0 / 304.5 MB, free: 380 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.239e-05/1.379e-05, allocations: 3.625 kB / 304.5 MB, free: 376 kB / 266.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002744/0.002758, allocations: 2.471 MB / 307 MB, free: 14.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001358/0.004115, allocations: 0.8093 MB / 307.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.004285, allocations: 5.781 kB / 307.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000391/0.004676, allocations: 90.31 kB / 307.9 MB, free: 14.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002711/0.004947, allocations: 148.2 kB / 308 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004603/0.005408, allocations: 288.7 kB / 308.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004259/0.005834, allocations: 475 kB / 308.8 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.005985, allocations: 93.2 kB / 308.9 MB, free: 13.42 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.006269, allocations: 202.7 kB / 309.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/0.006481, allocations: 196.3 kB / 309.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.383e-05/0.006525, allocations: 32 kB / 309.3 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.985e-05/0.006565, allocations: 36 kB / 309.3 MB, free: 13 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.393e-05/0.006659, allocations: 107.6 kB / 309.4 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001292/0.006788, allocations: 123.6 kB / 309.6 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.007057, allocations: 278.8 kB / 309.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.007059, allocations: 0 / 309.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.00706, allocations: 0 / 309.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.007064, allocations: 0 / 309.8 MB, free: 12.5 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.0008237/0.007888, allocations: 0.6686 MB / 310.5 MB, free: 11.8 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.796e-05/0.007916, allocations: 8.922 kB / 310.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.007979, allocations: 56.89 kB / 310.6 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003099/0.008289, allocations: 282.2 kB / 310.8 MB, free: 11.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.008313, allocations: 25.03 kB / 310.9 MB, free: 11.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.008352, allocations: 36.31 kB / 310.9 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.008581, allocations: 240.8 kB / 311.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.00859, allocations: 0 / 311.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.008607, allocations: 8 kB / 311.1 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.008614, allocations: 8 kB / 311.1 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001237/0.008738, allocations: 90 kB / 311.2 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007292/0.009467, allocations: 0.6824 MB / 311.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.009819, allocations: 277.1 kB / 312.2 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.74e-05/0.009896, allocations: 74.92 kB / 312.3 MB, free: 9.949 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.009913, allocations: 11.69 kB / 312.3 MB, free: 9.938 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.009936, allocations: 34.56 kB / 312.3 MB, free: 9.895 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.282e-06/0.009937, allocations: 0 / 312.3 MB, free: 9.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=39): time 0.0009189/0.01086, allocations: 0.6137 MB / 312.9 MB, free: 9.242 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.01089, allocations: 59.34 kB / 313 MB, free: 9.172 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.0111, allocations: 311.3 kB / 313.3 MB, free: 8.859 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.01112, allocations: 33.64 kB / 313.3 MB, free: 8.82 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.21e-05/0.0112, allocations: 173.6 kB / 313.5 MB, free: 8.648 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.773e-05/0.01128, allocations: 146.7 kB / 313.6 MB, free: 8.504 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.139e-05/0.01135, allocations: 74.16 kB / 313.7 MB, free: 8.426 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.01146, allocations: 354.7 kB / 314 MB, free: 8.07 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.051e-05/0.01152, allocations: 39.81 kB / 314.1 MB, free: 8.031 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.898e-05/0.01161, allocations: 98.45 kB / 314.2 MB, free: 7.91 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.01182, allocations: 238.1 kB / 314.4 MB, free: 7.664 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.01182, allocations: 0 / 314.4 MB, free: 7.664 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.0003852/0.0122, allocations: 326 kB / 314.7 MB, free: 7.324 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.01222, allocations: 4 kB / 314.7 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.01222, allocations: 4 kB / 314.7 MB, free: 7.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002791/0.0125, allocations: 114.4 kB / 314.8 MB, free: 7.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001797/0.01268, allocations: 83.89 kB / 314.9 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002718/0.0154, allocations: 7.178 MB / 322.1 MB, free: 15.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.01552, allocations: 19.94 kB / 322.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.01554, allocations: 12 kB / 322.1 MB, free: 15.53 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.0001013/0.01564, allocations: 145.9 kB / 322.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.01568, allocations: 35.91 kB / 322.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.01572, allocations: 48.06 kB / 322.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.01572, allocations: 4 kB / 322.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.01572, allocations: 0 / 322.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.01573, allocations: 3.984 kB / 322.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004959/0.01622, allocations: 0.5273 MB / 322.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01623, allocations: 0 / 322.9 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001531/0.01638, allocations: 63.91 kB / 323 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002385/0.01662, allocations: 84.69 kB / 323 MB, free: 14.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.01664, allocations: 15.98 kB / 323.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000755/0.01739, allocations: 1.512 MB / 324.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01739, allocations: 0 / 324.6 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003425/0.01774, allocations: 437.9 kB / 325 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.823e-05/0.01777, allocations: 43.69 kB / 325 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.0178, allocations: 11.98 kB / 325.1 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.01791, allocations: 16 kB / 325.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.01795, allocations: 23.98 kB / 325.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.01796, allocations: 11.98 kB / 325.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.24e-05/0.01805, allocations: 120.7 kB / 325.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01805, allocations: 0 / 325.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003016/0.01835, allocations: 88 kB / 325.3 MB, free: 12.21 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 8.387e-05/0.01844, allocations: 88.34 kB / 325.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003966/0.01883, allocations: 0.5198 MB / 325.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.01884, allocations: 4 kB / 325.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.019, allocations: 231.8 kB / 326.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002107/0.01921, allocations: 70.31 kB / 326.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008871/0.0201, allocations: 0.7682 MB / 327 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.404e-05/0.02017, allocations: 125.1 kB / 327.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.982e-05/0.02025, allocations: 35.28 kB / 327.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.02037, allocations: 95.36 kB / 327.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02037, allocations: 4 kB / 327.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of Templates: time 0.006155/0.02652, allocations: 4.524 MB / 331.8 MB, free: 5.715 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 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.825296396855265]