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.001113/0.001113, allocations: 114.1 kB / 16.42 MB, free: 6.504 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.001145/0.001145, allocations: 188.2 kB / 17.35 MB, free: 5.758 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09242/0.09242, allocations: 22.33 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 67.89 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09551, allocations: 54.95 MB / 492.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.003814/0.09936, allocations: 2.601 MB / 495.3 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.1012, allocations: 0.8728 MB / 496.1 MB, free: 1.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003351/0.1016, allocations: 7.938 kB / 496.2 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004233/0.102, allocations: 67.39 kB / 496.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003288/0.1024, allocations: 95.2 kB / 496.3 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.1029, allocations: 203.4 kB / 496.5 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005471/0.1035, allocations: 463.4 kB / 497 MB, free: 500 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.1037, allocations: 136.5 kB / 497.1 MB, free: 356 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.104, allocations: 179.2 kB / 497.3 MB, free: 176 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003379/0.1044, allocations: 195.1 kB / 497.5 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.586e-05/0.1045, allocations: 32 kB / 497.5 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.725e-05/0.1046, allocations: 36 kB / 497.5 MB, free: 15.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.1047, allocations: 95.67 kB / 497.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.1049, allocations: 186.8 kB / 497.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005207/0.1055, allocations: 410.1 kB / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1055, allocations: 0 / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1055, allocations: 0 / 498.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.433e-05/0.1055, allocations: 8 kB / 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.001688/0.1072, allocations: 0.7496 MB / 499 MB, free: 14.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1073, allocations: 8.031 kB / 499 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.1074, allocations: 44.66 kB / 499 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006647/0.108, allocations: 380.1 kB / 499.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.1081, allocations: 20.94 kB / 499.4 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.385e-05/0.1081, allocations: 36.08 kB / 499.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005557/0.1087, allocations: 309.3 kB / 499.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.1087, allocations: 0 / 499.7 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.07e-05/0.1088, allocations: 16 kB / 499.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1088, allocations: 4 kB / 499.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004995/0.1093, allocations: 238 kB / 500 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.1109, allocations: 1.019 MB / 0.4893 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.1115, allocations: 290.9 kB / 0.4895 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.1118, allocations: 132.8 kB / 0.4897 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.1118, allocations: 4 kB / 0.4897 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.249e-05/0.1118, allocations: 35 kB / 0.4897 GB, free: 11.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 1.623e-06/0.1118, allocations: 0 / 0.4897 GB, free: 11.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.004903/0.1167, allocations: 1.329 MB / 0.491 GB, free: 10.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.1168, allocations: 77.11 kB / 0.4911 GB, free: 10.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005147/0.1173, allocations: 369.6 kB / 0.4914 GB, free: 9.918 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.1174, allocations: 33.7 kB / 0.4915 GB, free: 9.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.1175, allocations: 192.7 kB / 0.4917 GB, free: 9.684 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.935e-05/0.1176, allocations: 119 kB / 0.4918 GB, free: 9.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-05/0.1177, allocations: 57.64 kB / 0.4918 GB, free: 9.504 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1178, allocations: 350.8 kB / 0.4922 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.1181, allocations: 117.1 kB / 0.4923 GB, free: 9.035 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.1184, allocations: 164.8 kB / 0.4924 GB, free: 8.859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004322/0.1227, allocations: 0.853 MB / 0.4933 GB, free: 7.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1227, allocations: 0 / 0.4933 GB, free: 7.996 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.00214/0.1249, allocations: 0.6967 MB / 0.4939 GB, free: 7.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1249, allocations: 8 kB / 0.4939 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1249, allocations: 0 / 0.4939 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.1265, allocations: 213.6 kB / 0.4941 GB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.1269, allocations: 67.91 kB / 0.4942 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006727/0.1336, allocations: 5.279 MB / 0.4994 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.134, allocations: 28.06 kB / 0.4994 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.134, allocations: 8 kB / 0.4994 GB, free: 1.305 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.000347/0.1344, allocations: 225.3 kB / 0.4996 GB, free: 1.082 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002215/0.1346, allocations: 141.2 kB / 0.4998 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004156/0.1388, allocations: 0.8127 MB / 0.5005 GB, free: 104 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.1388, allocations: 4 kB / 0.5005 GB, free: 100 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.201/0.3398, allocations: 0.6647 MB / 0.5012 GB, free: 22.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.3398, allocations: 9.219 kB / 0.5012 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.3398, allocations: 7.578 kB / 0.5012 GB, free: 22.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001492/0.3413, allocations: 205.1 kB / 0.5014 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003243/0.3417, allocations: 68.08 kB / 0.5015 GB, free: 22.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005406/0.3471, allocations: 5.284 MB / 0.5066 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003056/0.3474, allocations: 23.59 kB / 0.5067 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.3474, allocations: 14.39 kB / 0.5067 GB, free: 17.5 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.0001259/0.3476, allocations: 204.4 kB / 0.5069 GB, free: 17.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.076e-05/0.3476, allocations: 38.55 kB / 0.5069 GB, free: 17.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001449/0.3491, allocations: 485.7 kB / 0.5074 GB, free: 17.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.3491, allocations: 1.641 kB / 0.5074 GB, free: 17.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3491, allocations: 3.594 kB / 0.5074 GB, free: 17.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.3492, allocations: 135.9 kB / 0.5075 GB, free: 17.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.3493, allocations: 8.719 kB / 0.5075 GB, free: 17.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002932/0.3496, allocations: 24.66 kB / 0.5075 GB, free: 17.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.3497, allocations: 23.19 kB / 0.5076 GB, free: 17.17 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001115/0.3508, allocations: 484.4 kB / 0.508 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007622/0.3516, allocations: 0.6519 MB / 0.5087 GB, free: 16.84 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002179/0.3518, allocations: 132 kB / 0.5088 GB, free: 16.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003704/0.3522, allocations: 261.2 kB / 0.509 GB, free: 16.75 MB / 382.1 MB Notification: Performance of Backend: time 4.1e-07/0.3522, allocations: 1 kB / 0.509 GB, free: 16.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.3534, allocations: 0.8876 MB / 0.5099 GB, free: 16.23 MB / 382.1 MB Notification: Performance of SimCode: time 0.001167/0.3546, allocations: 1.333 MB / 0.5112 GB, free: 15.3 MB / 382.1 MB Notification: Performance of Templates: time 0.01136/0.366, allocations: 6.511 MB / 0.5176 GB, free: 14.91 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)