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.00692/0.00692, allocations: 99.92 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.001313/0.001313, allocations: 186.8 kB / 16.67 MB, free: 5.977 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1983/0.1983, allocations: 22.37 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 70.86 kB / 436.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09136/0.09282, allocations: 54.97 MB / 491.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003299/0.09615, allocations: 2.378 MB / 493.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.09781, allocations: 0.783 MB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003117/0.09814, allocations: 11.94 kB / 494.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.09836, allocations: 47.47 kB / 494.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.09858, allocations: 51.47 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.09905, allocations: 178.3 kB / 495 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003767/0.09944, allocations: 323.7 kB / 495.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.09968, allocations: 132.2 kB / 495.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.09984, allocations: 107.4 kB / 495.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.1, allocations: 123.3 kB / 495.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.298e-05/0.1001, allocations: 24 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.434e-05/0.1001, allocations: 28 kB / 495.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.1002, allocations: 59.72 kB / 495.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.1003, allocations: 123.2 kB / 495.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.1006, allocations: 319.6 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1007, allocations: 3.938 kB / 496.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1007, allocations: 4 kB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1007, allocations: 4 kB / 496.2 MB, free: 13.04 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.0008954/0.1016, allocations: 0.5921 MB / 496.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.1016, allocations: 12.03 kB / 496.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.842e-05/0.1017, allocations: 62.72 kB / 496.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.759e-05/0.1018, allocations: 40.47 kB / 496.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.1022, allocations: 303.5 kB / 497.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.1022, allocations: 16.81 kB / 497.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.795e-05/0.1023, allocations: 20.38 kB / 497.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.1027, allocations: 265.2 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1027, allocations: 4 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.1028, allocations: 8 kB / 497.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.1028, allocations: 8 kB / 497.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003223/0.1031, allocations: 157.6 kB / 497.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.1044, allocations: 1.034 MB / 498.7 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.1048, allocations: 194.8 kB / 498.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.105, allocations: 80.83 kB / 499 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.105, allocations: 4 kB / 499 MB, free: 10.06 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.1051, allocations: 38.44 kB / 499 MB, free: 10.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.372e-06/0.1051, allocations: 0 / 499 MB, free: 10.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005281/0.1056, allocations: 256 kB / 499.3 MB, free: 9.762 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1056, allocations: 77.11 kB / 499.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.1059, allocations: 280.4 kB / 499.6 MB, free: 9.379 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.1059, allocations: 29.7 kB / 499.7 MB, free: 9.344 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1061, allocations: 180.1 kB / 499.8 MB, free: 9.164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.288e-05/0.1061, allocations: 63.11 kB / 499.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/0.1062, allocations: 45.7 kB / 499.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1063, allocations: 338.8 kB / 0.4885 GB, free: 8.711 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000158/0.1065, allocations: 72.81 kB / 0.4886 GB, free: 8.637 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.1067, allocations: 114 kB / 0.4887 GB, free: 8.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008755/0.1076, allocations: 331.3 kB / 0.489 GB, free: 8.164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1076, allocations: 3.938 kB / 0.489 GB, free: 8.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004221/0.108, allocations: 249.8 kB / 0.4893 GB, free: 7.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.108, allocations: 4 kB / 0.4893 GB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.108, allocations: 4 kB / 0.4893 GB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1081, allocations: 0 / 0.4893 GB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.1083, allocations: 51.91 kB / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.1083, allocations: 4 kB / 0.4893 GB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.1084, allocations: 23.83 kB / 0.4894 GB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1085, allocations: 8 kB / 0.4894 GB, free: 7.816 MB / 366.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.0002538/0.1087, allocations: 160.2 kB / 0.4895 GB, free: 7.656 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000133/0.1089, allocations: 107.5 kB / 0.4896 GB, free: 7.531 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006722/0.1095, allocations: 299.2 kB / 0.4899 GB, free: 7.227 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.975e-06/0.1095, allocations: 0 / 0.4899 GB, free: 7.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003311/0.1099, allocations: 229.1 kB / 0.4901 GB, free: 6.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.926e-06/0.1099, allocations: 4 kB / 0.4901 GB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.1099, allocations: 4 kB / 0.4901 GB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.477e-06/0.1099, allocations: 0 / 0.4901 GB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001631/0.1101, allocations: 35.98 kB / 0.4902 GB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.1101, allocations: 11.92 kB / 0.4902 GB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.1102, allocations: 15.84 kB / 0.4902 GB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.1102, allocations: 12.16 kB / 0.4902 GB, free: 6.914 MB / 366.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.0001299/0.1104, allocations: 203.5 kB / 0.4904 GB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.1104, allocations: 27.62 kB / 0.4904 GB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.627e-05/0.1105, allocations: 34.31 kB / 0.4905 GB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1105, allocations: 4 kB / 0.4905 GB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1105, allocations: 0 / 0.4905 GB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1105, allocations: 3.984 kB / 0.4905 GB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000438/0.111, allocations: 349.2 kB / 0.4908 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.111, allocations: 0 / 0.4908 GB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.1112, allocations: 31.92 kB / 0.4908 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.1112, allocations: 7.984 kB / 0.4908 GB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.1112, allocations: 4 kB / 0.4908 GB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1112, allocations: 0 / 0.4908 GB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1112, allocations: 0 / 0.4908 GB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005506/0.1118, allocations: 386.9 kB / 0.4912 GB, free: 5.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.586e-05/0.1119, allocations: 116.7 kB / 0.4913 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.1119, allocations: 7.984 kB / 0.4913 GB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.1121, allocations: 8 kB / 0.4913 GB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.632e-05/0.1121, allocations: 7.984 kB / 0.4913 GB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.1122, allocations: 11.94 kB / 0.4914 GB, free: 5.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.1123, allocations: 191.1 kB / 0.4915 GB, free: 5.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1123, allocations: 0 / 0.4915 GB, free: 5.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003884/0.1127, allocations: 91.69 kB / 0.4916 GB, free: 5.375 MB / 366.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.0008164/0.1135, allocations: 0.9089 MB / 0.4925 GB, free: 4.438 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.1141, allocations: 262.3 kB / 0.4928 GB, free: 4.184 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1141, allocations: 0 / 0.4928 GB, free: 4.184 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.1142, allocations: 79.91 kB / 0.4928 GB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004704/0.1147, allocations: 75.56 kB / 0.4929 GB, free: 4.035 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/0.1178, allocations: 2.658 MB / 0.4955 GB, free: 1.262 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1181, allocations: 0.7675 MB / 0.4963 GB, free: 480 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.1182, allocations: 30.28 kB / 0.4963 GB, free: 452 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.1184, allocations: 91.41 kB / 0.4964 GB, free: 360 kB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1184, allocations: 0 / 0.4964 GB, free: 360 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.1414, allocations: 5.683 MB / 0.5019 GB, free: 10.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/7.771, allocations: 5.625 kB / 0.5019 GB, free: 10.77 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_SlidingPressure_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)