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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_PA_islanded_generator_loadDroop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_PA_islanded_generator_loadDroop",fmuType="me",version="2.0",platforms={"static"}) [/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.1437/0.1437, allocations: 21.61 MB / 36.56 MB, free: 1.078 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.001295/0.001295, allocations: 175.6 kB / 42.83 MB, free: 3.832 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.493/1.493, allocations: 223.2 MB / 272.1 MB, free: 1.387 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.000865/0.000865, allocations: 88.17 kB / 328.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00036/0.0003602, allocations: 8 kB / 397.1 MB, free: 46.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09823/0.09861, allocations: 55.81 MB / 452.9 MB, free: 6.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3381/0.4367, allocations: 84.19 MB / 0.5245 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.437, allocations: 74.58 kB / 0.5246 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01608/0.4531, allocations: 6.08 MB / 0.5305 GB, free: 11.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4531, allocations: 0 / 0.5305 GB, free: 11.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.773e-05/0.4532, allocations: 11.62 kB / 0.5306 GB, free: 11.15 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.001062/0.4542, allocations: 0.677 MB / 0.5312 GB, free: 10.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.4543, allocations: 11.06 kB / 0.5312 GB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.862e-05/0.4544, allocations: 58.95 kB / 0.5313 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.597e-05/0.4544, allocations: 46.66 kB / 0.5313 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000572/0.455, allocations: 366.3 kB / 0.5317 GB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.455, allocations: 21.84 kB / 0.5317 GB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.4551, allocations: 37.38 kB / 0.5317 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.4555, allocations: 315.7 kB / 0.532 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.4556, allocations: 0 / 0.532 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.4556, allocations: 9.969 kB / 0.532 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.4556, allocations: 3.844 kB / 0.532 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004017/0.456, allocations: 247 kB / 0.5323 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.4573, allocations: 1.046 MB / 0.5333 GB, free: 9.391 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.4578, allocations: 287.3 kB / 0.5336 GB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.4579, allocations: 3.844 kB / 0.5336 GB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.4579, allocations: 41.22 kB / 0.5336 GB, free: 9.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.4579, allocations: 0 / 0.5336 GB, free: 9.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.005118/0.463, allocations: 1.437 MB / 0.535 GB, free: 8.629 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.4631, allocations: 81.08 kB / 0.5351 GB, free: 8.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.4635, allocations: 314.8 kB / 0.5354 GB, free: 8.391 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.4636, allocations: 40.48 kB / 0.5354 GB, free: 8.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.975e-05/0.4637, allocations: 203.2 kB / 0.5356 GB, free: 8.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.4637, allocations: 100.9 kB / 0.5357 GB, free: 8.148 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.508e-05/0.4638, allocations: 6.625 kB / 0.5357 GB, free: 8.148 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.25e-05/0.4638, allocations: 350.2 kB / 0.5361 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.464, allocations: 107.8 kB / 0.5362 GB, free: 7.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.4642, allocations: 167.4 kB / 0.5363 GB, free: 7.734 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.4645, allocations: 133.9 kB / 0.5365 GB, free: 7.719 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4645, allocations: 4.031 kB / 0.5365 GB, free: 7.715 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.002068/0.4665, allocations: 0.7414 MB / 0.5372 GB, free: 7.324 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.012e-05/0.4666, allocations: 354.8 kB / 0.5375 GB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.4666, allocations: 4.062 kB / 0.5375 GB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.4682, allocations: 230.2 kB / 0.5377 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.4686, allocations: 69.53 kB / 0.5378 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006442/0.475, allocations: 5.003 MB / 0.5427 GB, free: 2.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003497/0.4754, allocations: 35.28 kB / 0.5427 GB, free: 2.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.4754, allocations: 7.656 kB / 0.5427 GB, free: 2.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.235e-06/0.4755, allocations: 3.844 kB / 0.5427 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.001906/0.4774, allocations: 0.6439 MB / 0.5434 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.4774, allocations: 3.984 kB / 0.5434 GB, free: 1.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001517/0.4789, allocations: 223.2 kB / 0.5436 GB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.4792, allocations: 69.97 kB / 0.5437 GB, free: 1.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006612/0.4858, allocations: 5.002 MB / 0.5485 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003534/0.4862, allocations: 23.38 kB / 0.5486 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.689e-05/0.4862, allocations: 11.66 kB / 0.5486 GB, free: 13.36 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.0003318/0.4866, allocations: 240 kB / 0.5488 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.4867, allocations: 38.47 kB / 0.5488 GB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001569/0.4883, allocations: 0.5038 MB / 0.5493 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.4883, allocations: 3.875 kB / 0.5493 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-06/0.4883, allocations: 0 / 0.5493 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4883, allocations: 4 kB / 0.5493 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.4904, allocations: 0.9696 MB / 0.5503 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4904, allocations: 3.938 kB / 0.5503 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.4907, allocations: 57.64 kB / 0.5503 GB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.4918, allocations: 186.6 kB / 0.5505 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.4918, allocations: 6.969 kB / 0.5505 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003955/0.4958, allocations: 1.989 MB / 0.5525 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4958, allocations: 3.984 kB / 0.5525 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001753/0.4976, allocations: 0.7196 MB / 0.5532 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001744/0.4977, allocations: 142.3 kB / 0.5533 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.4978, allocations: 7.375 kB / 0.5533 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/0.4981, allocations: 27.34 kB / 0.5533 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.909e-05/0.4982, allocations: 23.03 kB / 0.5534 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.4983, allocations: 11.09 kB / 0.5534 GB, free: 10.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000424/0.4987, allocations: 259.8 kB / 0.5536 GB, free: 10.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4987, allocations: 0 / 0.5536 GB, free: 10.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007291/0.4994, allocations: 125.2 kB / 0.5537 GB, free: 10.3 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.002095/0.5015, allocations: 1.281 MB / 0.555 GB, free: 9.492 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.503, allocations: 0.9011 MB / 0.5559 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.503, allocations: 0 / 0.5559 GB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000374/0.5034, allocations: 269.9 kB / 0.5561 GB, free: 8.805 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.5038, allocations: 67 kB / 0.5562 GB, free: 8.785 MB / 378.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.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 simCode: created linear, non-linear and system jacobian parts: time 0.005664/0.5095, allocations: 3.282 MB / 0.5594 GB, free: 6.574 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.5099, allocations: 0.8184 MB / 0.5602 GB, free: 5.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002636/0.5102, allocations: 62.92 kB / 0.5603 GB, free: 5.668 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.5103, allocations: 119.6 kB / 0.5604 GB, free: 5.637 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5103, allocations: 0 / 0.5604 GB, free: 5.637 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.5351, allocations: 8.308 MB / 0.5685 GB, free: 13.58 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/0.5354, allocations: 236.5 kB / 0.5687 GB, free: 13.33 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.089/2.624, allocations: 4 kB / 0.5687 GB, free: 13.33 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_PA_islanded_generator_loadDroop_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_PA_islanded_generator_loadDroop.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe 2>&1)