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.005475/0.005475, allocations: 101 kB / 15.73 MB, free: 6.059 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.001319/0.001319, allocations: 197.3 kB / 16.67 MB, free: 5.969 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09488/0.09488, allocations: 22.32 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 63.91 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1023, allocations: 54.95 MB / 491.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002938/0.1053, allocations: 1.861 MB / 493.3 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008699/0.1062, allocations: 0.5146 MB / 493.9 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.932e-05/0.1063, allocations: 0 / 493.9 MB, free: 2.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.1066, allocations: 35.78 kB / 493.9 MB, free: 2.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000152/0.1067, allocations: 43.64 kB / 493.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001477/0.1069, allocations: 59.84 kB / 494 MB, free: 2.758 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.1071, allocations: 211.4 kB / 494.2 MB, free: 2.551 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.1073, allocations: 33.55 kB / 494.2 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001516/0.1074, allocations: 99.67 kB / 494.3 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.1076, allocations: 91.59 kB / 494.4 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.036e-05/0.1077, allocations: 12 kB / 494.4 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.623e-05/0.1077, allocations: 12 kB / 494.4 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.579e-05/0.1078, allocations: 35.89 kB / 494.5 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.929e-05/0.1078, allocations: 71.61 kB / 494.5 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.108, allocations: 155.2 kB / 494.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1081, allocations: 0 / 494.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1081, allocations: 0 / 494.7 MB, free: 2.047 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1081, allocations: 0 / 494.7 MB, free: 2.047 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.0009426/0.109, allocations: 0.4909 MB / 495.2 MB, free: 1.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.1091, allocations: 8.031 kB / 495.2 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.888e-05/0.1091, allocations: 46.73 kB / 495.2 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.1092, allocations: 20.84 kB / 495.3 MB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.1096, allocations: 248 kB / 495.5 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.1096, allocations: 8.375 kB / 495.5 MB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.405e-05/0.1096, allocations: 16.12 kB / 495.5 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.1098, allocations: 113.6 kB / 495.6 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1099, allocations: 0 / 495.6 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1099, allocations: 7.938 kB / 495.7 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1099, allocations: 4 kB / 495.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000186/0.1101, allocations: 87.89 kB / 495.7 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007331/0.1108, allocations: 468.4 kB / 496.2 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.1112, allocations: 166.7 kB / 496.4 MB, free: 232 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.1113, allocations: 64.83 kB / 496.4 MB, free: 164 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.1113, allocations: 3.984 kB / 496.4 MB, free: 160 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.1114, allocations: 30.56 kB / 496.5 MB, free: 120 kB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.142e-06/0.1114, allocations: 0 / 496.5 MB, free: 120 kB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001033/0.1124, allocations: 0.5442 MB / 497 MB, free: 15.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.414e-05/0.1125, allocations: 51.41 kB / 497.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003093/0.1128, allocations: 198.1 kB / 497.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.1128, allocations: 29.7 kB / 497.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.092e-05/0.1129, allocations: 116.3 kB / 497.4 MB, free: 15.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.4e-05/0.113, allocations: 67.45 kB / 497.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.618e-05/0.113, allocations: 37.72 kB / 497.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1132, allocations: 334.7 kB / 497.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.78e-05/0.1133, allocations: 43.98 kB / 497.9 MB, free: 14.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.1134, allocations: 69.69 kB / 497.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007275/0.1141, allocations: 263.5 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1141, allocations: 4 kB / 498.2 MB, free: 14.27 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.0005699/0.1147, allocations: 390.3 kB / 498.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.1147, allocations: 10.34 kB / 498.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.1147, allocations: 4 kB / 498.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001627/0.1149, allocations: 49.72 kB / 498.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.1151, allocations: 39.91 kB / 498.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/0.118, allocations: 4.636 MB / 0.4915 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.1182, allocations: 19.97 kB / 0.4915 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.1182, allocations: 4 kB / 0.4915 GB, free: 8.742 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.0001332/0.1184, allocations: 134.6 kB / 0.4917 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.563e-05/0.1184, allocations: 7.953 kB / 0.4917 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.307e-05/0.1184, allocations: 25.17 kB / 0.4917 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.1185, allocations: 11.88 kB / 0.4917 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.964e-06/0.1185, allocations: 3.938 kB / 0.4917 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1185, allocations: 0 / 0.4917 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006669/0.1191, allocations: 0.4991 MB / 0.4922 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1192, allocations: 4 kB / 0.4922 GB, free: 7.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.1193, allocations: 23.98 kB / 0.4922 GB, free: 7.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001234/0.1194, allocations: 36.81 kB / 0.4923 GB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.1195, allocations: 12 kB / 0.4923 GB, free: 7.914 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.1207, allocations: 1.615 MB / 0.4938 GB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1207, allocations: 4.031 kB / 0.4939 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000474/0.1212, allocations: 344.2 kB / 0.4942 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.1213, allocations: 89.02 kB / 0.4943 GB, free: 5.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.1213, allocations: 4 kB / 0.4943 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.1215, allocations: 11.98 kB / 0.4943 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.1215, allocations: 19.91 kB / 0.4943 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.1216, allocations: 8 kB / 0.4943 GB, free: 5.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002471/0.1218, allocations: 155.2 kB / 0.4945 GB, free: 5.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1218, allocations: 0 / 0.4945 GB, free: 5.504 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003638/0.1222, allocations: 35.94 kB / 0.4945 GB, free: 5.469 MB / 382.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.0007776/0.123, allocations: 0.8724 MB / 0.4953 GB, free: 4.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005395/0.1235, allocations: 346.3 kB / 0.4957 GB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1235, allocations: 3.938 kB / 0.4957 GB, free: 4.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.1238, allocations: 198.6 kB / 0.4959 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.1241, allocations: 16 kB / 0.4959 GB, free: 3.98 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.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.003343/0.1275, allocations: 2.618 MB / 0.4984 GB, free: 1.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.1279, allocations: 0.7319 MB / 0.4992 GB, free: 432 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.417e-05/0.1279, allocations: 21.41 kB / 0.4992 GB, free: 408 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.391e-05/0.128, allocations: 51.41 kB / 0.4992 GB, free: 356 kB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.128, allocations: 0 / 0.4992 GB, free: 356 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2029/0.331, allocations: 3.808 MB / 0.5029 GB, free: 22.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.62, allocations: 18.2 kB / 0.503 GB, free: 22.3 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)