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.001376/0.001376, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001226/0.001226, allocations: 169 kB / 23.82 MB, free: 0.75 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 0.9464/0.9464, allocations: 177.1 MB / 204.2 MB, free: 5.23 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.07284/0.07284, allocations: 18.14 MB / 278.9 MB, free: 11.16 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 9.31e-07/9.31e-07, allocations: 7.875 kB / 357.3 MB, free: 7.805 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.12e-05/2.213e-05, allocations: 9.266 kB / 357.3 MB, free: 7.797 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.00272/0.002742, allocations: 2.475 MB / 359.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001189/0.003931, allocations: 0.791 MB / 360.6 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.00412, allocations: 7.938 kB / 360.6 MB, free: 4.504 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.004427, allocations: 103.2 kB / 360.7 MB, free: 4.402 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.004691, allocations: 143 kB / 360.8 MB, free: 4.262 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.005185, allocations: 287.4 kB / 361.1 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004384/0.005623, allocations: 467.2 kB / 361.6 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.005777, allocations: 93.17 kB / 361.6 MB, free: 3.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002949/0.006072, allocations: 203.3 kB / 361.8 MB, free: 3.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.006309, allocations: 187.4 kB / 362 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.191e-05/0.006361, allocations: 32 kB / 362.1 MB, free: 3.016 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.77e-05/0.006408, allocations: 36 kB / 362.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.687e-05/0.006505, allocations: 119.5 kB / 362.2 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.006613, allocations: 123.6 kB / 362.3 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.006903, allocations: 282.7 kB / 362.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.006904, allocations: 0 / 362.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.006905, allocations: 0 / 362.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.00691, allocations: 4 kB / 362.6 MB, free: 2.461 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.001029/0.007939, allocations: 0.8034 MB / 363.4 MB, free: 1.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.007972, allocations: 8.922 kB / 363.4 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.008076, allocations: 72.61 kB / 363.5 MB, free: 1.543 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.00851, allocations: 325 kB / 363.8 MB, free: 1.191 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.843e-05/0.008539, allocations: 29.03 kB / 363.8 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.008585, allocations: 36.27 kB / 363.9 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.008921, allocations: 250.5 kB / 364.1 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.008931, allocations: 0 / 364.1 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.008953, allocations: 12 kB / 364.1 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.008965, allocations: 8 kB / 364.1 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.009197, allocations: 123.8 kB / 364.3 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.01033, allocations: 0.9857 MB / 365.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004961/0.01082, allocations: 267.6 kB / 365.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.01096, allocations: 100.2 kB / 365.6 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.01098, allocations: 7.938 kB / 365.6 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.011, allocations: 45.14 kB / 365.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.733e-06/0.01101, allocations: 0 / 365.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001293/0.0123, allocations: 0.7807 MB / 366.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.01233, allocations: 55.41 kB / 366.5 MB, free: 14.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003198/0.01265, allocations: 378.8 kB / 366.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.01267, allocations: 33.7 kB / 366.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.0128, allocations: 251.4 kB / 367.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.453e-05/0.01289, allocations: 154.6 kB / 367.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.643e-05/0.01299, allocations: 79.81 kB / 367.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.01315, allocations: 0.5274 MB / 367.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.01328, allocations: 56.97 kB / 368 MB, free: 12.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.01344, allocations: 135.4 kB / 368.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.01386, allocations: 289.5 kB / 368.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01387, allocations: 0 / 368.4 MB, free: 12.39 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.0007208/0.01459, allocations: 427.3 kB / 368.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.0146, allocations: 8 kB / 368.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.01461, allocations: 4.156 kB / 368.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004031/0.01501, allocations: 122.8 kB / 368.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.01528, allocations: 79.91 kB / 369 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.01938, allocations: 10.74 MB / 379.7 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.01955, allocations: 23.92 kB / 379.8 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.01957, allocations: 20.06 kB / 379.8 MB, free: 460 kB / 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.000126/0.0197, allocations: 180.5 kB / 380 MB, free: 268 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.937e-05/0.01977, allocations: 47.77 kB / 380 MB, free: 220 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.934e-05/0.01982, allocations: 48.06 kB / 380.1 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.01982, allocations: 4 kB / 380.1 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.01982, allocations: 0 / 380.1 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.01983, allocations: 7.922 kB / 380.1 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008659/0.0207, allocations: 0.7045 MB / 380.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.0207, allocations: 0 / 380.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00022/0.02092, allocations: 55.98 kB / 380.8 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003156/0.02123, allocations: 95.52 kB / 380.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.02126, allocations: 11.94 kB / 380.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00124/0.0225, allocations: 2.231 MB / 383.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.0225, allocations: 0 / 383.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000686/0.02319, allocations: 0.5178 MB / 383.7 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.02324, allocations: 39.72 kB / 383.7 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.02328, allocations: 11.98 kB / 383.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.02346, allocations: 23.95 kB / 383.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.02352, allocations: 23.95 kB / 383.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.02354, allocations: 15.98 kB / 383.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002141/0.02375, allocations: 259.1 kB / 384 MB, free: 11.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02375, allocations: 0 / 384 MB, free: 11.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005036/0.02426, allocations: 88 kB / 384.1 MB, free: 11.89 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 9.232e-05/0.02435, allocations: 107.2 kB / 384.2 MB, free: 11.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006675/0.02502, allocations: 0.7153 MB / 384.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.02502, allocations: 0 / 384.9 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.0253, allocations: 313.8 kB / 385.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.02565, allocations: 59.55 kB / 385.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.02688, allocations: 0.8615 MB / 386.2 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.884e-05/0.02697, allocations: 121.1 kB / 386.3 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.02708, allocations: 43.25 kB / 386.3 MB, free: 9.551 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.109e-05/0.02716, allocations: 28.48 kB / 386.4 MB, free: 9.523 MB / 314.7 MB Notification: Performance of SimCode: time 5.52e-07/0.02716, allocations: 4 kB / 386.4 MB, free: 9.52 MB / 314.7 MB Notification: Performance of Templates: time 0.007879/0.03504, allocations: 4.446 MB / 390.8 MB, free: 5.113 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=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.9170482899062335]