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.001402/0.001402, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001506/0.001506, allocations: 209.5 kB / 20.13 MB, free: 3.035 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.526/1.526, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.1023/0.1023, allocations: 22.92 MB / 332.5 MB, free: 2.656 MB / 254.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_case_studies.foo,fileNamePrefix="AES_AES_Coursework_ElecSys_case_studies_foo",fmuType="cs",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.002044/0.002044, allocations: 76.05 kB / 466.7 MB, free: 32.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0966/0.09865, allocations: 59.27 MB / 0.5137 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.003341/0.102, allocations: 1.877 MB / 0.5155 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.1031, allocations: 0.5535 MB / 0.516 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.036e-05/0.1031, allocations: 0 / 0.516 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002709/0.1034, allocations: 35.78 kB / 0.5161 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.1036, allocations: 51.67 kB / 0.5161 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.1038, allocations: 55.88 kB / 0.5162 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.104, allocations: 207.4 kB / 0.5164 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.1041, allocations: 33.47 kB / 0.5164 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.1044, allocations: 95.69 kB / 0.5165 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.1046, allocations: 95.58 kB / 0.5166 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.1046, allocations: 12 kB / 0.5166 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.896e-05/0.1046, allocations: 12 kB / 0.5166 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.232e-05/0.1047, allocations: 43.83 kB / 0.5167 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.53e-05/0.1048, allocations: 71.64 kB / 0.5167 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.105, allocations: 151.3 kB / 0.5169 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.105, allocations: 0 / 0.5169 GB, free: 10.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.105, allocations: 0 / 0.5169 GB, free: 10.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.105, allocations: 0 / 0.5169 GB, free: 10.75 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.001033/0.106, allocations: 0.4947 MB / 0.5174 GB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1061, allocations: 8.625 kB / 0.5174 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.601e-05/0.1061, allocations: 4.188 kB / 0.5174 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.491e-05/0.1061, allocations: 50.73 kB / 0.5174 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.453e-05/0.1062, allocations: 24.78 kB / 0.5174 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000443/0.1066, allocations: 248 kB / 0.5177 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.1066, allocations: 12.38 kB / 0.5177 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.514e-05/0.1067, allocations: 15.94 kB / 0.5177 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.1069, allocations: 117.6 kB / 0.5178 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1069, allocations: 0 / 0.5178 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.1069, allocations: 8 kB / 0.5178 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1069, allocations: 4 kB / 0.5178 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001977/0.1071, allocations: 83.94 kB / 0.5179 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008073/0.1079, allocations: 460.4 kB / 0.5183 GB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003607/0.1083, allocations: 158.7 kB / 0.5185 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.1084, allocations: 59.09 kB / 0.5185 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1084, allocations: 4 kB / 0.5186 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.277e-05/0.1085, allocations: 34.55 kB / 0.5186 GB, free: 8.816 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 3.326e-06/0.1085, allocations: 3.984 kB / 0.5186 GB, free: 8.812 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001114/0.1096, allocations: 0.5392 MB / 0.5191 GB, free: 8.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.1096, allocations: 55.41 kB / 0.5192 GB, free: 8.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000339/0.11, allocations: 198.1 kB / 0.5194 GB, free: 7.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.11, allocations: 29.7 kB / 0.5194 GB, free: 7.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.975e-05/0.1101, allocations: 124.3 kB / 0.5195 GB, free: 7.785 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.365e-05/0.1102, allocations: 59.48 kB / 0.5196 GB, free: 7.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.316e-05/0.1102, allocations: 37.7 kB / 0.5196 GB, free: 7.684 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1104, allocations: 330.8 kB / 0.5199 GB, free: 7.352 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.1105, allocations: 39.98 kB / 0.52 GB, free: 7.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.1106, allocations: 69.64 kB / 0.52 GB, free: 7.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007999/0.1114, allocations: 264.4 kB / 0.5203 GB, free: 6.977 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.1114, allocations: 4 kB / 0.5203 GB, free: 6.973 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.0006091/0.112, allocations: 387.5 kB / 0.5206 GB, free: 6.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.112, allocations: 4 kB / 0.5206 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.112, allocations: 0 / 0.5206 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.1122, allocations: 65.58 kB / 0.5207 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.1124, allocations: 31.98 kB / 0.5207 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003246/0.1157, allocations: 4.648 MB / 0.5253 GB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001915/0.1159, allocations: 16.02 kB / 0.5253 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.1159, allocations: 4 kB / 0.5253 GB, free: 1.426 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.0001512/0.116, allocations: 134.6 kB / 0.5254 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.875e-05/0.1161, allocations: 19.89 kB / 0.5254 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.1161, allocations: 21.19 kB / 0.5255 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.1161, allocations: 3.938 kB / 0.5255 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1161, allocations: 0 / 0.5255 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1161, allocations: 0 / 0.5255 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007715/0.1169, allocations: 0.5048 MB / 0.526 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1169, allocations: 0 / 0.526 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.1171, allocations: 23.98 kB / 0.526 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001476/0.1172, allocations: 36.83 kB / 0.526 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.1172, allocations: 4 kB / 0.526 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001485/0.1187, allocations: 1.619 MB / 0.5276 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1187, allocations: 4.094 kB / 0.5276 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005136/0.1192, allocations: 352.2 kB / 0.5279 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.1193, allocations: 85.06 kB / 0.528 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.1193, allocations: 4 kB / 0.528 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.1195, allocations: 16.02 kB / 0.528 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.1196, allocations: 19.92 kB / 0.5281 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.015e-05/0.1196, allocations: 4 kB / 0.5281 GB, free: 14.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002609/0.1198, allocations: 155.2 kB / 0.5282 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1198, allocations: 0 / 0.5282 GB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004116/0.1203, allocations: 35.94 kB / 0.5283 GB, free: 14.16 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.0008427/0.1211, allocations: 0.8692 MB / 0.5291 GB, free: 13.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.1217, allocations: 349.2 kB / 0.5294 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1217, allocations: 0 / 0.5294 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002991/0.122, allocations: 188.6 kB / 0.5296 GB, free: 12.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.1223, allocations: 16 kB / 0.5296 GB, free: 12.68 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.003678/0.126, allocations: 2.632 MB / 0.5322 GB, free: 9.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.1264, allocations: 0.7202 MB / 0.5329 GB, free: 9.129 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.613e-05/0.1265, allocations: 29.39 kB / 0.5329 GB, free: 9.098 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.716e-05/0.1266, allocations: 47.42 kB / 0.533 GB, free: 9.051 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.1266, allocations: 0 / 0.533 GB, free: 9.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/0.1551, allocations: 3.877 MB / 0.5368 GB, free: 5.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/12.74, allocations: 20.02 kB / 0.5368 GB, free: 5.25 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 & /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: 15.669902521010954] Failed to read output from testmodel.py, exit status != 0: 12.915907722956035 12.942690236 12.833185691 Calling exit ...