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.001881/0.001881, allocations: 96.36 kB / 20.46 MB, free: 1.367 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.001594/0.001594, allocations: 214 kB / 23.76 MB, free: 4.52 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.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1084/0.1084, allocations: 24.03 MB / 338 MB, free: 11.34 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: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") [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.002241/0.002241, allocations: 67.89 kB / 475.1 MB, free: 5.895 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3099, allocations: 59.57 MB / 0.5221 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002831/0.3128, allocations: 0.9734 MB / 0.5231 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.3144, allocations: 1.236 MB / 0.5243 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.426e-05/0.3145, allocations: 2.5 kB / 0.5243 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003256/0.3148, allocations: 39.02 kB / 0.5243 GB, free: 8.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.315, allocations: 51.83 kB / 0.5244 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.3153, allocations: 96.94 kB / 0.5245 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.3156, allocations: 258.2 kB / 0.5247 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.3158, allocations: 20.42 kB / 0.5247 GB, free: 8.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.3159, allocations: 100.1 kB / 0.5248 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.3161, allocations: 89.14 kB / 0.5249 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.025e-05/0.3162, allocations: 9.656 kB / 0.5249 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.934e-05/0.3162, allocations: 9.938 kB / 0.5249 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.3163, allocations: 44.5 kB / 0.525 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.594e-05/0.3163, allocations: 51 kB / 0.525 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.3165, allocations: 128.2 kB / 0.5251 GB, free: 8.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3165, allocations: 0 / 0.5251 GB, free: 8.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3165, allocations: 5.391 kB / 0.5251 GB, free: 8.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3165, allocations: 0 / 0.5251 GB, free: 8.52 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.001021/0.3176, allocations: 453.9 kB / 0.5256 GB, free: 8.184 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.3176, allocations: 9.797 kB / 0.5256 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.3176, allocations: 20.66 kB / 0.5256 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.3182, allocations: 227.1 kB / 0.5258 GB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.3182, allocations: 12.69 kB / 0.5258 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.3182, allocations: 6.453 kB / 0.5258 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002245/0.3184, allocations: 127.3 kB / 0.526 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3185, allocations: 0 / 0.526 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.3185, allocations: 5.125 kB / 0.526 GB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.3185, allocations: 6.75 kB / 0.526 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.3187, allocations: 83.94 kB / 0.5261 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006847/0.3194, allocations: 0.5108 MB / 0.5266 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003753/0.3197, allocations: 134.3 kB / 0.5267 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.775e-05/0.3198, allocations: 49.89 kB / 0.5267 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.3198, allocations: 1.656 kB / 0.5267 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.3199, allocations: 37.73 kB / 0.5268 GB, free: 7.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.3199, allocations: 0 / 0.5268 GB, free: 7.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003858/0.3202, allocations: 161.6 kB / 0.5269 GB, free: 7.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.437e-05/0.3203, allocations: 53.41 kB / 0.527 GB, free: 7.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004631/0.3207, allocations: 263.7 kB / 0.5272 GB, free: 7.051 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.3207, allocations: 29.64 kB / 0.5273 GB, free: 7.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.168e-05/0.3208, allocations: 117 kB / 0.5274 GB, free: 6.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.3208, allocations: 35.03 kB / 0.5274 GB, free: 6.883 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-05/0.3209, allocations: 33.94 kB / 0.5274 GB, free: 6.855 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.283e-05/0.3209, allocations: 332.8 kB / 0.5277 GB, free: 6.531 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.82e-05/0.321, allocations: 35.45 kB / 0.5278 GB, free: 6.523 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.627e-05/0.3211, allocations: 79.58 kB / 0.5279 GB, free: 6.473 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/0.3219, allocations: 241.4 kB / 0.5281 GB, free: 6.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3219, allocations: 0 / 0.5281 GB, free: 6.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002678/0.3222, allocations: 165.8 kB / 0.5282 GB, free: 6.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3222, allocations: 9.656 kB / 0.5283 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3222, allocations: 1.547 kB / 0.5283 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3222, allocations: 1.094 kB / 0.5283 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.3223, allocations: 26.08 kB / 0.5283 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3223, allocations: 2.016 kB / 0.5283 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001923/0.3225, allocations: 31.84 kB / 0.5283 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.3225, allocations: 3.406 kB / 0.5283 GB, free: 6.297 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.0001182/0.3227, allocations: 139.7 kB / 0.5284 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.904e-05/0.3227, allocations: 15.77 kB / 0.5285 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.92e-05/0.3228, allocations: 23.44 kB / 0.5285 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3228, allocations: 1.25 kB / 0.5285 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3228, allocations: 1.156 kB / 0.5285 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3228, allocations: 8.5 kB / 0.5285 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.3229, allocations: 172.6 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.3229, allocations: 0.9688 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.3231, allocations: 16.75 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3231, allocations: 1.125 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.3231, allocations: 1.281 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3231, allocations: 1.312 kB / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3231, allocations: 0 / 0.5287 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003413/0.3234, allocations: 287.6 kB / 0.529 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.3235, allocations: 14.97 kB / 0.529 GB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.3235, allocations: 7.875 kB / 0.529 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002193/0.3237, allocations: 32.86 kB / 0.529 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.3238, allocations: 6.016 kB / 0.529 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.3238, allocations: 2.344 kB / 0.529 GB, free: 5.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003611/0.3241, allocations: 199.3 kB / 0.5292 GB, free: 5.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3241, allocations: 0 / 0.5292 GB, free: 5.668 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002614/0.3244, allocations: 34.41 kB / 0.5292 GB, free: 5.652 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 7.601e-05/0.3245, allocations: 102.7 kB / 0.5293 GB, free: 5.559 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002446/0.3247, allocations: 100.8 kB / 0.5294 GB, free: 5.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3247, allocations: 1.188 kB / 0.5294 GB, free: 5.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.989e-05/0.3248, allocations: 45.17 kB / 0.5295 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3251, allocations: 27.3 kB / 0.5295 GB, free: 5.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000604/0.3257, allocations: 366.7 kB / 0.5299 GB, free: 5.254 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001125/0.3258, allocations: 114.3 kB / 0.53 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.557e-05/0.3259, allocations: 15.38 kB / 0.53 GB, free: 5.172 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3259, allocations: 0 / 0.53 GB, free: 5.172 MB / 382.1 MB Notification: Performance of Templates: time 0.005569/0.3315, allocations: 1.957 MB / 0.5319 GB, free: 5.012 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile [Timeout 660] (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 & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.291369500104338] Failed to read output from testmodel.py, exit status != 0: 0.3404621439985931 0.35389665099999995 0.034331039 Calling exit ...