Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.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.001859/0.001867, allocations: 114 kB / 16.41 MB, free: 6.508 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.00215/0.00215, 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.436/1.436, 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.09874/0.09875, allocations: 22.33 MB / 319.6 MB, free: 6.77 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.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00205/0.00205, allocations: 67.89 kB / 445.2 MB, free: 8.633 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1034, allocations: 54.96 MB / 0.4885 GB, free: 1.621 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003773/0.1072, allocations: 2.371 MB / 0.4908 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.1087, allocations: 0.783 MB / 0.4916 GB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.1089, allocations: 11.94 kB / 0.4916 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.1091, allocations: 47.45 kB / 0.4916 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001339/0.1093, allocations: 55.41 kB / 0.4917 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.1097, allocations: 175.7 kB / 0.4918 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003728/0.1101, allocations: 319.8 kB / 0.4921 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002438/0.1104, allocations: 136.1 kB / 0.4923 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.1105, allocations: 111.5 kB / 0.4924 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.1107, allocations: 119.3 kB / 0.4925 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.582e-05/0.1107, allocations: 28 kB / 0.4925 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.008e-05/0.1108, allocations: 24 kB / 0.4925 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.371e-05/0.1108, allocations: 63.7 kB / 0.4926 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.111, allocations: 127.2 kB / 0.4927 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003718/0.1113, allocations: 318.5 kB / 0.493 GB, free: 12.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1114, allocations: 0 / 0.493 GB, free: 12.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1114, allocations: 3.938 kB / 0.493 GB, free: 12.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1114, allocations: 0 / 0.493 GB, free: 12.93 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009273/0.1123, allocations: 0.6096 MB / 0.4936 GB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1124, allocations: 8.031 kB / 0.4936 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.057e-05/0.1124, allocations: 58.67 kB / 0.4937 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.495e-05/0.1125, allocations: 36.7 kB / 0.4937 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.113, allocations: 319.6 kB / 0.494 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.113, allocations: 16.81 kB / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.254e-05/0.1131, allocations: 20.38 kB / 0.4941 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004675/0.1136, allocations: 265.2 kB / 0.4943 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1136, allocations: 0 / 0.4943 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.1136, allocations: 12 kB / 0.4943 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1136, allocations: 4 kB / 0.4943 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.114, allocations: 161.6 kB / 0.4945 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.1155, allocations: 1.026 MB / 0.4955 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004454/0.1159, allocations: 202.1 kB / 0.4957 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.1161, allocations: 84.91 kB / 0.4958 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.1161, allocations: 4 kB / 0.4958 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.1162, allocations: 34.5 kB / 0.4958 GB, free: 9.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.342e-06/0.1162, allocations: 0 / 0.4958 GB, free: 9.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006037/0.1168, allocations: 249.3 kB / 0.496 GB, free: 9.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.076e-05/0.1169, allocations: 81.11 kB / 0.4961 GB, free: 9.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.1172, allocations: 272.6 kB / 0.4964 GB, free: 9.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.1172, allocations: 33.64 kB / 0.4964 GB, free: 9.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.1173, allocations: 192.2 kB / 0.4966 GB, free: 9.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.778e-05/0.1174, allocations: 67.42 kB / 0.4967 GB, free: 8.965 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.815e-05/0.1175, allocations: 41.7 kB / 0.4967 GB, free: 8.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1176, allocations: 334.8 kB / 0.497 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.1178, allocations: 76.83 kB / 0.4971 GB, free: 8.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002022/0.118, allocations: 111.6 kB / 0.4972 GB, free: 8.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009392/0.119, allocations: 347.5 kB / 0.4975 GB, free: 8.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.119, allocations: 0 / 0.4975 GB, free: 8.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004596/0.1195, allocations: 246.5 kB / 0.4978 GB, free: 7.773 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1195, allocations: 10.81 kB / 0.4978 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1195, allocations: 160 / 0.4978 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.1195, allocations: 8 kB / 0.4978 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.1198, allocations: 47.91 kB / 0.4978 GB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/0.1198, allocations: 4 kB / 0.4978 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001393/0.1199, allocations: 19.89 kB / 0.4979 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.12, allocations: 8 kB / 0.4979 GB, free: 7.68 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) \"Connector of Real output signal\" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002872/0.1202, allocations: 164 kB / 0.498 GB, free: 7.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002108/0.1205, allocations: 110.1 kB / 0.4981 GB, free: 7.387 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007183/0.1212, allocations: 295 kB / 0.4984 GB, free: 7.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.222e-06/0.1212, allocations: 0 / 0.4984 GB, free: 7.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003609/0.1216, allocations: 232 kB / 0.4986 GB, free: 6.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.1216, allocations: 8 kB / 0.4986 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.405e-06/0.1216, allocations: 0 / 0.4986 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.084e-06/0.1216, allocations: 4 kB / 0.4986 GB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.1218, allocations: 35.92 kB / 0.4987 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1218, allocations: 4 kB / 0.4987 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001234/0.1219, allocations: 23.88 kB / 0.4987 GB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1219, allocations: 4 kB / 0.4987 GB, free: 6.773 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: F.y:VARIABLE(flow=false start = F.y_start fixed = true ) \"Connector of Real output signal\" type: Real T.y:VARIABLE(flow=false start = T.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 2 (PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001594/0.1221, allocations: 201.5 kB / 0.4989 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.248e-05/0.1222, allocations: 31.81 kB / 0.4989 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.727e-05/0.1222, allocations: 34.31 kB / 0.499 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1222, allocations: 0 / 0.499 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1223, allocations: 0 / 0.499 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1223, allocations: 0 / 0.499 GB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005031/0.1228, allocations: 345.3 kB / 0.4993 GB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1228, allocations: 0 / 0.4993 GB, free: 6.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001909/0.123, allocations: 35.92 kB / 0.4993 GB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.123, allocations: 4 kB / 0.4993 GB, free: 6.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.123, allocations: 4 kB / 0.4993 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.123, allocations: 4 kB / 0.4993 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.123, allocations: 0 / 0.4993 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006169/0.1236, allocations: 383.1 kB / 0.4997 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.1238, allocations: 120.9 kB / 0.4998 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.1238, allocations: 8 kB / 0.4998 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.124, allocations: 7.984 kB / 0.4998 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.025e-05/0.124, allocations: 15.92 kB / 0.4998 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.203e-05/0.1241, allocations: 7.938 kB / 0.4998 GB, free: 5.508 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001927/0.1243, allocations: 195.1 kB / 0.5 GB, free: 5.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1243, allocations: 3.938 kB / 0.5 GB, free: 5.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.1247, allocations: 83.8 kB / 0.5001 GB, free: 5.234 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (F.y,S.y,T.y,PIp.I.y) * 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 (17): * Single equations (assignments): 17 * 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.0009499/0.1256, allocations: 0.9178 MB / 0.501 GB, free: 4.289 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005804/0.1262, allocations: 256 kB / 0.5013 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1262, allocations: 0 / 0.5013 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.1264, allocations: 83.91 kB / 0.5013 GB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.1269, allocations: 86.58 kB / 0.5014 GB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.1303, allocations: 2.672 MB / 0.504 GB, free: 1.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.1308, allocations: 0.7597 MB / 0.5048 GB, free: 312 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.1309, allocations: 30.28 kB / 0.5048 GB, free: 284 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001429/0.131, allocations: 87.41 kB / 0.5049 GB, free: 196 kB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1311, allocations: 0 / 0.5049 GB, free: 196 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2075/0.3386, allocations: 5.602 MB / 0.5104 GB, free: 20.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.198/8.536, allocations: 7.328 kB / 0.5104 GB, free: 20.22 MB / 382.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_generator_models.SlidingPressure_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.231122519937344] Failed to read output from testmodel.py, exit status != 0: 8.605303352000192 8.618675057 8.50419934 Calling exit ...