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.001449/0.001449, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001543/0.001543, allocations: 217 kB / 22.25 MB, free: 5.082 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.508/1.508, allocations: 230.6 MB / 256 MB, free: 8 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.1072/0.1072, allocations: 24.13 MB / 336.6 MB, free: 11.41 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.002219/0.002219, allocations: 71.91 kB / 473.3 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3554, allocations: 59.6 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002868/0.3583, allocations: 1.893 MB / 0.5223 GB, free: 8.828 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009631/0.3593, allocations: 0.5564 MB / 0.5228 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.974e-05/0.3593, allocations: 1.469 kB / 0.5228 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002759/0.3596, allocations: 29.53 kB / 0.5228 GB, free: 8.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.3598, allocations: 54.56 kB / 0.5229 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.36, allocations: 59.38 kB / 0.5229 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002977/0.3603, allocations: 230.8 kB / 0.5232 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.3604, allocations: 32.09 kB / 0.5232 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.3606, allocations: 100.4 kB / 0.5233 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.3608, allocations: 100.9 kB / 0.5234 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.3609, allocations: 13.28 kB / 0.5234 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.806e-05/0.3609, allocations: 13.59 kB / 0.5234 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.25e-05/0.3609, allocations: 41.5 kB / 0.5234 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.976e-05/0.361, allocations: 63.11 kB / 0.5235 GB, free: 8.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002132/0.3612, allocations: 153.9 kB / 0.5237 GB, free: 8.039 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3612, allocations: 0 / 0.5237 GB, free: 8.039 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3612, allocations: 0 / 0.5237 GB, free: 8.039 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.3612, allocations: 1.344 kB / 0.5237 GB, free: 8.039 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.0009534/0.3622, allocations: 430 kB / 0.5241 GB, free: 7.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3622, allocations: 15.7 kB / 0.5241 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.663e-05/0.3623, allocations: 40.02 kB / 0.5241 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.3623, allocations: 16.69 kB / 0.5241 GB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003883/0.3627, allocations: 193.9 kB / 0.5243 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.3627, allocations: 9.094 kB / 0.5243 GB, free: 7.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.331e-05/0.3628, allocations: 17.25 kB / 0.5243 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002176/0.363, allocations: 117 kB / 0.5245 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.363, allocations: 0.7031 kB / 0.5245 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.363, allocations: 8.75 kB / 0.5245 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.363, allocations: 3.25 kB / 0.5245 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3632, allocations: 93.02 kB / 0.5246 GB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006948/0.3639, allocations: 439.2 kB / 0.525 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.3642, allocations: 152.9 kB / 0.5251 GB, free: 6.984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.3643, allocations: 58.31 kB / 0.5252 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.3644, allocations: 2.219 kB / 0.5252 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.3644, allocations: 40.39 kB / 0.5252 GB, free: 6.914 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.3644, allocations: 0 / 0.5252 GB, free: 6.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001035/0.3654, allocations: 475.7 kB / 0.5257 GB, free: 6.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.302e-05/0.3654, allocations: 53.38 kB / 0.5257 GB, free: 6.555 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.3657, allocations: 195.3 kB / 0.5259 GB, free: 6.434 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.3658, allocations: 27.11 kB / 0.5259 GB, free: 6.402 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.3658, allocations: 117.8 kB / 0.526 GB, free: 6.289 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/0.3659, allocations: 64.33 kB / 0.5261 GB, free: 6.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.97e-05/0.3659, allocations: 40.59 kB / 0.5261 GB, free: 6.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.148e-05/0.366, allocations: 328.5 kB / 0.5265 GB, free: 5.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.3661, allocations: 45.47 kB / 0.5265 GB, free: 5.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001175/0.3662, allocations: 74.62 kB / 0.5266 GB, free: 5.832 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007822/0.367, allocations: 261.3 kB / 0.5268 GB, free: 5.738 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.367, allocations: 1.5 kB / 0.5268 GB, free: 5.738 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.0005237/0.3675, allocations: 231.1 kB / 0.527 GB, free: 5.613 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.3675, allocations: 10.02 kB / 0.5271 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3675, allocations: 4 kB / 0.5271 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001843/0.3677, allocations: 55.31 kB / 0.5271 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.3679, allocations: 36.73 kB / 0.5271 GB, free: 5.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.3696, allocations: 4.435 MB / 0.5315 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.3698, allocations: 16.52 kB / 0.5315 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.377e-05/0.3699, allocations: 4.25 kB / 0.5315 GB, free: 1.082 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.0001258/0.37, allocations: 137.2 kB / 0.5316 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.37, allocations: 14.19 kB / 0.5316 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.826e-05/0.3701, allocations: 26.25 kB / 0.5317 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3701, allocations: 6.031 kB / 0.5317 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.3701, allocations: 0 / 0.5317 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.3701, allocations: 1.891 kB / 0.5317 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006274/0.3707, allocations: 479.2 kB / 0.5321 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3707, allocations: 0 / 0.5321 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.3709, allocations: 28.22 kB / 0.5322 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001403/0.371, allocations: 34.97 kB / 0.5322 GB, free: 0.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.371, allocations: 10.64 kB / 0.5322 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.3722, allocations: 1.519 MB / 0.5337 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3722, allocations: 0 / 0.5337 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005722/0.3728, allocations: 339.4 kB / 0.534 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.041e-05/0.3729, allocations: 12.91 kB / 0.534 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.3729, allocations: 6.656 kB / 0.534 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.3731, allocations: 12.58 kB / 0.534 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.3731, allocations: 23.08 kB / 0.5341 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.239e-05/0.3732, allocations: 3.375 kB / 0.5341 GB, free: 14.82 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002744/0.3734, allocations: 156.6 kB / 0.5342 GB, free: 14.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3734, allocations: 0 / 0.5342 GB, free: 14.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004324/0.3739, allocations: 33.66 kB / 0.5342 GB, free: 14.72 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.0008684/0.3747, allocations: 0.8729 MB / 0.5351 GB, free: 13.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005849/0.3753, allocations: 351.2 kB / 0.5354 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3753, allocations: 0 / 0.5354 GB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.3756, allocations: 181.8 kB / 0.5356 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.3759, allocations: 27.88 kB / 0.5356 GB, free: 13.55 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.003662/0.3796, allocations: 2.316 MB / 0.5379 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.38, allocations: 0.7327 MB / 0.5386 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.57e-05/0.3801, allocations: 15.91 kB / 0.5386 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.259e-05/0.3802, allocations: 44.25 kB / 0.5387 GB, free: 11.11 MB / 398.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3802, allocations: 4 kB / 0.5387 GB, free: 11.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03534/0.4155, allocations: 4.02 MB / 0.5426 GB, free: 10.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.38, allocations: 8.188 kB / 0.5426 GB, free: 10.55 MB / 398.1 MB " [Timeout remaining time 647] (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.3767553889993] Failed to read output from testmodel.py, exit status != 0: 13.501732160002575 13.523553175 13.159042171 Calling exit ...