Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 103.9 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 187.7 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 225.6 MB / 247.8 MB, free: 3.762 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09176/0.09176, allocations: 22.68 MB / 325.4 MB, free: 7.945 MB / 254.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 70.94 kB / 457.1 MB, free: 41.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08946/0.09131, allocations: 58.03 MB / 0.5031 GB, free: 8.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001905/0.09322, allocations: 1.014 MB / 0.5041 GB, free: 7.273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.09424, allocations: 1.217 MB / 0.5053 GB, free: 6.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.109e-05/0.09431, allocations: 8 kB / 0.5053 GB, free: 6.031 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.0946, allocations: 47.69 kB / 0.5053 GB, free: 5.984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.09473, allocations: 43.77 kB / 0.5054 GB, free: 5.941 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001606/0.09489, allocations: 79.88 kB / 0.5054 GB, free: 5.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002017/0.09509, allocations: 219.5 kB / 0.5057 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.146e-05/0.09518, allocations: 33.34 kB / 0.5057 GB, free: 5.609 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.653e-05/0.09528, allocations: 83.75 kB / 0.5058 GB, free: 5.527 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.09542, allocations: 103.6 kB / 0.5059 GB, free: 5.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.09544, allocations: 8 kB / 0.5059 GB, free: 5.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.717e-05/0.09546, allocations: 12 kB / 0.5059 GB, free: 5.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.09552, allocations: 39.89 kB / 0.5059 GB, free: 5.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.652e-05/0.09556, allocations: 67.58 kB / 0.506 GB, free: 5.301 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.0957, allocations: 127.3 kB / 0.5061 GB, free: 5.176 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.09571, allocations: 0 / 0.5061 GB, free: 5.176 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.09571, allocations: 0 / 0.5061 GB, free: 5.176 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.09572, allocations: 0 / 0.5061 GB, free: 5.176 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009156/0.09663, allocations: 0.5103 MB / 0.5066 GB, free: 4.617 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.09667, allocations: 12.03 kB / 0.5066 GB, free: 4.605 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.097e-05/0.0967, allocations: 38.73 kB / 0.5067 GB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.457e-05/0.09673, allocations: 20.84 kB / 0.5067 GB, free: 4.539 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004668/0.0972, allocations: 292.8 kB / 0.507 GB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.09722, allocations: 8.375 kB / 0.507 GB, free: 4.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.09724, allocations: 16.33 kB / 0.507 GB, free: 4.188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001848/0.09743, allocations: 126.7 kB / 0.5071 GB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.09744, allocations: 0 / 0.5071 GB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.09745, allocations: 0 / 0.5071 GB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.09745, allocations: 0 / 0.5071 GB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.09761, allocations: 91.88 kB / 0.5072 GB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006036/0.09821, allocations: 0.5829 MB / 0.5078 GB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003005/0.09851, allocations: 130.5 kB / 0.5079 GB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.592e-05/0.09859, allocations: 49.02 kB / 0.5079 GB, free: 3.133 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.0986, allocations: 11.94 kB / 0.5079 GB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.138e-05/0.09862, allocations: 30.56 kB / 0.508 GB, free: 3.082 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.09862, allocations: 0 / 0.508 GB, free: 3.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002998/0.09892, allocations: 161.5 kB / 0.5081 GB, free: 2.918 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.956e-05/0.09894, allocations: 55.78 kB / 0.5082 GB, free: 2.852 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.0993, allocations: 262.6 kB / 0.5084 GB, free: 2.586 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.188e-06/0.09931, allocations: 29.64 kB / 0.5085 GB, free: 2.551 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.319e-05/0.09935, allocations: 124.1 kB / 0.5086 GB, free: 2.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.09937, allocations: 39.62 kB / 0.5086 GB, free: 2.387 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.89e-05/0.09941, allocations: 29.7 kB / 0.5086 GB, free: 2.352 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.16e-05/0.09945, allocations: 326.8 kB / 0.5089 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.039e-05/0.09952, allocations: 43.97 kB / 0.509 GB, free: 1.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.977e-05/0.09959, allocations: 69.22 kB / 0.5091 GB, free: 1.906 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.1002, allocations: 248.4 kB / 0.5093 GB, free: 1.656 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1002, allocations: 4 kB / 0.5093 GB, free: 1.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002026/0.1004, allocations: 165.5 kB / 0.5095 GB, free: 1.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.1005, allocations: 4 kB / 0.5095 GB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1005, allocations: 0 / 0.5095 GB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1005, allocations: 4 kB / 0.5095 GB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.1006, allocations: 23.92 kB / 0.5095 GB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1006, allocations: 12 kB / 0.5095 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.1007, allocations: 27.86 kB / 0.5095 GB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.1008, allocations: 4 kB / 0.5095 GB, free: 1.41 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.1009, allocations: 138.6 kB / 0.5097 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.1009, allocations: 19.89 kB / 0.5097 GB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.266e-05/0.1009, allocations: 25.39 kB / 0.5097 GB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.1009, allocations: 0 / 0.5097 GB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1009, allocations: 7.938 kB / 0.5097 GB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1009, allocations: 0 / 0.5097 GB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.1011, allocations: 237.6 kB / 0.5099 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1011, allocations: 0 / 0.5099 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.1012, allocations: 19.94 kB / 0.51 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1012, allocations: 0 / 0.51 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.1012, allocations: 3.984 kB / 0.51 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1012, allocations: 3.938 kB / 0.51 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1012, allocations: 3.938 kB / 0.51 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.1015, allocations: 287.3 kB / 0.5102 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.244e-05/0.1016, allocations: 97.05 kB / 0.5103 GB, free: 500 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.1016, allocations: 4 kB / 0.5103 GB, free: 496 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.1018, allocations: 19.97 kB / 0.5104 GB, free: 476 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.1018, allocations: 16.02 kB / 0.5104 GB, free: 460 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.1018, allocations: 7.938 kB / 0.5104 GB, free: 452 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003083/0.1021, allocations: 191.2 kB / 0.5106 GB, free: 260 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1021, allocations: 0 / 0.5106 GB, free: 260 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.1024, allocations: 27.94 kB / 0.5106 GB, free: 232 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006388/0.103, allocations: 0.8139 MB / 0.5114 GB, free: 15.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002421/0.1032, allocations: 103.9 kB / 0.5115 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1032, allocations: 0 / 0.5115 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.692e-05/0.1033, allocations: 43.97 kB / 0.5115 GB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.1036, allocations: 29.81 kB / 0.5116 GB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.1067, allocations: 2.116 MB / 0.5136 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.1071, allocations: 0.7279 MB / 0.5143 GB, free: 12.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.496e-05/0.1071, allocations: 25.06 kB / 0.5144 GB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.428e-05/0.1072, allocations: 47.42 kB / 0.5144 GB, free: 12.19 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1072, allocations: 288 / 0.5144 GB, free: 12.19 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02555/0.1328, allocations: 3.177 MB / 0.5175 GB, free: 9.141 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/7.886, allocations: 7.938 kB / 0.5175 GB, free: 9.133 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator_fmu --startTime=0 --stopTime=300 --stepSize=0.6 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.40873154439032] Failed to read output from testmodel.py, exit status != 0: 7.951136055868119 7.965251363 7.866817456 Calling exit ...