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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006433/0.006433, allocations: 100.8 kB / 15.73 MB, free: 6.051 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.001165/0.001165, allocations: 192.8 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08951/0.08951, allocations: 22.32 MB / 312.9 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.91 kB / 436.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09781, allocations: 54.95 MB / 491.5 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003292/0.1011, allocations: 2.378 MB / 493.9 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1024, allocations: 0.7831 MB / 494.7 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.1026, allocations: 11.94 kB / 494.7 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.1028, allocations: 51.45 kB / 494.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.1029, allocations: 51.47 kB / 494.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.1033, allocations: 175.3 kB / 494.9 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.1037, allocations: 331.7 kB / 495.3 MB, free: 1.461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.1039, allocations: 124.2 kB / 495.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.104, allocations: 115.5 kB / 495.5 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.1041, allocations: 115.3 kB / 495.6 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.798e-05/0.1042, allocations: 28 kB / 495.6 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.284e-05/0.1042, allocations: 31.94 kB / 495.7 MB, free: 1.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.496e-05/0.1043, allocations: 63.7 kB / 495.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.1044, allocations: 131.2 kB / 495.9 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003169/0.1047, allocations: 314.5 kB / 496.2 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1047, allocations: 0 / 496.2 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1047, allocations: 0 / 496.2 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1048, allocations: 0 / 496.2 MB, free: 0.5547 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007929/0.1056, allocations: 0.6152 MB / 496.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1056, allocations: 8.031 kB / 496.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.1057, allocations: 54.73 kB / 496.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.1057, allocations: 36.7 kB / 496.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.1061, allocations: 319.6 kB / 497.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.1062, allocations: 16.81 kB / 497.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/0.1062, allocations: 24.38 kB / 497.2 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/0.1066, allocations: 261.2 kB / 497.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.1067, allocations: 0 / 497.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.339e-05/0.1067, allocations: 12 kB / 497.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1067, allocations: 4 kB / 497.5 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003354/0.107, allocations: 161.6 kB / 497.7 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.1083, allocations: 1.038 MB / 498.7 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004019/0.1088, allocations: 190.7 kB / 498.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.1089, allocations: 88.91 kB / 499 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.109, allocations: 3.938 kB / 499 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.109, allocations: 42.5 kB / 499 MB, free: 13.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.353e-06/0.109, allocations: 0 / 499 MB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005592/0.1096, allocations: 243.4 kB / 499.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.1096, allocations: 81.11 kB / 499.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.1099, allocations: 276.6 kB / 499.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.1099, allocations: 29.7 kB / 499.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.11, allocations: 184.2 kB / 499.8 MB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.1101, allocations: 63.48 kB / 499.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.016e-05/0.1102, allocations: 45.7 kB / 499.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.1103, allocations: 338.8 kB / 0.4885 GB, free: 12.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.1104, allocations: 68.77 kB / 0.4886 GB, free: 12.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1106, allocations: 118 kB / 0.4887 GB, free: 11.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008779/0.1115, allocations: 343.7 kB / 0.489 GB, free: 11.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1115, allocations: 0 / 0.489 GB, free: 11.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004321/0.112, allocations: 245.3 kB / 0.4893 GB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.112, allocations: 4 kB / 0.4893 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.112, allocations: 4 kB / 0.4893 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.112, allocations: 0 / 0.4893 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001988/0.1122, allocations: 47.91 kB / 0.4893 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.1123, allocations: 8.094 kB / 0.4893 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.1124, allocations: 23.89 kB / 0.4893 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.1124, allocations: 4 kB / 0.4893 GB, free: 11.3 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.000244/0.1127, allocations: 164.6 kB / 0.4895 GB, free: 11.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001346/0.1128, allocations: 105.9 kB / 0.4896 GB, free: 11.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006856/0.1135, allocations: 303.9 kB / 0.4899 GB, free: 10.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.363e-06/0.1135, allocations: 0 / 0.4899 GB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003341/0.1139, allocations: 220.3 kB / 0.4901 GB, free: 10.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-06/0.1139, allocations: 8 kB / 0.4901 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1139, allocations: 0 / 0.4901 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.328e-06/0.1139, allocations: 12.09 kB / 0.4901 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.1141, allocations: 47.92 kB / 0.4902 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.965e-06/0.1141, allocations: 0 / 0.4902 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001221/0.1142, allocations: 19.88 kB / 0.4902 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.1142, allocations: 12 kB / 0.4902 GB, free: 10.39 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.0001221/0.1144, allocations: 196.9 kB / 0.4904 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.188e-05/0.1144, allocations: 27.81 kB / 0.4904 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.1145, allocations: 38.31 kB / 0.4905 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1145, allocations: 0 / 0.4905 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.1145, allocations: 4 kB / 0.4905 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1145, allocations: 0 / 0.4905 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.115, allocations: 345.3 kB / 0.4908 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.115, allocations: 0 / 0.4908 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.1152, allocations: 35.92 kB / 0.4908 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1152, allocations: 0 / 0.4908 GB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.1152, allocations: 4 kB / 0.4908 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1152, allocations: 0 / 0.4908 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1152, allocations: 4 kB / 0.4908 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005621/0.1158, allocations: 384.8 kB / 0.4912 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.887e-05/0.1159, allocations: 117 kB / 0.4913 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.1159, allocations: 96 / 0.4913 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.1161, allocations: 11.98 kB / 0.4913 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.1161, allocations: 19.97 kB / 0.4913 GB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.1162, allocations: 3.938 kB / 0.4913 GB, free: 9.133 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.1163, allocations: 195.1 kB / 0.4915 GB, free: 8.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1163, allocations: 0 / 0.4915 GB, free: 8.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003912/0.1167, allocations: 87.73 kB / 0.4916 GB, free: 8.859 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.000788/0.1175, allocations: 0.9114 MB / 0.4925 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005135/0.1181, allocations: 262 kB / 0.4927 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1181, allocations: 4.625 kB / 0.4928 GB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001518/0.1182, allocations: 83.84 kB / 0.4928 GB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.1187, allocations: 81.25 kB / 0.4929 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.1219, allocations: 2.678 MB / 0.4955 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.1222, allocations: 0.7674 MB / 0.4963 GB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.1224, allocations: 22.28 kB / 0.4963 GB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.1225, allocations: 91.41 kB / 0.4964 GB, free: 3.809 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1226, allocations: 0 / 0.4964 GB, free: 3.809 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.205/0.3275, allocations: 5.585 MB / 0.5018 GB, free: 21.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.904/8.232, allocations: 10.84 kB / 0.5018 GB, free: 21.66 MB / 382.1 MB (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)