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.001589/0.001589, allocations: 87.58 kB / 20.97 MB, free: 3.562 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.001615/0.001615, allocations: 173 kB / 24.27 MB, free: 268 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.06/1.06, allocations: 177.1 MB / 204.6 MB, free: 5.637 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.06507/0.06507, allocations: 18.14 MB / 279.2 MB, free: 11.4 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.334e-06/2.334e-06, allocations: 0 / 357.2 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.629e-05/2.862e-05, allocations: 2.312 kB / 357.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.009359/0.009388, allocations: 2.473 MB / 359.7 MB, free: 5.711 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004524/0.01391, allocations: 0.7909 MB / 360.5 MB, free: 4.918 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002952/0.01421, allocations: 7.938 kB / 360.5 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004438/0.01465, allocations: 91.22 kB / 360.6 MB, free: 4.82 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.01498, allocations: 155 kB / 360.8 MB, free: 4.668 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005964/0.01558, allocations: 275.4 kB / 361 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005368/0.01611, allocations: 479 kB / 361.5 MB, free: 3.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.01634, allocations: 93.17 kB / 361.6 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004227/0.01676, allocations: 195.5 kB / 361.8 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003333/0.02009, allocations: 191.4 kB / 362 MB, free: 3.457 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.727e-05/0.02015, allocations: 36 kB / 362 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.979e-05/0.0202, allocations: 35.94 kB / 362 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.02031, allocations: 111.6 kB / 362.1 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.02043, allocations: 119.6 kB / 362.3 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003636/0.02079, allocations: 282.7 kB / 362.5 MB, free: 2.883 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.02079, allocations: 4 kB / 362.5 MB, free: 2.879 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.0208, allocations: 0 / 362.5 MB, free: 2.879 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.146e-06/0.0208, allocations: 4 kB / 362.5 MB, free: 2.875 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.001141/0.02194, allocations: 0.8034 MB / 363.4 MB, free: 2.035 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.02198, allocations: 12.92 kB / 363.4 MB, free: 2.023 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.817e-05/0.02208, allocations: 72.61 kB / 363.4 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.02249, allocations: 325 kB / 363.8 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.02252, allocations: 28.97 kB / 363.8 MB, free: 1.574 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.02256, allocations: 36.33 kB / 363.8 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.02286, allocations: 246.5 kB / 364.1 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.02287, allocations: 0 / 364.1 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.281e-05/0.02289, allocations: 16 kB / 364.1 MB, free: 1.266 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.0229, allocations: 8 kB / 364.1 MB, free: 1.258 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.02311, allocations: 127.8 kB / 364.2 MB, free: 1.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.02414, allocations: 0.9856 MB / 365.2 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004953/0.02464, allocations: 264.8 kB / 365.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001294/0.02476, allocations: 96.25 kB / 365.5 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.02478, allocations: 4 kB / 365.5 MB, free: 15.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.02481, allocations: 45.14 kB / 365.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.593e-06/0.02481, allocations: 0 / 365.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.001217/0.02603, allocations: 0.7767 MB / 366.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.02606, allocations: 59.41 kB / 366.4 MB, free: 14.78 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.02633, allocations: 382.8 kB / 366.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.02636, allocations: 33.7 kB / 366.8 MB, free: 14.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.02648, allocations: 247.4 kB / 367.1 MB, free: 14.11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.837e-05/0.02656, allocations: 150.7 kB / 367.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.057e-05/0.02664, allocations: 83.8 kB / 367.3 MB, free: 13.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.0268, allocations: 0.5235 MB / 367.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.0269, allocations: 56.97 kB / 367.9 MB, free: 13.28 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.02703, allocations: 131.4 kB / 368 MB, free: 13.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003441/0.02738, allocations: 293.5 kB / 368.3 MB, free: 12.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.02738, allocations: 3.938 kB / 368.3 MB, free: 12.81 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.0006061/0.02799, allocations: 434.5 kB / 368.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.028, allocations: 4 kB / 368.7 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.02801, allocations: 0 / 368.7 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003489/0.02836, allocations: 123 kB / 368.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.02857, allocations: 83.89 kB / 368.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003921/0.03249, allocations: 10.74 MB / 379.7 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001591/0.03265, allocations: 23.92 kB / 379.7 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.03267, allocations: 16 kB / 379.7 MB, free: 0.8633 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.0001345/0.0328, allocations: 180.5 kB / 379.9 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.672e-05/0.03286, allocations: 47.77 kB / 379.9 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.088e-05/0.03291, allocations: 52.06 kB / 380 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.03291, allocations: 7.938 kB / 380 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.03292, allocations: 0 / 380 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.03292, allocations: 7.922 kB / 380 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000734/0.03366, allocations: 0.6968 MB / 380.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.03366, allocations: 4 kB / 380.7 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001731/0.03383, allocations: 63.91 kB / 380.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002723/0.0341, allocations: 83.59 kB / 380.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.03413, allocations: 19.92 kB / 380.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.03527, allocations: 2.224 MB / 383.1 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.03527, allocations: 8.031 kB / 383.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005026/0.03577, allocations: 0.51 MB / 383.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.03581, allocations: 43.7 kB / 383.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.03584, allocations: 8 kB / 383.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.03597, allocations: 23.92 kB / 383.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.03603, allocations: 31.88 kB / 383.7 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.03605, allocations: 12 kB / 383.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001812/0.03623, allocations: 263.1 kB / 384 MB, free: 12.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03623, allocations: 0 / 384 MB, free: 12.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003733/0.0366, allocations: 84 kB / 384.1 MB, free: 12.3 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.0001399/0.03674, allocations: 99.25 kB / 384.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007083/0.03745, allocations: 0.7234 MB / 384.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.03745, allocations: 0 / 384.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003253/0.03778, allocations: 313.8 kB / 385.2 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004099/0.03819, allocations: 58.84 kB / 385.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.03963, allocations: 0.8613 MB / 386.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.452e-05/0.03972, allocations: 121.1 kB / 386.2 MB, free: 10 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.03984, allocations: 47.23 kB / 386.3 MB, free: 9.957 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.215e-05/0.03991, allocations: 28.5 kB / 386.3 MB, free: 9.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.372e-06/0.03991, allocations: 0 / 386.3 MB, free: 9.93 MB / 314.7 MB Notification: Performance of Templates: time 0.007772/0.04768, allocations: 4.317 MB / 390.6 MB, free: 5.652 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: 3.302653281018138]