Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_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_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001043, allocations: 113.8 kB / 16.42 MB, free: 6.469 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.001019/0.001019, allocations: 187.9 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09846/0.09846, allocations: 22.33 MB / 313.5 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 67.91 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08682/0.08818, allocations: 54.95 MB / 492.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003489/0.0917, allocations: 2.6 MB / 495.3 MB, free: 2.125 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.09316, allocations: 0.7873 MB / 496.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002231/0.0934, allocations: 4 kB / 496.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004035/0.09381, allocations: 99.2 kB / 496.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.0942, allocations: 147.1 kB / 496.3 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004016/0.09461, allocations: 199.7 kB / 496.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005518/0.09517, allocations: 0.5499 MB / 497.1 MB, free: 352 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.09541, allocations: 132.4 kB / 497.2 MB, free: 216 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.09573, allocations: 235.2 kB / 497.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003349/0.09608, allocations: 250.8 kB / 497.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.091e-05/0.09616, allocations: 36 kB / 497.7 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.54e-05/0.09623, allocations: 40 kB / 497.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.09637, allocations: 115.5 kB / 497.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.09654, allocations: 198.8 kB / 498 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000386/0.09694, allocations: 434.2 kB / 498.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.09695, allocations: 4 kB / 498.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09696, allocations: 4 kB / 498.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.09698, allocations: 0 / 498.5 MB, free: 14.92 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001899/0.09888, allocations: 0.8376 MB / 499.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.09893, allocations: 8.031 kB / 499.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.921e-05/0.09903, allocations: 52.28 kB / 499.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008799/0.09992, allocations: 438 kB / 499.8 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.09995, allocations: 21.03 kB / 499.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.006e-05/0.1, allocations: 39.94 kB / 499.9 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004947/0.1005, allocations: 313.9 kB / 0.4884 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.1005, allocations: 3.984 kB / 0.4884 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.1006, allocations: 12 kB / 0.4885 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1006, allocations: 12 kB / 0.4885 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.101, allocations: 230.4 kB / 0.4887 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.1027, allocations: 1.062 MB / 0.4897 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008017/0.1035, allocations: 419.9 kB / 0.4901 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.1037, allocations: 157.5 kB / 0.4903 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.1038, allocations: 4.328 kB / 0.4903 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.1038, allocations: 46.77 kB / 0.4903 GB, free: 11.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.813e-06/0.1038, allocations: 0 / 0.4903 GB, free: 11.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=42): time 0.003081/0.1069, allocations: 1.182 MB / 0.4915 GB, free: 9.867 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.107, allocations: 55.41 kB / 0.4915 GB, free: 9.801 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007946/0.1078, allocations: 441.5 kB / 0.492 GB, free: 9.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.1078, allocations: 33.7 kB / 0.492 GB, free: 9.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.1079, allocations: 204.5 kB / 0.4922 GB, free: 9.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.108, allocations: 154.4 kB / 0.4923 GB, free: 8.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1082, allocations: 74.14 kB / 0.4924 GB, free: 8.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1083, allocations: 358.8 kB / 0.4927 GB, free: 8.527 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1085, allocations: 116.8 kB / 0.4929 GB, free: 8.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002397/0.1088, allocations: 173 kB / 0.493 GB, free: 8.227 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004375/0.1132, allocations: 0.9164 MB / 0.4939 GB, free: 7.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1132, allocations: 7.938 kB / 0.4939 GB, free: 7.285 MB / 382.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge2.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm 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.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.002376/0.1156, allocations: 0.9548 MB / 0.4949 GB, free: 6.234 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1156, allocations: 12.12 kB / 0.4949 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.1156, allocations: 0 / 0.4949 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/0.1173, allocations: 266.2 kB / 0.4951 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.1177, allocations: 79.89 kB / 0.4952 GB, free: 5.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1974/0.3152, allocations: 8.6 MB / 0.5036 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004717/0.3157, allocations: 47.52 kB / 0.5036 GB, free: 19.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.3157, allocations: 14.53 kB / 0.5037 GB, free: 19.61 MB / 382.1 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: 5 * 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0001929/0.3159, allocations: 160.5 kB / 0.5038 GB, free: 19.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.316, allocations: 38.66 kB / 0.5038 GB, free: 19.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001477/0.3175, allocations: 0.5528 MB / 0.5044 GB, free: 19.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.3175, allocations: 0.5156 kB / 0.5044 GB, free: 19.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.3175, allocations: 3.719 kB / 0.5044 GB, free: 19.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-05/0.3176, allocations: 121.4 kB / 0.5045 GB, free: 19.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.984e-05/0.3177, allocations: 11.52 kB / 0.5045 GB, free: 19.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.3181, allocations: 39.73 kB / 0.5045 GB, free: 19.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.3182, allocations: 36.3 kB / 0.5046 GB, free: 19.34 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001291/0.3195, allocations: 0.5473 MB / 0.5051 GB, free: 19.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007949/0.3203, allocations: 0.7109 MB / 0.5058 GB, free: 19.01 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002196/0.3205, allocations: 142.3 kB / 0.5059 GB, free: 19.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006862/0.3212, allocations: 330 kB / 0.5063 GB, free: 18.92 MB / 382.1 MB Notification: Performance of Backend: time 6.31e-07/0.3212, allocations: 3.281 kB / 0.5063 GB, free: 18.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.3222, allocations: 0.6516 MB / 0.5069 GB, free: 18.52 MB / 382.1 MB Notification: Performance of SimCode: time 0.001402/0.3237, allocations: 1.512 MB / 0.5084 GB, free: 17.52 MB / 382.1 MB Notification: Performance of Templates: time 0.01109/0.3348, allocations: 5.253 MB / 0.5135 GB, free: 17.22 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)