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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 107.9 kB / 16.41 MB, free: 6.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.0963/0.0963, allocations: 22.33 MB / 319.6 MB, free: 6.754 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.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.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: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 63.89 kB / 445.3 MB, free: 8.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1126, allocations: 54.95 MB / 0.4885 GB, free: 1.602 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M2_PhasorDomain): time 0.001628/0.1143, allocations: 0.5694 MB / 0.489 GB, free: 1.035 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000155/0.1145, allocations: 27.83 kB / 0.4891 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.786e-05/0.1145, allocations: 0 / 0.4891 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.1145, allocations: 0 / 0.4891 GB, free: 1.008 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.846e-05/0.1146, allocations: 15.86 kB / 0.4891 GB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001042/0.1147, allocations: 7.984 kB / 0.4891 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.886e-05/0.1148, allocations: 35.86 kB / 0.4891 GB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.017e-05/0.1148, allocations: 3.938 kB / 0.4891 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.627e-05/0.1149, allocations: 19.92 kB / 0.4891 GB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.281e-05/0.115, allocations: 15.92 kB / 0.4892 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.115, allocations: 0 / 0.4892 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.278e-05/0.115, allocations: 4 kB / 0.4892 GB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.115, allocations: 15.91 kB / 0.4892 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.114e-05/0.1151, allocations: 15.88 kB / 0.4892 GB, free: 0.875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 6.751e-05/0.1151, allocations: 19.84 kB / 0.4892 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1151, allocations: 0 / 0.4892 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1152, allocations: 4 kB / 0.4892 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1152, allocations: 0 / 0.4892 GB, free: 0.8516 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004857/0.1156, allocations: 361.5 kB / 0.4896 GB, free: 460 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.1157, allocations: 8.031 kB / 0.4896 GB, free: 452 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.1157, allocations: 34.75 kB / 0.4896 GB, free: 408 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.201e-05/0.1158, allocations: 4.938 kB / 0.4896 GB, free: 404 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.1159, allocations: 176.3 kB / 0.4898 GB, free: 188 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-06/0.1159, allocations: 384 / 0.4898 GB, free: 188 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.116, allocations: 16.36 kB / 0.4898 GB, free: 172 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.1161, allocations: 46.23 kB / 0.4898 GB, free: 120 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1161, allocations: 3.938 kB / 0.4898 GB, free: 116 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.174e-06/0.1161, allocations: 0 / 0.4898 GB, free: 116 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1161, allocations: 4 kB / 0.4898 GB, free: 112 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.472e-05/0.1162, allocations: 15.98 kB / 0.4899 GB, free: 96 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004154/0.1166, allocations: 280.7 kB / 0.4901 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.1168, allocations: 54.56 kB / 0.4902 GB, free: 15.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.1168, allocations: 20.88 kB / 0.4902 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.1168, allocations: 4 kB / 0.4902 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.1168, allocations: 30.56 kB / 0.4902 GB, free: 15.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.1169, allocations: 0 / 0.4902 GB, free: 15.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001748/0.117, allocations: 65.58 kB / 0.4903 GB, free: 15.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.1171, allocations: 51.41 kB / 0.4903 GB, free: 15.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.1172, allocations: 125.8 kB / 0.4905 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.1172, allocations: 25.7 kB / 0.4905 GB, free: 15.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.1173, allocations: 92.09 kB / 0.4906 GB, free: 15.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.1173, allocations: 19.83 kB / 0.4906 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.1173, allocations: 21.72 kB / 0.4906 GB, free: 15.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1175, allocations: 318.8 kB / 0.4909 GB, free: 14.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.669e-05/0.1175, allocations: 11.98 kB / 0.4909 GB, free: 14.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.145e-05/0.1176, allocations: 33.66 kB / 0.491 GB, free: 14.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.1178, allocations: 77.61 kB / 0.491 GB, free: 14.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1178, allocations: 0 / 0.491 GB, free: 14.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000114/0.118, allocations: 69.72 kB / 0.4911 GB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.118, allocations: 7.984 kB / 0.4911 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.118, allocations: 4 kB / 0.4911 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.118, allocations: 4.031 kB / 0.4911 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.814e-05/0.1181, allocations: 19.94 kB / 0.4911 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1181, allocations: 0 / 0.4911 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.301e-05/0.1182, allocations: 11.95 kB / 0.4911 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.1182, allocations: 0 / 0.4911 GB, free: 14.63 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.0001556/0.1183, allocations: 122.6 kB / 0.4913 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.563e-05/0.1184, allocations: 4 kB / 0.4913 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.392e-05/0.1184, allocations: 7.906 kB / 0.4913 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1184, allocations: 0 / 0.4913 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1184, allocations: 0 / 0.4913 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.1184, allocations: 0 / 0.4913 GB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.1186, allocations: 173.6 kB / 0.4914 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1186, allocations: 0 / 0.4914 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.316e-05/0.1187, allocations: 15.94 kB / 0.4915 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1187, allocations: 0 / 0.4915 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.1187, allocations: 3.984 kB / 0.4915 GB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.1188, allocations: 4 kB / 0.4915 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1188, allocations: 4.094 kB / 0.4915 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001791/0.1189, allocations: 171.4 kB / 0.4916 GB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.821e-05/0.119, allocations: 81.3 kB / 0.4917 GB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.119, allocations: 8.078 kB / 0.4917 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.298e-05/0.1191, allocations: 4 kB / 0.4917 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.696e-05/0.1191, allocations: 3.984 kB / 0.4917 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.1191, allocations: 0 / 0.4917 GB, free: 13.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.634e-05/0.1192, allocations: 99.64 kB / 0.4918 GB, free: 13.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1192, allocations: 4.062 kB / 0.4918 GB, free: 13.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002125/0.1194, allocations: 12 kB / 0.4918 GB, free: 13.83 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.0004317/0.1198, allocations: 0.6967 MB / 0.4925 GB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001142/0.12, allocations: 39.97 kB / 0.4926 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.12, allocations: 0 / 0.4926 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.459e-05/0.12, allocations: 20.06 kB / 0.4926 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.1202, allocations: 4 kB / 0.4926 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1214, allocations: 1.359 MB / 0.4939 GB, free: 11.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.1217, allocations: 0.6846 MB / 0.4946 GB, free: 10.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.026e-05/0.1217, allocations: 8 kB / 0.4946 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.1218, allocations: 15.42 kB / 0.4946 GB, free: 10.87 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1218, allocations: 0 / 0.4946 GB, free: 10.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.1465, allocations: 1.461 MB / 0.496 GB, free: 9.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.702/7.849, allocations: 7.688 kB / 0.496 GB, free: 9.465 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.029018296045251] Failed to read output from testmodel.py, exit status != 0: 7.913852849975228 8.117871652 8.000399587 Calling exit ...