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.001338/0.001338, allocations: 104.3 kB / 19.73 MB, free: 2.039 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.001551/0.001551, allocations: 213.6 kB / 23.01 MB, free: 4.867 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.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.108/0.108, allocations: 24.03 MB / 337.2 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: "" <> 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.002123/0.002123, allocations: 63.91 kB / 473.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3332, allocations: 59.58 MB / 0.5209 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002743/0.3359, allocations: 1.825 MB / 0.5227 GB, free: 8.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008806/0.3368, allocations: 0.5281 MB / 0.5232 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.95e-05/0.3369, allocations: 1.25 kB / 0.5232 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.3371, allocations: 25.06 kB / 0.5232 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.3373, allocations: 51.7 kB / 0.5233 GB, free: 8.438 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001834/0.3375, allocations: 58.78 kB / 0.5233 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.3378, allocations: 227.1 kB / 0.5235 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.3379, allocations: 31.25 kB / 0.5236 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002275/0.3381, allocations: 105.2 kB / 0.5237 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.3383, allocations: 84.23 kB / 0.5238 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.3383, allocations: 13.09 kB / 0.5238 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.968e-05/0.3383, allocations: 13.19 kB / 0.5238 GB, free: 8.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.65e-05/0.3384, allocations: 41.97 kB / 0.5238 GB, free: 8.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.775e-05/0.3385, allocations: 63.64 kB / 0.5239 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.3386, allocations: 143.4 kB / 0.524 GB, free: 8.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3386, allocations: 0.6562 kB / 0.524 GB, free: 8.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3386, allocations: 0 / 0.524 GB, free: 8.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.3387, allocations: 5.375 kB / 0.524 GB, free: 8.105 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.0008683/0.3395, allocations: 429.4 kB / 0.5244 GB, free: 7.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.3396, allocations: 10.33 kB / 0.5244 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.724e-05/0.3396, allocations: 45.42 kB / 0.5245 GB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.3396, allocations: 20.84 kB / 0.5245 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003543/0.34, allocations: 187.3 kB / 0.5247 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.34, allocations: 9.531 kB / 0.5247 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.34, allocations: 20.03 kB / 0.5247 GB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.3402, allocations: 120.8 kB / 0.5248 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.3403, allocations: 0 / 0.5248 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.3403, allocations: 5.219 kB / 0.5248 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3403, allocations: 3.188 kB / 0.5248 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.3405, allocations: 89.41 kB / 0.5249 GB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.3412, allocations: 412.5 kB / 0.5253 GB, free: 7.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.3415, allocations: 148.1 kB / 0.5255 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.3416, allocations: 61.3 kB / 0.5255 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.3416, allocations: 2.75 kB / 0.5255 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.401e-05/0.3416, allocations: 37.61 kB / 0.5256 GB, free: 6.996 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.3416, allocations: 7.984 kB / 0.5256 GB, free: 6.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009435/0.3426, allocations: 479.2 kB / 0.526 GB, free: 6.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.143e-05/0.3426, allocations: 54.67 kB / 0.5261 GB, free: 6.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.3429, allocations: 194.8 kB / 0.5263 GB, free: 6.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.3429, allocations: 26.95 kB / 0.5263 GB, free: 6.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.343, allocations: 119.1 kB / 0.5264 GB, free: 6.355 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.343, allocations: 64.34 kB / 0.5265 GB, free: 6.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.341e-05/0.3431, allocations: 36.48 kB / 0.5265 GB, free: 6.277 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.23e-05/0.3431, allocations: 328.5 kB / 0.5268 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.3432, allocations: 50.45 kB / 0.5269 GB, free: 5.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001081/0.3433, allocations: 68.47 kB / 0.5269 GB, free: 5.902 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007729/0.3441, allocations: 265.1 kB / 0.5272 GB, free: 5.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3441, allocations: 0 / 0.5272 GB, free: 5.805 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.0005501/0.3447, allocations: 238.8 kB / 0.5274 GB, free: 5.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3447, allocations: 5.438 kB / 0.5274 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.3447, allocations: 1.406 kB / 0.5274 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.3449, allocations: 48.23 kB / 0.5274 GB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.3451, allocations: 36.3 kB / 0.5275 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/0.3467, allocations: 4.433 MB / 0.5318 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.3469, allocations: 12.14 kB / 0.5318 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.3469, allocations: 8.312 kB / 0.5318 GB, free: 1.164 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.0001213/0.3471, allocations: 130.2 kB / 0.532 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.08e-05/0.3471, allocations: 13.66 kB / 0.532 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.3471, allocations: 22.64 kB / 0.532 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3471, allocations: 6.219 kB / 0.532 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3471, allocations: 4 kB / 0.532 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3471, allocations: 2.734 kB / 0.532 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006231/0.3478, allocations: 461.9 kB / 0.5324 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3478, allocations: 6.219 kB / 0.5324 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.3479, allocations: 27.59 kB / 0.5325 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001483/0.3481, allocations: 38.64 kB / 0.5325 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.3481, allocations: 3.531 kB / 0.5325 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.3493, allocations: 1.511 MB / 0.534 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3493, allocations: 1.094 kB / 0.534 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004884/0.3497, allocations: 334.5 kB / 0.5343 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.3498, allocations: 23.08 kB / 0.5343 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.3498, allocations: 3.266 kB / 0.5343 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.35, allocations: 15.81 kB / 0.5344 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.108e-05/0.35, allocations: 13.03 kB / 0.5344 GB, free: 14.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.35, allocations: 4.906 kB / 0.5344 GB, free: 14.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002555/0.3503, allocations: 165.8 kB / 0.5345 GB, free: 14.81 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3503, allocations: 0 / 0.5345 GB, free: 14.81 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004032/0.3507, allocations: 32.88 kB / 0.5346 GB, free: 14.81 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.0008266/0.3515, allocations: 0.8736 MB / 0.5354 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005887/0.3521, allocations: 355.1 kB / 0.5358 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3521, allocations: 0 / 0.5358 GB, free: 13.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.3524, allocations: 184.9 kB / 0.5359 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.3527, allocations: 15.61 kB / 0.5359 GB, free: 13.64 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.003493/0.3562, allocations: 2.309 MB / 0.5382 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001494/0.3563, allocations: 117 kB / 0.5383 GB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.656e-05/0.3564, allocations: 21.02 kB / 0.5383 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.683e-05/0.3565, allocations: 47.38 kB / 0.5384 GB, free: 11.83 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3565, allocations: 0.6562 kB / 0.5384 GB, free: 11.83 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.3924, allocations: 4.325 MB / 0.5426 GB, free: 10.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.12/13.51, allocations: 1.156 kB / 0.5426 GB, free: 10.81 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_case_studies_foo_fmu --startTime=0 --stopTime=2000 --stepSize=0.4 --timeout=50 --tolerance=1e-06 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.3388035367243] Failed to read output from testmodel.py, exit status != 0: 13.637579006142914 13.661245833 13.31915476 Calling exit ...