Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.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.001808/0.001808, allocations: 108.2 kB / 17.15 MB, free: 6.02 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.002283/0.002283, allocations: 208.5 kB / 20.11 MB, free: 3.062 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.577/1.577, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.1045/0.1045, allocations: 24.03 MB / 333.6 MB, free: 1.523 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.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Modelling_principles.M2_PhasorDomain,fileNamePrefix="AES_AES_Coursework_Modelling_principles_M2_PhasorDomain",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.003389/0.003389, allocations: 72.12 kB / 468.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1226, allocations: 59.54 MB / 0.5156 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001957/0.1245, allocations: 0.5657 MB / 0.5161 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000202/0.1247, allocations: 32.61 kB / 0.5162 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.091e-05/0.1248, allocations: 0 / 0.5162 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.562e-05/0.1248, allocations: 3.938 kB / 0.5162 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.538e-05/0.1249, allocations: 3.938 kB / 0.5162 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000136/0.125, allocations: 15.92 kB / 0.5162 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.154e-05/0.1251, allocations: 27.91 kB / 0.5162 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.108e-05/0.1252, allocations: 4 kB / 0.5162 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.505e-05/0.1252, allocations: 19.92 kB / 0.5162 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.837e-05/0.1253, allocations: 23.84 kB / 0.5162 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.1253, allocations: 4 kB / 0.5162 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.032e-05/0.1253, allocations: 0 / 0.5162 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.199e-05/0.1253, allocations: 8 kB / 0.5163 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.636e-05/0.1254, allocations: 15.86 kB / 0.5163 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.177e-05/0.1255, allocations: 23.84 kB / 0.5163 GB, free: 11.55 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1255, allocations: 3.938 kB / 0.5163 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.1255, allocations: 0 / 0.5163 GB, free: 11.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.1255, allocations: 0 / 0.5163 GB, free: 11.54 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005625/0.1261, allocations: 363.3 kB / 0.5166 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.1261, allocations: 16.61 kB / 0.5167 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.842e-05/0.1262, allocations: 30.75 kB / 0.5167 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.233e-05/0.1262, allocations: 8.891 kB / 0.5167 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.1263, allocations: 168.3 kB / 0.5169 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.1264, allocations: 8.312 kB / 0.5169 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.701e-05/0.1264, allocations: 8.312 kB / 0.5169 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001369/0.1265, allocations: 50.23 kB / 0.5169 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1265, allocations: 7.938 kB / 0.5169 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.1265, allocations: 0 / 0.5169 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.1266, allocations: 0 / 0.5169 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.83e-05/0.1266, allocations: 16 kB / 0.5169 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004549/0.1271, allocations: 276.8 kB / 0.5172 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002016/0.1273, allocations: 50.5 kB / 0.5173 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.192e-05/0.1273, allocations: 20.86 kB / 0.5173 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.517e-06/0.1273, allocations: 0 / 0.5173 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1273, allocations: 30.56 kB / 0.5173 GB, free: 10.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.653e-06/0.1273, allocations: 0 / 0.5173 GB, free: 10.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002003/0.1275, allocations: 61.73 kB / 0.5174 GB, free: 10.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.1276, allocations: 59.33 kB / 0.5174 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.1277, allocations: 121.8 kB / 0.5175 GB, free: 10.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.1277, allocations: 29.7 kB / 0.5176 GB, free: 10.04 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.205e-05/0.1278, allocations: 96.08 kB / 0.5177 GB, free: 9.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.857e-05/0.1278, allocations: 15.98 kB / 0.5177 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.1279, allocations: 25.67 kB / 0.5177 GB, free: 9.891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.128, allocations: 322.8 kB / 0.518 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.129e-05/0.128, allocations: 11.98 kB / 0.518 GB, free: 9.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.372e-05/0.1281, allocations: 25.7 kB / 0.518 GB, free: 9.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.1284, allocations: 73.62 kB / 0.5181 GB, free: 9.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1284, allocations: 7.875 kB / 0.5181 GB, free: 9.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001342/0.1285, allocations: 73.75 kB / 0.5182 GB, free: 9.359 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1285, allocations: 8 kB / 0.5182 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.1285, allocations: 0 / 0.5182 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1286, allocations: 0 / 0.5182 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1287, allocations: 23.92 kB / 0.5182 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.1287, allocations: 0 / 0.5182 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.529e-05/0.1287, allocations: 15.98 kB / 0.5182 GB, free: 9.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.1287, allocations: 0 / 0.5182 GB, free: 9.312 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw:VARIABLE(start = 10.0 fixed = true ) 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.1289, allocations: 114.6 kB / 0.5183 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.129, allocations: 8.016 kB / 0.5184 GB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.129, allocations: 11.91 kB / 0.5184 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.129, allocations: 3.984 kB / 0.5184 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.129, allocations: 4 kB / 0.5184 GB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.129, allocations: 4 kB / 0.5184 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.1292, allocations: 165.6 kB / 0.5185 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1292, allocations: 0 / 0.5185 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.1294, allocations: 15.98 kB / 0.5185 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1294, allocations: 0 / 0.5185 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.385e-06/0.1294, allocations: 7.938 kB / 0.5186 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1294, allocations: 0 / 0.5186 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1294, allocations: 0 / 0.5186 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002213/0.1296, allocations: 179.5 kB / 0.5187 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.926e-05/0.1296, allocations: 85.14 kB / 0.5188 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.1297, allocations: 0 / 0.5188 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.488e-05/0.1297, allocations: 0 / 0.5188 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.342e-05/0.1297, allocations: 0 / 0.5188 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.1297, allocations: 4 kB / 0.5188 GB, free: 8.625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.384e-05/0.1298, allocations: 91.27 kB / 0.5189 GB, free: 8.535 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1298, allocations: 0 / 0.5189 GB, free: 8.535 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000231/0.1301, allocations: 12 kB / 0.5189 GB, free: 8.523 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Ta,Tw) * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005387/0.1306, allocations: 0.7007 MB / 0.5196 GB, free: 7.797 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001247/0.1307, allocations: 31.98 kB / 0.5196 GB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1307, allocations: 3.938 kB / 0.5196 GB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.452e-05/0.1307, allocations: 11.94 kB / 0.5196 GB, free: 7.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.131, allocations: 10.17 kB / 0.5197 GB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.1324, allocations: 1.364 MB / 0.521 GB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.1327, allocations: 0.6846 MB / 0.5217 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.87e-05/0.1328, allocations: 4 kB / 0.5217 GB, free: 5.578 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.298e-05/0.1328, allocations: 11.44 kB / 0.5217 GB, free: 5.566 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1328, allocations: 0 / 0.5217 GB, free: 5.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02528/0.1581, allocations: 1.485 MB / 0.5231 GB, free: 4.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.817/7.975, allocations: 10.66 kB / 0.5231 GB, free: 4.145 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Modelling_principles.M2_PhasorDomain_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 21.4925 AES_AES_Coursework_Modelling_principles_M2_PhasorDomain.fmu > AES_AES.Coursework.Modelling_principles.M2_PhasorDomain.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.401130341924727] Failed to read output from testmodel.py, exit status != 0: 8.041813033167273 8.054582568 7.926229716 Calling exit ...