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.001271/0.001271, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.001476/0.001476, allocations: 210.4 kB / 19.43 MB, free: 3.656 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.485/1.485, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1079/0.1079, allocations: 24.11 MB / 333 MB, free: 12.63 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.002256/0.002256, allocations: 67.91 kB / 467.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3513, allocations: 59.56 MB / 0.515 GB, free: 9.656 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002651/0.354, allocations: 1.89 MB / 0.5169 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007964/0.3548, allocations: 0.5552 MB / 0.5174 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.715e-05/0.3549, allocations: 1.281 kB / 0.5174 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002528/0.3551, allocations: 29.53 kB / 0.5175 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001421/0.3552, allocations: 47.11 kB / 0.5175 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001398/0.3554, allocations: 55.14 kB / 0.5176 GB, free: 7.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002197/0.3556, allocations: 213.7 kB / 0.5178 GB, free: 7.887 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.3557, allocations: 27.83 kB / 0.5178 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.3559, allocations: 101.8 kB / 0.5179 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.3561, allocations: 93.03 kB / 0.518 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.3561, allocations: 17.03 kB / 0.518 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.495e-05/0.3561, allocations: 13.91 kB / 0.518 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.122e-05/0.3562, allocations: 41.39 kB / 0.518 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.402e-05/0.3562, allocations: 63.47 kB / 0.5181 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.3564, allocations: 146.2 kB / 0.5182 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3564, allocations: 0 / 0.5182 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3564, allocations: 0 / 0.5182 GB, free: 7.672 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.3564, allocations: 1 kB / 0.5182 GB, free: 7.672 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.0008341/0.3573, allocations: 0.4993 MB / 0.5187 GB, free: 7.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3573, allocations: 10.22 kB / 0.5187 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.613e-05/0.3574, allocations: 40.84 kB / 0.5188 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.81e-05/0.3574, allocations: 20.34 kB / 0.5188 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.3577, allocations: 256.9 kB / 0.519 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.3577, allocations: 8.75 kB / 0.5191 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.3578, allocations: 20.16 kB / 0.5191 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.358, allocations: 113.8 kB / 0.5192 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.358, allocations: 0 / 0.5192 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.358, allocations: 5.812 kB / 0.5192 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.358, allocations: 6.406 kB / 0.5192 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.3582, allocations: 84.95 kB / 0.5193 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006874/0.3589, allocations: 467.7 kB / 0.5197 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.3592, allocations: 161.8 kB / 0.5199 GB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.3593, allocations: 58.31 kB / 0.5199 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3593, allocations: 5.969 kB / 0.5199 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.287e-05/0.3593, allocations: 36.34 kB / 0.52 GB, free: 6.348 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.202e-06/0.3593, allocations: 0 / 0.52 GB, free: 6.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009622/0.3603, allocations: 0.5405 MB / 0.5205 GB, free: 5.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.175e-05/0.3603, allocations: 53.84 kB / 0.5206 GB, free: 5.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.3606, allocations: 196 kB / 0.5207 GB, free: 5.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.584e-05/0.3606, allocations: 26.83 kB / 0.5208 GB, free: 5.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.699e-05/0.3607, allocations: 119.1 kB / 0.5209 GB, free: 5.625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.3607, allocations: 64.22 kB / 0.5209 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.3608, allocations: 36.48 kB / 0.521 GB, free: 5.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.603e-05/0.3608, allocations: 327.9 kB / 0.5213 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.3609, allocations: 46.33 kB / 0.5213 GB, free: 5.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.3611, allocations: 73.41 kB / 0.5214 GB, free: 5.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007676/0.3618, allocations: 260.8 kB / 0.5216 GB, free: 5.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3618, allocations: 1.797 kB / 0.5217 GB, free: 5.078 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.0005117/0.3623, allocations: 387.5 kB / 0.522 GB, free: 4.766 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.3624, allocations: 6.266 kB / 0.522 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.3624, allocations: 4 kB / 0.522 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.3626, allocations: 51.97 kB / 0.5221 GB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.3627, allocations: 37.59 kB / 0.5221 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002189/0.3649, allocations: 4.656 MB / 0.5267 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.3652, allocations: 16.2 kB / 0.5267 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.3652, allocations: 4.688 kB / 0.5267 GB, free: 15.97 MB / 398.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.0001694/0.3653, allocations: 133 kB / 0.5268 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.581e-05/0.3654, allocations: 15.06 kB / 0.5268 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.702e-05/0.3654, allocations: 21.84 kB / 0.5268 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3654, allocations: 6.672 kB / 0.5269 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.3654, allocations: 0 / 0.5269 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3654, allocations: 1.922 kB / 0.5269 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007299/0.3662, allocations: 0.4961 MB / 0.5273 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3662, allocations: 7.938 kB / 0.5273 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001468/0.3663, allocations: 28.8 kB / 0.5274 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001496/0.3665, allocations: 36.22 kB / 0.5274 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/0.3665, allocations: 9.375 kB / 0.5274 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.3678, allocations: 1.618 MB / 0.529 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3678, allocations: 0 / 0.529 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004945/0.3683, allocations: 344.9 kB / 0.5293 GB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.614e-05/0.3684, allocations: 93.03 kB / 0.5294 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.3684, allocations: 2.281 kB / 0.5294 GB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.3686, allocations: 16.23 kB / 0.5294 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.833e-05/0.3687, allocations: 12.91 kB / 0.5294 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.3687, allocations: 7.938 kB / 0.5295 GB, free: 13.46 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002504/0.3689, allocations: 160.7 kB / 0.5296 GB, free: 13.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3689, allocations: 0 / 0.5296 GB, free: 13.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003915/0.3693, allocations: 32.16 kB / 0.5296 GB, free: 13.36 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.0008067/0.3701, allocations: 0.8776 MB / 0.5305 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005526/0.3707, allocations: 342.2 kB / 0.5308 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3707, allocations: 0 / 0.5308 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002899/0.371, allocations: 185.2 kB / 0.531 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.3712, allocations: 22.56 kB / 0.531 GB, free: 12.19 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.003519/0.3748, allocations: 2.624 MB / 0.5336 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.3751, allocations: 0.7275 MB / 0.5343 GB, free: 9.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.097e-05/0.3752, allocations: 24.41 kB / 0.5343 GB, free: 9.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.406e-05/0.3753, allocations: 47.59 kB / 0.5344 GB, free: 9.363 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3753, allocations: 0 / 0.5344 GB, free: 9.363 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.4095, allocations: 3.852 MB / 0.5381 GB, free: 8.797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.72, allocations: 15.72 kB / 0.5381 GB, free: 8.789 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: 15.624800324905664] Failed to read output from testmodel.py, exit status != 0: 12.821025238139555 12.841130535 12.480948733 Calling exit ...