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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0899/0.0899, allocations: 21.61 MB / 36.56 MB, free: 1.121 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008672/0.0008673, allocations: 178.4 kB / 42.82 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 223.2 MB / 272.1 MB, free: 1.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008401/0.00084, allocations: 105.9 kB / 328.7 MB, free: 11.65 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003142/0.0003142, allocations: 8 kB / 397 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08623/0.08656, allocations: 55.83 MB / 452.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2673/0.3539, allocations: 84.17 MB / 0.5244 GB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.3541, allocations: 83.27 kB / 0.5245 GB, free: 13.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01438/0.3685, allocations: 6.091 MB / 0.5305 GB, free: 11.1 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3685, allocations: 0 / 0.5305 GB, free: 11.1 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.3685, allocations: 4.844 kB / 0.5305 GB, free: 11.1 MB / 362.7 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.0009372/0.3695, allocations: 0.6733 MB / 0.5311 GB, free: 10.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.3695, allocations: 7.688 kB / 0.5311 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.3696, allocations: 42.56 kB / 0.5312 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.3701, allocations: 382.9 kB / 0.5315 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.3701, allocations: 15.03 kB / 0.5316 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.3702, allocations: 40.86 kB / 0.5316 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.3706, allocations: 313.4 kB / 0.5319 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.3706, allocations: 0 / 0.5319 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.3707, allocations: 6.25 kB / 0.5319 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.3707, allocations: 7.531 kB / 0.5319 GB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003852/0.3711, allocations: 244.3 kB / 0.5321 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.3723, allocations: 1.049 MB / 0.5332 GB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.3727, allocations: 290.7 kB / 0.5334 GB, free: 9.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.574e-05/0.3728, allocations: 7.344 kB / 0.5335 GB, free: 9.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.275e-05/0.3728, allocations: 34.5 kB / 0.5335 GB, free: 9.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.252e-06/0.3728, allocations: 0 / 0.5335 GB, free: 9.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.004711/0.3775, allocations: 1.444 MB / 0.5349 GB, free: 8.613 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.3776, allocations: 81.02 kB / 0.535 GB, free: 8.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.378, allocations: 321.8 kB / 0.5353 GB, free: 8.371 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.22e-05/0.378, allocations: 36.92 kB / 0.5353 GB, free: 8.336 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.528e-05/0.3781, allocations: 189.7 kB / 0.5355 GB, free: 8.211 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.393e-05/0.3781, allocations: 110.4 kB / 0.5356 GB, free: 8.133 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.39e-05/0.3781, allocations: 3.375 kB / 0.5356 GB, free: 8.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.082e-05/0.3782, allocations: 350.2 kB / 0.5359 GB, free: 7.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.3784, allocations: 111.8 kB / 0.536 GB, free: 7.785 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.3786, allocations: 162.5 kB / 0.5362 GB, free: 7.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000202/0.3788, allocations: 132.2 kB / 0.5363 GB, free: 7.703 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3788, allocations: 0 / 0.5363 GB, free: 7.703 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pcmd = G.Pm [ -1.0 , 1.0 ; 1.0 , -1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm 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.001921/0.3808, allocations: 0.7359 MB / 0.537 GB, free: 7.316 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.394e-05/0.3808, allocations: 368.2 kB / 0.5374 GB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.3808, allocations: 0 / 0.5374 GB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.3823, allocations: 228 kB / 0.5376 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.3827, allocations: 72.95 kB / 0.5377 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.3887, allocations: 4.996 MB / 0.5426 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.389, allocations: 31.09 kB / 0.5426 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.389, allocations: 11.59 kB / 0.5426 GB, free: 2.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-06/0.389, allocations: 3.844 kB / 0.5426 GB, free: 2.32 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pcmd = G.Pm [ -1.0 , 1.0 ; 1.0 , -1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001771/0.3908, allocations: 0.6482 MB / 0.5432 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.314e-06/0.3908, allocations: 0 / 0.5432 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.3923, allocations: 231.4 kB / 0.5435 GB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002933/0.3926, allocations: 65.66 kB / 0.5435 GB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006387/0.399, allocations: 5.007 MB / 0.5484 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.3993, allocations: 23.47 kB / 0.5484 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.733e-05/0.3993, allocations: 11.78 kB / 0.5484 GB, free: 13.35 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002196/0.3995, allocations: 239 kB / 0.5487 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.839e-05/0.3996, allocations: 38.97 kB / 0.5487 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.4011, allocations: 0.5096 MB / 0.5492 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.4011, allocations: 3.969 kB / 0.5492 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-06/0.4011, allocations: 0 / 0.5492 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4011, allocations: 0 / 0.5492 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001832/0.4029, allocations: 0.9639 MB / 0.5502 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4029, allocations: 0 / 0.5502 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.4032, allocations: 54.5 kB / 0.5502 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.4043, allocations: 189 kB / 0.5504 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.841e-05/0.4043, allocations: 10.72 kB / 0.5504 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003632/0.408, allocations: 1.991 MB / 0.5523 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.408, allocations: 0 / 0.5523 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.4096, allocations: 0.721 MB / 0.553 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.4097, allocations: 140.5 kB / 0.5532 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.4098, allocations: 6.875 kB / 0.5532 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.4101, allocations: 34.53 kB / 0.5532 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.2e-05/0.4101, allocations: 23.31 kB / 0.5532 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.4101, allocations: 3.969 kB / 0.5532 GB, free: 10.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003424/0.4105, allocations: 268.5 kB / 0.5535 GB, free: 10.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4105, allocations: 0 / 0.5535 GB, free: 10.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005999/0.4111, allocations: 123.2 kB / 0.5536 GB, free: 10.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (g.x_scaled[1],g.x_scaled[2],Cps.I.y,G.thetap,G.deltag,G.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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001163/0.4112, allocations: 105.7 kB / 0.5537 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.4125, allocations: 0.9036 MB / 0.5546 GB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4125, allocations: 0 / 0.5546 GB, free: 9.656 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/0.4128, allocations: 281.2 kB / 0.5549 GB, free: 9.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/0.4132, allocations: 66.17 kB / 0.5549 GB, free: 9.484 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.4145, allocations: 1.019 MB / 0.5559 GB, free: 8.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.4149, allocations: 0.8162 MB / 0.5567 GB, free: 8.043 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002065/0.4151, allocations: 57.83 kB / 0.5568 GB, free: 8.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.87e-05/0.4152, allocations: 22.94 kB / 0.5568 GB, free: 8.012 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4152, allocations: 0 / 0.5568 GB, free: 8.012 MB / 378.7 MB Notification: Performance of Templates: time 0.008091/0.4233, allocations: 4.804 MB / 0.5615 GB, free: 3.98 MB / 378.7 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)