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.004435/0.004435, allocations: 102.9 kB / 15.73 MB, free: 6.039 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.001022/0.001022, allocations: 191.8 kB / 16.67 MB, free: 5.973 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.305/1.305, 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.211/0.211, allocations: 22.36 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.06 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 54.97 MB / 491.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002511/0.1058, allocations: 1.859 MB / 493.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008919/0.1067, allocations: 0.5145 MB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.656e-05/0.1068, allocations: 0 / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000299/0.1071, allocations: 39.77 kB / 493.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.1073, allocations: 43.69 kB / 494 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.1075, allocations: 63.86 kB / 494 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.1077, allocations: 203.5 kB / 494.2 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.1079, allocations: 41.55 kB / 494.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.108, allocations: 95.61 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.1082, allocations: 87.66 kB / 494.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.1082, allocations: 15.94 kB / 494.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.327e-05/0.1083, allocations: 12 kB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.534e-05/0.1083, allocations: 43.83 kB / 494.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.888e-05/0.1084, allocations: 71.59 kB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.1086, allocations: 140.3 kB / 494.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1086, allocations: 0 / 494.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1086, allocations: 0 / 494.7 MB, free: 14.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1086, allocations: 4 kB / 494.7 MB, free: 14.47 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.000919/0.1095, allocations: 498.7 kB / 495.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.1096, allocations: 8.031 kB / 495.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.424e-05/0.1096, allocations: 50.73 kB / 495.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.29e-05/0.1097, allocations: 16.75 kB / 495.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.1101, allocations: 248 kB / 495.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.1101, allocations: 8.375 kB / 495.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.1102, allocations: 24.05 kB / 495.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002483/0.1104, allocations: 111.2 kB / 495.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1105, allocations: 0 / 495.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.1105, allocations: 8 kB / 495.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1105, allocations: 4 kB / 495.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.1107, allocations: 91.88 kB / 495.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007878/0.1115, allocations: 464.3 kB / 496.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.1118, allocations: 162.7 kB / 496.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.112, allocations: 64.83 kB / 496.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.112, allocations: 0 / 496.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.112, allocations: 30.56 kB / 496.5 MB, free: 12.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.112, allocations: 4 kB / 496.5 MB, free: 12.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001036/0.1131, allocations: 0.5362 MB / 497 MB, free: 11.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.1131, allocations: 51.41 kB / 497.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003083/0.1134, allocations: 206 kB / 497.3 MB, free: 11.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.1134, allocations: 29.7 kB / 497.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.1135, allocations: 112.4 kB / 497.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.362e-05/0.1136, allocations: 63.05 kB / 497.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.1136, allocations: 37.7 kB / 497.5 MB, free: 11.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1138, allocations: 330.8 kB / 497.8 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.928e-05/0.1139, allocations: 39.98 kB / 497.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000104/0.114, allocations: 74.61 kB / 498 MB, free: 10.97 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000714/0.1147, allocations: 263.3 kB / 498.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1147, allocations: 7.938 kB / 498.2 MB, free: 10.7 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.0005173/0.1152, allocations: 381.5 kB / 498.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1152, allocations: 11.98 kB / 498.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.1153, allocations: 0 / 498.6 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001581/0.1154, allocations: 49.72 kB / 498.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.1156, allocations: 39.91 kB / 498.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002565/0.1182, allocations: 4.637 MB / 0.4915 GB, free: 5.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001696/0.1184, allocations: 16.02 kB / 0.4916 GB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.1184, allocations: 4 kB / 0.4916 GB, free: 5.184 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.000128/0.1185, allocations: 147.7 kB / 0.4917 GB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.936e-05/0.1186, allocations: 15.81 kB / 0.4917 GB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.575e-05/0.1186, allocations: 17.19 kB / 0.4917 GB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1186, allocations: 7.938 kB / 0.4917 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.1186, allocations: 0 / 0.4917 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1186, allocations: 0 / 0.4917 GB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006261/0.1193, allocations: 0.4992 MB / 0.4922 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1193, allocations: 0 / 0.4922 GB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001428/0.1194, allocations: 27.92 kB / 0.4922 GB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001196/0.1196, allocations: 40.73 kB / 0.4923 GB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.1196, allocations: 4 kB / 0.4923 GB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.1207, allocations: 1.619 MB / 0.4939 GB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1207, allocations: 96 / 0.4939 GB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004388/0.1212, allocations: 343.9 kB / 0.4942 GB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.34e-05/0.1212, allocations: 88.92 kB / 0.4943 GB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.1213, allocations: 4.047 kB / 0.4943 GB, free: 2.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.1214, allocations: 15.97 kB / 0.4943 GB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.1215, allocations: 19.92 kB / 0.4943 GB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.1215, allocations: 4 kB / 0.4943 GB, free: 2.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002326/0.1218, allocations: 159.1 kB / 0.4945 GB, free: 1.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1218, allocations: 0 / 0.4945 GB, free: 1.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.1222, allocations: 36 kB / 0.4945 GB, free: 1.906 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.0007296/0.1229, allocations: 0.8679 MB / 0.4954 GB, free: 1.012 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004725/0.1234, allocations: 364.1 kB / 0.4957 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1234, allocations: 0 / 0.4957 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.1236, allocations: 190.7 kB / 0.4959 GB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.1239, allocations: 16 kB / 0.4959 GB, free: 428 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.003015/0.127, allocations: 2.612 MB / 0.4985 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002687/0.1272, allocations: 0.7241 MB / 0.4992 GB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.339e-05/0.1273, allocations: 25.41 kB / 0.4992 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.733e-05/0.1274, allocations: 43.42 kB / 0.4992 GB, free: 12.8 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1274, allocations: 0 / 0.4992 GB, free: 12.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.1525, allocations: 3.793 MB / 0.5029 GB, free: 9.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.02, allocations: 12.47 kB / 0.5029 GB, free: 9.086 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)