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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 110.1 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 223.7 kB / 23.05 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.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.1047/0.1047, allocations: 22.93 MB / 336.2 MB, free: 12.6 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002776/0.002776, allocations: 63.91 kB / 472.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.328/0.3308, allocations: 59.28 MB / 0.5191 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002249/0.333, allocations: 1.028 MB / 0.5201 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.3344, allocations: 1.273 MB / 0.5213 GB, free: 9.148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.239e-05/0.3345, allocations: 6.906 kB / 0.5213 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.3348, allocations: 38.88 kB / 0.5214 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.3349, allocations: 50.11 kB / 0.5214 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.3351, allocations: 94.67 kB / 0.5215 GB, free: 9.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003557/0.3355, allocations: 257.2 kB / 0.5218 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.605e-05/0.3356, allocations: 26.05 kB / 0.5218 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.3357, allocations: 99.34 kB / 0.5219 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.3359, allocations: 96.03 kB / 0.522 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.708e-05/0.3359, allocations: 13.84 kB / 0.522 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.114e-05/0.3359, allocations: 10.12 kB / 0.522 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.516e-05/0.336, allocations: 50.98 kB / 0.522 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.059e-05/0.3361, allocations: 54.78 kB / 0.5221 GB, free: 8.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000175/0.3362, allocations: 123.6 kB / 0.5222 GB, free: 8.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3362, allocations: 1.312 kB / 0.5222 GB, free: 8.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.3362, allocations: 0 / 0.5222 GB, free: 8.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3362, allocations: 3.938 kB / 0.5222 GB, free: 8.758 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001157/0.3374, allocations: 458.2 kB / 0.5227 GB, free: 8.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.3374, allocations: 15.11 kB / 0.5227 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.494e-05/0.3375, allocations: 1.375 kB / 0.5227 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.548e-05/0.3375, allocations: 40.17 kB / 0.5227 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.3375, allocations: 16.66 kB / 0.5227 GB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004839/0.338, allocations: 230.8 kB / 0.523 GB, free: 8.195 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.338, allocations: 12.47 kB / 0.523 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.295e-05/0.338, allocations: 10.48 kB / 0.523 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000198/0.3382, allocations: 122.4 kB / 0.5231 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3382, allocations: 0 / 0.5231 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.3383, allocations: 5.281 kB / 0.5231 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.3383, allocations: 1.844 kB / 0.5231 GB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001849/0.3385, allocations: 85.83 kB / 0.5232 GB, free: 8.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006119/0.3391, allocations: 0.5559 MB / 0.5237 GB, free: 7.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.3394, allocations: 137.7 kB / 0.5239 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.975e-05/0.3395, allocations: 46.19 kB / 0.5239 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.357e-05/0.3395, allocations: 1.25 kB / 0.5239 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.193e-05/0.3395, allocations: 36.41 kB / 0.5239 GB, free: 7.484 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.3395, allocations: 0 / 0.5239 GB, free: 7.484 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000338/0.3399, allocations: 162.4 kB / 0.5241 GB, free: 7.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.3399, allocations: 61.41 kB / 0.5241 GB, free: 7.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004339/0.3403, allocations: 256.3 kB / 0.5244 GB, free: 7.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.3403, allocations: 29.7 kB / 0.5244 GB, free: 7.168 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.3404, allocations: 115.6 kB / 0.5245 GB, free: 7.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.333e-05/0.3404, allocations: 41.59 kB / 0.5246 GB, free: 7.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.3405, allocations: 26.31 kB / 0.5246 GB, free: 7.008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.338e-05/0.3405, allocations: 329 kB / 0.5249 GB, free: 6.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.186e-05/0.3406, allocations: 38.73 kB / 0.5249 GB, free: 6.676 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.042e-05/0.3407, allocations: 68.86 kB / 0.525 GB, free: 6.637 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007062/0.3414, allocations: 252.6 kB / 0.5253 GB, free: 6.543 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3414, allocations: 4.375 kB / 0.5253 GB, free: 6.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002405/0.3416, allocations: 162.4 kB / 0.5254 GB, free: 6.461 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3416, allocations: 10.91 kB / 0.5254 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3416, allocations: 5.125 kB / 0.5254 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.3416, allocations: 4.875 kB / 0.5254 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.3418, allocations: 24.05 kB / 0.5255 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.3418, allocations: 1.062 kB / 0.5255 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.342, allocations: 31.17 kB / 0.5255 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.342, allocations: 3.938 kB / 0.5255 GB, free: 6.445 MB / 382.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.0001064/0.3421, allocations: 138.6 kB / 0.5256 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.3421, allocations: 16.11 kB / 0.5256 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.36e-05/0.3422, allocations: 22.09 kB / 0.5257 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3422, allocations: 9 kB / 0.5257 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3422, allocations: 0.9375 kB / 0.5257 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3422, allocations: 1.156 kB / 0.5257 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.3424, allocations: 206.7 kB / 0.5259 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.3424, allocations: 0 / 0.5259 GB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001254/0.3425, allocations: 21.72 kB / 0.5259 GB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3425, allocations: 5.5 kB / 0.5259 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.492e-05/0.3425, allocations: 1.375 kB / 0.5259 GB, free: 6.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3425, allocations: 7.875 kB / 0.5259 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3425, allocations: 0 / 0.5259 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.3428, allocations: 280.4 kB / 0.5262 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.239e-05/0.3429, allocations: 17.86 kB / 0.5262 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.3429, allocations: 8.188 kB / 0.5262 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002172/0.3431, allocations: 30.27 kB / 0.5262 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.3431, allocations: 5.859 kB / 0.5262 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.3431, allocations: 6.031 kB / 0.5262 GB, free: 5.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003526/0.3435, allocations: 198.3 kB / 0.5264 GB, free: 5.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3435, allocations: 0 / 0.5264 GB, free: 5.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002534/0.3438, allocations: 25.66 kB / 0.5264 GB, free: 5.77 MB / 382.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.0004438/0.3442, allocations: 0.8083 MB / 0.5272 GB, free: 5.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002204/0.3444, allocations: 102.8 kB / 0.5273 GB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3444, allocations: 128 / 0.5273 GB, free: 5.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.455e-05/0.3445, allocations: 52.55 kB / 0.5274 GB, free: 5.012 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.3448, allocations: 32.69 kB / 0.5274 GB, free: 4.996 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.3474, allocations: 2.106 MB / 0.5295 GB, free: 3.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.3475, allocations: 0.7301 MB / 0.5302 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.894e-05/0.3476, allocations: 24.58 kB / 0.5302 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.198e-05/0.3477, allocations: 43.02 kB / 0.5302 GB, free: 2.762 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3477, allocations: 1.062 kB / 0.5302 GB, free: 2.762 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02606/0.3738, allocations: 3.336 MB / 0.5335 GB, free: 2.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.52, allocations: 15.52 kB / 0.5335 GB, free: 2.234 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.348300234996714] Failed to read output from testmodel.py, exit status != 0: 11.692327642987948 11.716083513 11.375111277 Calling exit ...