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: translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 105.4 kB / 16.41 MB, free: 6.461 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.001139/0.001139, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0903/0.0903, allocations: 22.31 MB / 313.5 MB, free: 8.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 71.89 kB / 437.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1099, allocations: 54.95 MB / 492.7 MB, free: 4.723 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003248/0.1132, allocations: 2.378 MB / 495 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1145, allocations: 0.7792 MB / 495.8 MB, free: 1.539 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.1147, allocations: 11.94 kB / 495.8 MB, free: 1.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1149, allocations: 51.47 kB / 495.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1151, allocations: 47.48 kB / 495.9 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.1155, allocations: 179.1 kB / 496.1 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003218/0.1158, allocations: 327.7 kB / 496.4 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.1161, allocations: 128.2 kB / 496.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.1162, allocations: 111.5 kB / 496.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1163, allocations: 119.2 kB / 496.8 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.1164, allocations: 28 kB / 496.8 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.333e-05/0.1164, allocations: 24 kB / 496.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.614e-05/0.1165, allocations: 55.78 kB / 496.9 MB, free: 492 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.1166, allocations: 139.1 kB / 497 MB, free: 352 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.1169, allocations: 310.8 kB / 497.3 MB, free: 40 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1169, allocations: 4 kB / 497.3 MB, free: 36 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1169, allocations: 4 kB / 497.3 MB, free: 32 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1169, allocations: 0 / 497.3 MB, free: 32 kB / 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.0008027/0.1177, allocations: 0.5921 MB / 497.9 MB, free: 15.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1178, allocations: 12.03 kB / 497.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.187e-05/0.1179, allocations: 40.47 kB / 498 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.1183, allocations: 311.4 kB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.1183, allocations: 16.81 kB / 498.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.1184, allocations: 24.36 kB / 498.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.1188, allocations: 265.4 kB / 498.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1188, allocations: 0 / 498.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.1188, allocations: 12 kB / 498.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1189, allocations: 4 kB / 498.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.1192, allocations: 165.6 kB / 498.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.1205, allocations: 1.026 MB / 499.8 MB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.1209, allocations: 194.8 kB / 500 MB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001554/0.1211, allocations: 92.75 kB / 0.4883 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.1211, allocations: 0 / 0.4883 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1211, allocations: 34.5 kB / 0.4884 GB, free: 13.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.072e-06/0.1211, allocations: 0 / 0.4884 GB, free: 13.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005386/0.1217, allocations: 251.4 kB / 0.4886 GB, free: 12.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.1217, allocations: 89.02 kB / 0.4887 GB, free: 12.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002405/0.122, allocations: 272.6 kB / 0.489 GB, free: 12.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.122, allocations: 29.64 kB / 0.489 GB, free: 12.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1221, allocations: 184.1 kB / 0.4892 GB, free: 12.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.784e-05/0.1222, allocations: 67.08 kB / 0.4892 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.39e-05/0.1223, allocations: 41.7 kB / 0.4893 GB, free: 12.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1224, allocations: 338.8 kB / 0.4896 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.1226, allocations: 72.83 kB / 0.4897 GB, free: 11.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.1227, allocations: 110 kB / 0.4898 GB, free: 11.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008456/0.1236, allocations: 331.7 kB / 0.4901 GB, free: 11.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1236, allocations: 0 / 0.4901 GB, free: 11.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004166/0.124, allocations: 241.1 kB / 0.4903 GB, free: 10.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.1241, allocations: 12.16 kB / 0.4903 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.1241, allocations: 0 / 0.4903 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.1241, allocations: 4 kB / 0.4903 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.1243, allocations: 47.91 kB / 0.4904 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1243, allocations: 4 kB / 0.4904 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.1245, allocations: 23.78 kB / 0.4904 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.1245, allocations: 11.98 kB / 0.4904 GB, free: 10.87 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.0002428/0.1247, allocations: 164 kB / 0.4906 GB, free: 10.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001285/0.1249, allocations: 102 kB / 0.4907 GB, free: 10.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000665/0.1255, allocations: 300.2 kB / 0.4909 GB, free: 10.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.522e-06/0.1256, allocations: 0 / 0.4909 GB, free: 10.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003243/0.1259, allocations: 225.2 kB / 0.4912 GB, free: 10.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1259, allocations: 8 kB / 0.4912 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-06/0.1259, allocations: 0 / 0.4912 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.459e-06/0.1259, allocations: 4 kB / 0.4912 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.1261, allocations: 39.92 kB / 0.4912 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1261, allocations: 0 / 0.4912 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.1262, allocations: 27.77 kB / 0.4912 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.1263, allocations: 4 kB / 0.4912 GB, free: 9.969 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.0001404/0.1264, allocations: 209.8 kB / 0.4914 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.174e-05/0.1265, allocations: 31.62 kB / 0.4915 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.936e-05/0.1265, allocations: 34.31 kB / 0.4915 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1265, allocations: 0 / 0.4915 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.1266, allocations: 0 / 0.4915 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1266, allocations: 0 / 0.4915 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004616/0.127, allocations: 353.2 kB / 0.4918 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.127, allocations: 4 kB / 0.4918 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.1272, allocations: 35.92 kB / 0.4919 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.1272, allocations: 0 / 0.4919 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1273, allocations: 4 kB / 0.4919 GB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.1273, allocations: 4 kB / 0.4919 GB, free: 9.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1273, allocations: 3.984 kB / 0.4919 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005581/0.1278, allocations: 379.5 kB / 0.4922 GB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.724e-05/0.128, allocations: 112.8 kB / 0.4924 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.128, allocations: 8 kB / 0.4924 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.1281, allocations: 7.984 kB / 0.4924 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.642e-05/0.1282, allocations: 15.92 kB / 0.4924 GB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.1282, allocations: 4 kB / 0.4924 GB, free: 8.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.1284, allocations: 199 kB / 0.4926 GB, free: 8.512 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1284, allocations: 0 / 0.4926 GB, free: 8.512 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003999/0.1288, allocations: 83.69 kB / 0.4927 GB, free: 8.43 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.0001101/0.1289, allocations: 103.2 kB / 0.4928 GB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005036/0.1294, allocations: 255.7 kB / 0.493 GB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1294, allocations: 0 / 0.493 GB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001464/0.1296, allocations: 84.44 kB / 0.4931 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004863/0.1301, allocations: 77.27 kB / 0.4932 GB, free: 7.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00092/0.131, allocations: 0.5518 MB / 0.4937 GB, free: 7.328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.1313, allocations: 0.7675 MB / 0.4944 GB, free: 6.535 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.1314, allocations: 19.44 kB / 0.4945 GB, free: 6.516 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1314, allocations: 0 / 0.4945 GB, free: 6.516 MB / 382.1 MB Notification: Performance of Templates: time 0.004846/0.1362, allocations: 3.295 MB / 0.4977 GB, free: 3.23 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.makefile (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 & ./AES_AES.Coursework.ElecSys_generator_models.SlidingPressure -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)