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.001284/0.001284, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.001288/0.001288, allocations: 188.1 kB / 17.34 MB, free: 5.762 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.306/1.306, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08722/0.08722, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001415, allocations: 63.91 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1076, allocations: 54.94 MB / 492.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003992/0.1116, allocations: 2.382 MB / 495 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.1133, allocations: 0.7714 MB / 495.8 MB, free: 1.586 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003298/0.1137, allocations: 11.94 kB / 495.8 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002561/0.114, allocations: 59.39 kB / 495.9 MB, free: 1.516 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.1142, allocations: 47.47 kB / 495.9 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005469/0.1148, allocations: 179.6 kB / 496.1 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004929/0.1153, allocations: 323.7 kB / 496.4 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.1156, allocations: 124.2 kB / 496.5 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.1158, allocations: 119.4 kB / 496.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.116, allocations: 119.3 kB / 496.8 MB, free: 0.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.695e-05/0.116, allocations: 28 kB / 496.8 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.1161, allocations: 24 kB / 496.8 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.241e-05/0.1161, allocations: 59.72 kB / 496.9 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.1162, allocations: 131.2 kB / 497 MB, free: 396 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.1166, allocations: 314.8 kB / 497.3 MB, free: 80 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.1166, allocations: 4 kB / 497.3 MB, free: 76 kB / 366.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1166, allocations: 0 / 497.3 MB, free: 76 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.905e-05/0.1167, allocations: 0 / 497.3 MB, free: 76 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.0009896/0.1177, allocations: 0.6039 MB / 497.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1177, allocations: 12.03 kB / 497.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.212e-05/0.1178, allocations: 36.47 kB / 498 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005284/0.1183, allocations: 319.3 kB / 498.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.1184, allocations: 16.81 kB / 498.3 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.1184, allocations: 20.38 kB / 498.3 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004759/0.1189, allocations: 261.4 kB / 498.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.1189, allocations: 3.938 kB / 498.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.077e-05/0.119, allocations: 12 kB / 498.6 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.119, allocations: 4 kB / 498.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.1194, allocations: 157.6 kB / 498.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.1208, allocations: 1.03 MB / 499.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004127/0.1213, allocations: 194.8 kB / 500 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.1215, allocations: 84.83 kB / 0.4883 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.1215, allocations: 4 kB / 0.4883 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.1215, allocations: 34.55 kB / 0.4884 GB, free: 13.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.1215, allocations: 0 / 0.4884 GB, free: 13.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005624/0.1221, allocations: 249.1 kB / 0.4886 GB, free: 12.85 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.1222, allocations: 96.84 kB / 0.4887 GB, free: 12.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002663/0.1224, allocations: 268.6 kB / 0.489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.1225, allocations: 29.7 kB / 0.489 GB, free: 12.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.1226, allocations: 184.1 kB / 0.4892 GB, free: 12.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.151e-05/0.1227, allocations: 63.09 kB / 0.4892 GB, free: 12.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.558e-05/0.1227, allocations: 41.7 kB / 0.4893 GB, free: 12.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1229, allocations: 334.8 kB / 0.4896 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.123, allocations: 76.83 kB / 0.4896 GB, free: 11.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.1232, allocations: 113.9 kB / 0.4898 GB, free: 11.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008933/0.1241, allocations: 329.8 kB / 0.4901 GB, free: 11.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1242, allocations: 0 / 0.4901 GB, free: 11.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004515/0.1246, allocations: 246.6 kB / 0.4903 GB, free: 11.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1246, allocations: 9.875 kB / 0.4903 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1247, allocations: 0 / 0.4903 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.1247, allocations: 4.156 kB / 0.4903 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.1249, allocations: 47.92 kB / 0.4904 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.1249, allocations: 7.984 kB / 0.4904 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001495/0.1251, allocations: 27.78 kB / 0.4904 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.1251, allocations: 8 kB / 0.4904 GB, free: 10.91 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.0002529/0.1253, allocations: 156.1 kB / 0.4906 GB, free: 10.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001424/0.1255, allocations: 106 kB / 0.4907 GB, free: 10.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006839/0.1262, allocations: 302.7 kB / 0.4909 GB, free: 10.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.1262, allocations: 0 / 0.4909 GB, free: 10.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003497/0.1266, allocations: 227.8 kB / 0.4912 GB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.1266, allocations: 16.09 kB / 0.4912 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-06/0.1266, allocations: 0 / 0.4912 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/0.1266, allocations: 4 kB / 0.4912 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001587/0.1268, allocations: 39.92 kB / 0.4912 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.297e-06/0.1268, allocations: 0 / 0.4912 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001303/0.1269, allocations: 19.84 kB / 0.4912 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.1269, allocations: 4 kB / 0.4912 GB, free: 10 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.0001532/0.1271, allocations: 217.5 kB / 0.4915 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.784e-05/0.1271, allocations: 27.62 kB / 0.4915 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.586e-05/0.1272, allocations: 34.31 kB / 0.4915 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.1272, allocations: 0 / 0.4915 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1272, allocations: 0 / 0.4915 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1273, allocations: 0 / 0.4915 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005045/0.1278, allocations: 353.2 kB / 0.4918 GB, free: 9.332 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.1278, allocations: 4 kB / 0.4919 GB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.128, allocations: 27.98 kB / 0.4919 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.128, allocations: 0 / 0.4919 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.128, allocations: 8 kB / 0.4919 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.128, allocations: 4 kB / 0.4919 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.128, allocations: 0 / 0.4919 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005936/0.1286, allocations: 375 kB / 0.4922 GB, free: 8.906 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1288, allocations: 116.8 kB / 0.4924 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.684e-05/0.1288, allocations: 8 kB / 0.4924 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.1289, allocations: 11.98 kB / 0.4924 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/0.129, allocations: 11.98 kB / 0.4924 GB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.129, allocations: 4 kB / 0.4924 GB, free: 8.738 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001769/0.1292, allocations: 199 kB / 0.4926 GB, free: 8.547 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1292, allocations: 0 / 0.4926 GB, free: 8.547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000392/0.1296, allocations: 83.69 kB / 0.4927 GB, free: 8.465 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.0001135/0.1297, allocations: 107.3 kB / 0.4928 GB, free: 8.348 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005538/0.1303, allocations: 258.2 kB / 0.493 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1303, allocations: 0 / 0.493 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.1305, allocations: 87.8 kB / 0.4931 GB, free: 8.012 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005192/0.131, allocations: 79.3 kB / 0.4932 GB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.132, allocations: 0.544 MB / 0.4937 GB, free: 7.359 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.1323, allocations: 0.7675 MB / 0.4944 GB, free: 6.566 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.713e-05/0.1324, allocations: 19.44 kB / 0.4945 GB, free: 6.547 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1324, allocations: 0 / 0.4945 GB, free: 6.547 MB / 382.1 MB Notification: Performance of Templates: time 0.005899/0.1383, allocations: 3.254 MB / 0.4976 GB, free: 3.305 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)