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.001672/0.001672, allocations: 104.4 kB / 16.35 MB, free: 5.828 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.001639/0.001639, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09117/0.09117, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 67.44 kB / 382.2 MB, free: 40.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1247, allocations: 54.96 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.004099/0.1288, allocations: 2.379 MB / 439.6 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.1304, allocations: 0.7792 MB / 440.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.1307, allocations: 11.94 kB / 440.4 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.131, allocations: 51.45 kB / 440.4 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.1312, allocations: 55.47 kB / 440.5 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006369/0.1319, allocations: 171 kB / 440.6 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005139/0.1324, allocations: 323.8 kB / 440.9 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.1327, allocations: 128.2 kB / 441.1 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.1328, allocations: 115.4 kB / 441.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.133, allocations: 119.2 kB / 441.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.1331, allocations: 28 kB / 441.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.018e-05/0.1331, allocations: 24 kB / 441.4 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.946e-05/0.1332, allocations: 59.77 kB / 441.4 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.1333, allocations: 135.2 kB / 441.5 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.1337, allocations: 314.7 kB / 441.9 MB, free: 7.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1337, allocations: 4 kB / 441.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1337, allocations: 0 / 441.9 MB, free: 7.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1337, allocations: 0 / 441.9 MB, free: 7.594 MB / 318.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.0009774/0.1347, allocations: 0.5922 MB / 442.4 MB, free: 6.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1348, allocations: 12.03 kB / 442.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.987e-05/0.1349, allocations: 40.41 kB / 442.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.1353, allocations: 315.4 kB / 442.8 MB, free: 6.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.1353, allocations: 16.81 kB / 442.8 MB, free: 6.539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.1354, allocations: 24.28 kB / 442.8 MB, free: 6.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.1359, allocations: 265.3 kB / 443.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1359, allocations: 0 / 443.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.1359, allocations: 15.94 kB / 443.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1359, allocations: 4 kB / 443.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003252/0.1363, allocations: 161.6 kB / 443.3 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.1376, allocations: 1.022 MB / 444.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.138, allocations: 202.9 kB / 444.5 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.1381, allocations: 84.77 kB / 444.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.1382, allocations: 4 kB / 444.6 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.1382, allocations: 34.56 kB / 444.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.322e-06/0.1382, allocations: 0 / 444.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005128/0.1387, allocations: 255.3 kB / 444.9 MB, free: 4.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.1388, allocations: 81.11 kB / 445 MB, free: 4.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.139, allocations: 272.5 kB / 445.2 MB, free: 3.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.473e-05/0.1391, allocations: 33.7 kB / 445.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.1392, allocations: 180.1 kB / 445.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.047e-05/0.1393, allocations: 67.11 kB / 445.5 MB, free: 3.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/0.1394, allocations: 45.64 kB / 445.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1395, allocations: 338.8 kB / 445.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.1397, allocations: 68.83 kB / 445.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.1399, allocations: 121.9 kB / 446.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008418/0.1407, allocations: 330.4 kB / 446.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1407, allocations: 0 / 446.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004438/0.1412, allocations: 245.2 kB / 446.6 MB, free: 2.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.1412, allocations: 8 kB / 446.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1412, allocations: 0 / 446.6 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.1412, allocations: 4 kB / 446.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.1414, allocations: 43.92 kB / 446.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.1415, allocations: 4 kB / 446.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.1416, allocations: 27.67 kB / 446.7 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.1416, allocations: 12.16 kB / 446.7 MB, free: 2.422 MB / 318.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.0002635/0.1419, allocations: 160.1 kB / 446.9 MB, free: 2.262 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001425/0.142, allocations: 109.9 kB / 447 MB, free: 2.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007175/0.1428, allocations: 295.8 kB / 447.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.252e-06/0.1428, allocations: 0 / 447.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.00037/0.1432, allocations: 226.6 kB / 447.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.467e-06/0.1432, allocations: 8 kB / 447.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-06/0.1432, allocations: 0 / 447.5 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.599e-06/0.1432, allocations: 4 kB / 447.5 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1434, allocations: 35.92 kB / 447.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.1434, allocations: 8 kB / 447.5 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.1435, allocations: 24 kB / 447.6 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.1435, allocations: 4 kB / 447.6 MB, free: 1.52 MB / 318.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.0001751/0.1437, allocations: 209.4 kB / 447.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.038e-05/0.1437, allocations: 27.66 kB / 447.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.711e-05/0.1438, allocations: 38.25 kB / 447.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1438, allocations: 0 / 447.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.1438, allocations: 0 / 447.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1439, allocations: 4 kB / 447.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004894/0.1443, allocations: 341.3 kB / 448.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.1444, allocations: 7.984 kB / 448.2 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001887/0.1446, allocations: 31.92 kB / 448.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1446, allocations: 0 / 448.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.1446, allocations: 4 kB / 448.2 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1446, allocations: 4 kB / 448.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1446, allocations: 0 / 448.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.1452, allocations: 381.6 kB / 448.6 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1453, allocations: 116.8 kB / 448.7 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.1454, allocations: 8 kB / 448.7 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.1455, allocations: 4 kB / 448.7 MB, free: 288 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.847e-05/0.1455, allocations: 7.984 kB / 448.7 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.1456, allocations: 8 kB / 448.7 MB, free: 272 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1458, allocations: 210.9 kB / 448.9 MB, free: 64 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1458, allocations: 0 / 448.9 MB, free: 64 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004005/0.1462, allocations: 83.73 kB / 449 MB, free: 15.98 MB / 334.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.0001159/0.1463, allocations: 105.5 kB / 449.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005212/0.1468, allocations: 257.7 kB / 449.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1468, allocations: 4.188 kB / 449.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.147, allocations: 75.91 kB / 449.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.1475, allocations: 77.33 kB / 449.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009265/0.1484, allocations: 0.5228 MB / 450.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.1488, allocations: 0.7675 MB / 450.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.1489, allocations: 18.3 kB / 450.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.967e-05/0.149, allocations: 27.42 kB / 450.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.149, allocations: 3.938 kB / 450.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of Templates: time 0.005922/0.1549, allocations: 2.619 MB / 453.5 MB, free: 11.48 MB / 334.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)