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.001307/0.001307, allocations: 77.97 kB / 20.67 MB, free: 3.82 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.00175/0.00175, allocations: 177 kB / 24.07 MB, free: 432 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.9925/0.9925, allocations: 177.1 MB / 204.5 MB, free: 5.516 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.06543/0.06543, allocations: 18.14 MB / 279.2 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 1.843e-06/1.843e-06, allocations: 0 / 357.8 MB, free: 7.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.89e-05, allocations: 2.312 kB / 357.8 MB, free: 7.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.003472/0.003501, allocations: 2.457 MB / 360.2 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.004777, allocations: 0.7987 MB / 361 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.004938, allocations: 4 kB / 361 MB, free: 4.238 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003569/0.005295, allocations: 87.22 kB / 361.1 MB, free: 4.152 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004045/0.005699, allocations: 151 kB / 361.3 MB, free: 4.004 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.006199, allocations: 283.4 kB / 361.5 MB, free: 3.727 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004352/0.006635, allocations: 475.1 kB / 362 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.006821, allocations: 89.19 kB / 362.1 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003084/0.007129, allocations: 203.4 kB / 362.3 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.00739, allocations: 191.4 kB / 362.5 MB, free: 2.785 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-05/0.007448, allocations: 39.94 kB / 362.5 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.973e-05/0.007517, allocations: 36 kB / 362.5 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.007683, allocations: 107.6 kB / 362.7 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.007809, allocations: 119.6 kB / 362.8 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.008145, allocations: 282.7 kB / 363 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.008147, allocations: 0 / 363 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.008148, allocations: 0 / 363 MB, free: 2.211 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.008153, allocations: 0 / 363 MB, free: 2.211 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.0011/0.009253, allocations: 0.7955 MB / 363.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.009296, allocations: 8.922 kB / 363.8 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.914e-05/0.009395, allocations: 76.61 kB / 363.9 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.00984, allocations: 313 kB / 364.2 MB, free: 0.957 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.009868, allocations: 21.03 kB / 364.2 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.00992, allocations: 44.31 kB / 364.3 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.01023, allocations: 230.5 kB / 364.5 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.01024, allocations: 0 / 364.5 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.01026, allocations: 12 kB / 364.5 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.01027, allocations: 12 kB / 364.5 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.01044, allocations: 99.06 kB / 364.6 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.01177, allocations: 0.9237 MB / 365.6 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004642/0.01224, allocations: 248.2 kB / 365.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.01235, allocations: 84.36 kB / 365.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.01236, allocations: 8 kB / 365.9 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.01239, allocations: 49.08 kB / 365.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.783e-06/0.01239, allocations: 0 / 365.9 MB, free: 15.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.00112/0.01351, allocations: 0.6712 MB / 366.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.01354, allocations: 59.34 kB / 366.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.01381, allocations: 374.6 kB / 367 MB, free: 14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.01383, allocations: 33.7 kB / 367.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.01396, allocations: 251.4 kB / 367.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.019e-05/0.01405, allocations: 154.7 kB / 367.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.229e-05/0.01414, allocations: 79.78 kB / 367.5 MB, free: 13.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.0143, allocations: 0.5273 MB / 368.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.193e-05/0.01437, allocations: 44.91 kB / 368.1 MB, free: 12.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.01449, allocations: 127.4 kB / 368.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.0148, allocations: 249.5 kB / 368.5 MB, free: 12.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.0148, allocations: 0 / 368.5 MB, free: 12.47 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.0007351/0.01554, allocations: 402.5 kB / 368.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.01555, allocations: 4 kB / 368.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.01556, allocations: 0 / 368.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003338/0.01589, allocations: 115 kB / 369 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000242/0.01613, allocations: 83.91 kB / 369.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004518/0.02065, allocations: 10.66 MB / 379.7 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.02081, allocations: 19.98 kB / 379.8 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.02083, allocations: 12.09 kB / 379.8 MB, free: 0.6797 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.0001255/0.02095, allocations: 188.4 kB / 380 MB, free: 496 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.02102, allocations: 51.77 kB / 380 MB, free: 444 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.02107, allocations: 52 kB / 380.1 MB, free: 392 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.02108, allocations: 4 kB / 380.1 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.02108, allocations: 0 / 380.1 MB, free: 388 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.02109, allocations: 7.984 kB / 380.1 MB, free: 380 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007232/0.02181, allocations: 0.6347 MB / 380.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.02181, allocations: 0 / 380.7 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.02201, allocations: 63.97 kB / 380.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002815/0.02229, allocations: 87.52 kB / 380.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.02231, allocations: 12 kB / 380.9 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001127/0.02344, allocations: 2.173 MB / 383 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.02344, allocations: 4.031 kB / 383 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.02395, allocations: 0.5021 MB / 383.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.682e-05/0.02399, allocations: 35.72 kB / 383.6 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.02403, allocations: 11.98 kB / 383.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001526/0.02418, allocations: 12 kB / 383.6 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.02423, allocations: 27.94 kB / 383.6 MB, free: 12.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.02424, allocations: 8 kB / 383.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001607/0.0244, allocations: 251 kB / 383.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0244, allocations: 0 / 383.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004589/0.02486, allocations: 80 kB / 384 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 9.03e-05/0.02495, allocations: 110.6 kB / 384.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001271/0.02622, allocations: 0.7 MB / 384.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.02622, allocations: 0 / 384.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.02647, allocations: 301.8 kB / 385.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.02681, allocations: 61.41 kB / 385.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.02799, allocations: 0.8498 MB / 386 MB, free: 10.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.759e-05/0.02808, allocations: 121.1 kB / 386.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.02819, allocations: 43.25 kB / 386.1 MB, free: 9.988 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001494/0.02834, allocations: 114.2 kB / 386.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02834, allocations: 0 / 386.2 MB, free: 9.875 MB / 314.7 MB Notification: Performance of Templates: time 0.008154/0.0365, allocations: 4.538 MB / 390.8 MB, free: 5.398 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.9366284110583365]