Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.001333/0.001333, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001552/0.001552, allocations: 208.9 kB / 23.01 MB, free: 4.621 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1305/0.1305, allocations: 24.04 MB / 337.2 MB, free: 11.38 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_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="me",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.003289/0.003289, allocations: 71.91 kB / 473.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3528, allocations: 59.57 MB / 0.5209 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002765/0.3556, allocations: 1.826 MB / 0.5227 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009145/0.3565, allocations: 0.5171 MB / 0.5232 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.357e-05/0.3565, allocations: 6.062 kB / 0.5232 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.3568, allocations: 32.73 kB / 0.5232 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.357, allocations: 47.36 kB / 0.5233 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.3571, allocations: 58.62 kB / 0.5233 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002848/0.3574, allocations: 230.8 kB / 0.5235 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.3575, allocations: 32.52 kB / 0.5236 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.3578, allocations: 100.5 kB / 0.5237 GB, free: 8.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.3579, allocations: 85.55 kB / 0.5238 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.178e-05/0.358, allocations: 16.38 kB / 0.5238 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.211e-05/0.358, allocations: 13.56 kB / 0.5238 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.027e-05/0.3581, allocations: 41.17 kB / 0.5238 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.239e-05/0.3581, allocations: 59.69 kB / 0.5239 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.3583, allocations: 148 kB / 0.524 GB, free: 8.195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3583, allocations: 0 / 0.524 GB, free: 8.195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3583, allocations: 0 / 0.524 GB, free: 8.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3583, allocations: 0 / 0.524 GB, free: 8.195 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008801/0.3592, allocations: 437.8 kB / 0.5244 GB, free: 7.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3592, allocations: 10.52 kB / 0.5244 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.3593, allocations: 44.69 kB / 0.5245 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.3593, allocations: 16.41 kB / 0.5245 GB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.3597, allocations: 183.1 kB / 0.5247 GB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.3597, allocations: 13.44 kB / 0.5247 GB, free: 7.645 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.3597, allocations: 20.66 kB / 0.5247 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.3599, allocations: 121.4 kB / 0.5248 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.3599, allocations: 1.25 kB / 0.5248 GB, free: 7.566 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.3599, allocations: 9.312 kB / 0.5248 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3599, allocations: 2.188 kB / 0.5248 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.3601, allocations: 82.72 kB / 0.5249 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006521/0.3608, allocations: 413.1 kB / 0.5253 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.3611, allocations: 154.4 kB / 0.5255 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.3612, allocations: 62.64 kB / 0.5255 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.3612, allocations: 2.594 kB / 0.5255 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.394e-05/0.3612, allocations: 35.78 kB / 0.5256 GB, free: 7.082 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.3612, allocations: 0 / 0.5256 GB, free: 7.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008916/0.3621, allocations: 470.4 kB / 0.526 GB, free: 6.785 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.945e-05/0.3621, allocations: 57.88 kB / 0.5261 GB, free: 6.719 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002828/0.3624, allocations: 195.1 kB / 0.5262 GB, free: 6.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.3624, allocations: 27.08 kB / 0.5263 GB, free: 6.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.066e-05/0.3625, allocations: 122.9 kB / 0.5264 GB, free: 6.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.458e-05/0.3625, allocations: 60.02 kB / 0.5264 GB, free: 6.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.882e-05/0.3626, allocations: 31.83 kB / 0.5265 GB, free: 6.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.612e-05/0.3626, allocations: 336.4 kB / 0.5268 GB, free: 6.051 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.616e-05/0.3627, allocations: 51.11 kB / 0.5268 GB, free: 6.031 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001007/0.3628, allocations: 69.25 kB / 0.5269 GB, free: 5.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007006/0.3635, allocations: 264.4 kB / 0.5272 GB, free: 5.898 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3635, allocations: 1.312 kB / 0.5272 GB, free: 5.898 MB / 382.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004853/0.364, allocations: 231.2 kB / 0.5274 GB, free: 5.777 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.364, allocations: 5.609 kB / 0.5274 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.364, allocations: 5.219 kB / 0.5274 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.3642, allocations: 48 kB / 0.5274 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.3644, allocations: 40.7 kB / 0.5275 GB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001823/0.3662, allocations: 4.433 MB / 0.5318 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.3664, allocations: 17.06 kB / 0.5318 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.3664, allocations: 3.344 kB / 0.5318 GB, free: 1.258 MB / 382.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.deltag:VARIABLE(unit = \"rad\" fixed = true ) \"generator angle wrt port\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.3665, allocations: 130.5 kB / 0.532 GB, free: 1.133 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.3665, allocations: 19.34 kB / 0.532 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.843e-05/0.3666, allocations: 26.25 kB / 0.532 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3666, allocations: 6.406 kB / 0.532 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3666, allocations: 0 / 0.532 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3666, allocations: 1.453 kB / 0.532 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005982/0.3672, allocations: 460.4 kB / 0.5324 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3672, allocations: 0.5156 kB / 0.5324 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001495/0.3673, allocations: 29.09 kB / 0.5325 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001344/0.3675, allocations: 38.77 kB / 0.5325 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.3675, allocations: 7.031 kB / 0.5325 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/0.3686, allocations: 1.512 MB / 0.534 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3687, allocations: 0 / 0.534 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005533/0.3692, allocations: 340.3 kB / 0.5343 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.3692, allocations: 12.56 kB / 0.5343 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.3693, allocations: 8.344 kB / 0.5343 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.3695, allocations: 11.97 kB / 0.5343 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.3695, allocations: 18.02 kB / 0.5344 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.3695, allocations: 5.109 kB / 0.5344 GB, free: 15.01 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.3698, allocations: 157.3 kB / 0.5345 GB, free: 14.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3698, allocations: 0 / 0.5345 GB, free: 14.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004171/0.3702, allocations: 45.22 kB / 0.5346 GB, free: 14.9 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,C.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008322/0.371, allocations: 0.874 MB / 0.5354 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005936/0.3716, allocations: 343.2 kB / 0.5357 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3716, allocations: 0 / 0.5357 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.3719, allocations: 189.5 kB / 0.5359 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.3722, allocations: 16.42 kB / 0.5359 GB, free: 13.74 MB / 398.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm 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.003592/0.3758, allocations: 2.317 MB / 0.5382 GB, free: 12.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.376, allocations: 116.7 kB / 0.5383 GB, free: 11.96 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.758e-05/0.3761, allocations: 20.03 kB / 0.5383 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.755e-05/0.3762, allocations: 43.16 kB / 0.5384 GB, free: 11.92 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3762, allocations: 0.6562 kB / 0.5384 GB, free: 11.92 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03592/0.4121, allocations: 4.32 MB / 0.5426 GB, free: 10.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.55, allocations: 7.344 kB / 0.5426 GB, free: 10.91 MB / 398.1 MB " [Timeout remaining time 646] (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_case_studies.foo_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.484269227366894] Failed to read output from testmodel.py, exit status != 0: 13.677451067138463 13.705083248 13.341763296 Calling exit ...