Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 111 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 189.5 kB / 17.35 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09261/0.09261, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 71.86 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.08584, allocations: 54.95 MB / 492.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.003586/0.08946, allocations: 2.597 MB / 495.3 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.09105, allocations: 0.8768 MB / 496.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002108/0.09128, allocations: 4 kB / 496.2 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.09163, allocations: 67.33 kB / 496.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.09193, allocations: 95.28 kB / 496.3 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004513/0.09239, allocations: 195.7 kB / 496.5 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000477/0.09288, allocations: 471.3 kB / 497 MB, free: 496 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.09312, allocations: 136.5 kB / 497.1 MB, free: 352 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.09337, allocations: 167.3 kB / 497.3 MB, free: 184 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/0.09365, allocations: 191.1 kB / 497.4 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.09372, allocations: 36 kB / 497.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.329e-05/0.09378, allocations: 36 kB / 497.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.09391, allocations: 103.6 kB / 497.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.09408, allocations: 178.9 kB / 497.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.09452, allocations: 422.1 kB / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09453, allocations: 0 / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09454, allocations: 0 / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.447e-06/0.09455, allocations: 0 / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001452/0.09601, allocations: 0.7476 MB / 499 MB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.09605, allocations: 8.031 kB / 499 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.623e-05/0.09615, allocations: 44.66 kB / 499 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006401/0.0968, allocations: 384 kB / 499.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.09684, allocations: 20.94 kB / 499.4 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.722e-05/0.0969, allocations: 36.08 kB / 499.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.09744, allocations: 313.3 kB / 499.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.09747, allocations: 0 / 499.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.09751, allocations: 8 kB / 499.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.09752, allocations: 11.94 kB / 499.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004981/0.09802, allocations: 230.1 kB / 500 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.09958, allocations: 1.03 MB / 0.4893 GB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/0.1002, allocations: 285 kB / 0.4895 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/0.1004, allocations: 132.8 kB / 0.4897 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.1005, allocations: 7.938 kB / 0.4897 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.1005, allocations: 35 kB / 0.4897 GB, free: 11.78 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 1.693e-06/0.1005, allocations: 4 kB / 0.4897 GB, free: 11.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.004993/0.1055, allocations: 1.317 MB / 0.491 GB, free: 10.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.1056, allocations: 93.05 kB / 0.4911 GB, free: 10.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.1061, allocations: 361.6 kB / 0.4914 GB, free: 9.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.1062, allocations: 33.7 kB / 0.4915 GB, free: 9.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1063, allocations: 192.7 kB / 0.4917 GB, free: 9.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.272e-05/0.1064, allocations: 115.1 kB / 0.4918 GB, free: 9.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1065, allocations: 61.62 kB / 0.4918 GB, free: 9.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1067, allocations: 346.8 kB / 0.4921 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000245/0.1069, allocations: 113.1 kB / 0.4923 GB, free: 9.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.1072, allocations: 164.8 kB / 0.4924 GB, free: 8.863 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00442/0.1116, allocations: 0.8608 MB / 0.4933 GB, free: 7.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1116, allocations: 0 / 0.4933 GB, free: 7.992 MB / 382.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=39) (initialization): time 0.002207/0.1139, allocations: 0.7007 MB / 0.4939 GB, free: 7.238 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1139, allocations: 4 kB / 0.4939 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.1139, allocations: 4 kB / 0.4939 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001638/0.1155, allocations: 205.5 kB / 0.4941 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.1159, allocations: 71.95 kB / 0.4942 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006746/0.1227, allocations: 5.282 MB / 0.4994 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.1231, allocations: 20.02 kB / 0.4994 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.1231, allocations: 15.98 kB / 0.4994 GB, free: 1.301 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real g.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003533/0.1235, allocations: 225.1 kB / 0.4996 GB, free: 1.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002204/0.1237, allocations: 145.2 kB / 0.4998 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004279/0.128, allocations: 0.8087 MB / 0.5005 GB, free: 100 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.894e-06/0.128, allocations: 4 kB / 0.5006 GB, free: 96 kB / 382.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=39) (initialization_lambda0): time 0.1788/0.3068, allocations: 0.6684 MB / 0.5012 GB, free: 21.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.3068, allocations: 10.81 kB / 0.5012 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.155e-06/0.3069, allocations: 0.6562 kB / 0.5012 GB, free: 21.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00155/0.3084, allocations: 213.8 kB / 0.5014 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003257/0.3087, allocations: 62.5 kB / 0.5015 GB, free: 21.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005404/0.3142, allocations: 5.282 MB / 0.5066 GB, free: 17.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.3145, allocations: 23.2 kB / 0.5067 GB, free: 17.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.3145, allocations: 14.72 kB / 0.5067 GB, free: 17.38 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real g.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (Cps.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.3147, allocations: 199.2 kB / 0.5069 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.343e-05/0.3147, allocations: 34.94 kB / 0.5069 GB, free: 17.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/0.3162, allocations: 491.8 kB / 0.5074 GB, free: 17.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3162, allocations: 1.688 kB / 0.5074 GB, free: 17.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.3162, allocations: 0.875 kB / 0.5074 GB, free: 17.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3163, allocations: 139.2 kB / 0.5075 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.3164, allocations: 9.25 kB / 0.5075 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.3167, allocations: 22.69 kB / 0.5075 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.216e-05/0.3168, allocations: 21.44 kB / 0.5076 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001138/0.3179, allocations: 485.5 kB / 0.508 GB, free: 16.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000791/0.3187, allocations: 0.6528 MB / 0.5087 GB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002144/0.319, allocations: 130.3 kB / 0.5088 GB, free: 16.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000361/0.3193, allocations: 268.3 kB / 0.509 GB, free: 16.62 MB / 382.1 MB Notification: Performance of Backend: time 3.8e-07/0.3193, allocations: 0 / 0.509 GB, free: 16.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3206, allocations: 0.8799 MB / 0.5099 GB, free: 16.1 MB / 382.1 MB Notification: Performance of SimCode: time 0.001205/0.3218, allocations: 1.331 MB / 0.5112 GB, free: 15.19 MB / 382.1 MB Notification: Performance of Templates: time 0.01157/0.3334, allocations: 6.522 MB / 0.5176 GB, free: 14.79 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe 2>&1)