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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005195/0.005196, allocations: 99.31 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 188.9 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.515/1.515, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2158/0.2158, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 62.97 kB / 436.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1041, allocations: 54.97 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002729/0.1068, allocations: 1.851 MB / 493.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.1079, allocations: 0.5223 MB / 493.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.108, allocations: 4 kB / 493.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002988/0.1083, allocations: 27.78 kB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002291/0.1086, allocations: 51.62 kB / 494 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.1088, allocations: 59.91 kB / 494 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002909/0.1091, allocations: 203.5 kB / 494.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.1093, allocations: 41.55 kB / 494.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.1095, allocations: 83.69 kB / 494.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.1097, allocations: 91.59 kB / 494.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.1098, allocations: 12 kB / 494.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.244e-05/0.1098, allocations: 20 kB / 494.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.706e-05/0.1099, allocations: 43.83 kB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.806e-05/0.11, allocations: 67.59 kB / 494.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00024/0.1102, allocations: 140.3 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1102, allocations: 0 / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1103, allocations: 3.938 kB / 494.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1103, allocations: 4 kB / 494.7 MB, free: 14.51 MB / 366.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.001163/0.1114, allocations: 498.7 kB / 495.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.1115, allocations: 12.03 kB / 495.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.594e-05/0.1116, allocations: 38.75 kB / 495.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.414e-05/0.1116, allocations: 16.75 kB / 495.3 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004994/0.1121, allocations: 263.8 kB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.1122, allocations: 8.375 kB / 495.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.262e-05/0.1122, allocations: 16.12 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.1125, allocations: 111.2 kB / 495.7 MB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1125, allocations: 7.984 kB / 495.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.1125, allocations: 4 kB / 495.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.1125, allocations: 0 / 495.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.1128, allocations: 87.89 kB / 495.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008297/0.1136, allocations: 468.3 kB / 496.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003424/0.114, allocations: 158.7 kB / 496.4 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.1141, allocations: 64.83 kB / 496.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1141, allocations: 4 kB / 496.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.1142, allocations: 34.56 kB / 496.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.1142, allocations: 0 / 496.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001033/0.1152, allocations: 0.5384 MB / 497 MB, free: 12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.1153, allocations: 59.41 kB / 497.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003299/0.1156, allocations: 202 kB / 497.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.1156, allocations: 29.7 kB / 497.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.1157, allocations: 108.4 kB / 497.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.1158, allocations: 55.11 kB / 497.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.625e-05/0.1158, allocations: 37.7 kB / 497.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.116, allocations: 330.8 kB / 497.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1161, allocations: 55.91 kB / 497.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.1162, allocations: 66.62 kB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007869/0.117, allocations: 264 kB / 498.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.117, allocations: 4 kB / 498.2 MB, free: 10.75 MB / 366.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.0005802/0.1176, allocations: 391.6 kB / 498.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1176, allocations: 4 kB / 498.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1176, allocations: 0 / 498.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.1178, allocations: 49.69 kB / 498.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.118, allocations: 39.95 kB / 498.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.1206, allocations: 4.64 MB / 0.4915 GB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.1208, allocations: 15.95 kB / 0.4916 GB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1208, allocations: 8 kB / 0.4916 GB, free: 5.219 MB / 366.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.0001333/0.121, allocations: 134.5 kB / 0.4917 GB, free: 5.078 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.121, allocations: 15.91 kB / 0.4917 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.1211, allocations: 29.23 kB / 0.4917 GB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1211, allocations: 3.938 kB / 0.4917 GB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1211, allocations: 3.984 kB / 0.4917 GB, free: 5.023 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1211, allocations: 3.938 kB / 0.4917 GB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006604/0.1218, allocations: 499.2 kB / 0.4922 GB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.1218, allocations: 4 kB / 0.4922 GB, free: 4.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.1219, allocations: 27.98 kB / 0.4923 GB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001391/0.1221, allocations: 48.72 kB / 0.4923 GB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1221, allocations: 0 / 0.4923 GB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001192/0.1233, allocations: 1.619 MB / 0.4939 GB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1233, allocations: 0 / 0.4939 GB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004572/0.1238, allocations: 338.5 kB / 0.4942 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.409e-05/0.1239, allocations: 92.95 kB / 0.4943 GB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.719e-05/0.1239, allocations: 8 kB / 0.4943 GB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.1241, allocations: 7.984 kB / 0.4943 GB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.1241, allocations: 19.92 kB / 0.4943 GB, free: 2.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1242, allocations: 4 kB / 0.4943 GB, free: 2.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.1244, allocations: 155.2 kB / 0.4945 GB, free: 1.988 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1244, allocations: 0 / 0.4945 GB, free: 1.988 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004119/0.1248, allocations: 36 kB / 0.4945 GB, free: 1.953 MB / 366.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.0007405/0.1256, allocations: 0.8791 MB / 0.4954 GB, free: 1.047 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005345/0.1261, allocations: 353.3 kB / 0.4957 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1262, allocations: 0 / 0.4957 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002601/0.1264, allocations: 182.6 kB / 0.4959 GB, free: 496 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.1267, allocations: 23.92 kB / 0.4959 GB, free: 472 kB / 366.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.003435/0.1302, allocations: 2.624 MB / 0.4985 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003963/0.1306, allocations: 0.728 MB / 0.4992 GB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.931e-05/0.1307, allocations: 13.42 kB / 0.4992 GB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.1308, allocations: 43.42 kB / 0.4992 GB, free: 12.84 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1308, allocations: 0 / 0.4992 GB, free: 12.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.1651, allocations: 3.916 MB / 0.5031 GB, free: 9.016 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.71, allocations: 8.25 kB / 0.5031 GB, free: 9.012 MB / 382.1 MB (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 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_case_studies_foo.fmu > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)