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.0106/0.0106, allocations: 103.8 kB / 15.73 MB, free: 6.043 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.002267/0.002267, allocations: 189 kB / 16.67 MB, free: 5.961 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08997/0.08997, allocations: 22.33 MB / 312.8 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 67.89 kB / 437 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1379, allocations: 54.95 MB / 492 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003643/0.1416, allocations: 2.385 MB / 494.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.1431, allocations: 0.7753 MB / 495.1 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002792/0.1434, allocations: 11.94 kB / 495.2 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.1436, allocations: 51.45 kB / 495.2 MB, free: 1.492 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.1438, allocations: 47.47 kB / 495.2 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004906/0.1443, allocations: 175.7 kB / 495.4 MB, free: 1.273 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004179/0.1448, allocations: 323.7 kB / 495.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.145, allocations: 132.2 kB / 495.9 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.1452, allocations: 107.5 kB / 496 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1454, allocations: 119.3 kB / 496.1 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.1455, allocations: 24 kB / 496.1 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.07e-05/0.1455, allocations: 28 kB / 496.1 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.299e-05/0.1456, allocations: 63.7 kB / 496.2 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.1457, allocations: 131.2 kB / 496.3 MB, free: 372 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.146, allocations: 314.8 kB / 496.6 MB, free: 56 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1461, allocations: 0 / 496.6 MB, free: 56 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1461, allocations: 0 / 496.6 MB, free: 56 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.1461, allocations: 3.938 kB / 496.6 MB, free: 52 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.001072/0.1472, allocations: 0.5947 MB / 497.2 MB, free: 15.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.1472, allocations: 8.031 kB / 497.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.044e-05/0.1473, allocations: 40.47 kB / 497.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000464/0.1478, allocations: 319.3 kB / 497.6 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.1478, allocations: 16.81 kB / 497.6 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.1479, allocations: 20.38 kB / 497.6 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.1484, allocations: 265.3 kB / 497.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.1484, allocations: 4 kB / 497.9 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.1484, allocations: 8 kB / 497.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.1484, allocations: 4 kB / 497.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.1488, allocations: 157.6 kB / 498.1 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1503, allocations: 1.034 MB / 499.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.1507, allocations: 190.9 kB / 499.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.1509, allocations: 84.83 kB / 499.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.1509, allocations: 3.938 kB / 499.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.1509, allocations: 38.5 kB / 499.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.212e-06/0.1509, allocations: 0 / 499.4 MB, free: 13.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005495/0.1515, allocations: 246.9 kB / 499.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/0.1516, allocations: 92.95 kB / 499.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.1518, allocations: 276.6 kB / 0.4883 GB, free: 12.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.1518, allocations: 25.7 kB / 0.4883 GB, free: 12.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.152, allocations: 184 kB / 0.4885 GB, free: 12.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.339e-05/0.152, allocations: 67.09 kB / 0.4885 GB, free: 12.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.086e-05/0.1521, allocations: 41.7 kB / 0.4886 GB, free: 12.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1522, allocations: 338.8 kB / 0.4889 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.1524, allocations: 72.83 kB / 0.489 GB, free: 11.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.1526, allocations: 117.9 kB / 0.4891 GB, free: 11.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009027/0.1535, allocations: 327.9 kB / 0.4894 GB, free: 11.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1535, allocations: 0 / 0.4894 GB, free: 11.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004357/0.154, allocations: 245.1 kB / 0.4896 GB, free: 10.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.154, allocations: 4 kB / 0.4896 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.154, allocations: 4 kB / 0.4896 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.154, allocations: 160 / 0.4896 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000192/0.1542, allocations: 51.92 kB / 0.4897 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1543, allocations: 7.984 kB / 0.4897 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.1544, allocations: 23.78 kB / 0.4897 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.1544, allocations: 4 kB / 0.4897 GB, free: 10.89 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.0002509/0.1547, allocations: 172.1 kB / 0.4899 GB, free: 10.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001339/0.1548, allocations: 105.9 kB / 0.49 GB, free: 10.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006554/0.1555, allocations: 304 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.1555, allocations: 0 / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003349/0.1558, allocations: 221.2 kB / 0.4905 GB, free: 10.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.518e-06/0.1558, allocations: 4.156 kB / 0.4905 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-06/0.1559, allocations: 4 kB / 0.4905 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.928e-06/0.1559, allocations: 4 kB / 0.4905 GB, free: 10.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.156, allocations: 39.92 kB / 0.4905 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.156, allocations: 7.938 kB / 0.4906 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.1562, allocations: 15.84 kB / 0.4906 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.1562, allocations: 8 kB / 0.4906 GB, free: 9.98 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.0001363/0.1563, allocations: 213.2 kB / 0.4908 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.969e-05/0.1564, allocations: 27.62 kB / 0.4908 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.149e-05/0.1565, allocations: 34.31 kB / 0.4908 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.1565, allocations: 4 kB / 0.4908 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/0.1565, allocations: 0 / 0.4908 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1565, allocations: 0 / 0.4908 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004422/0.1569, allocations: 349.2 kB / 0.4912 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1569, allocations: 0 / 0.4912 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.1571, allocations: 31.92 kB / 0.4912 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1571, allocations: 0 / 0.4912 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1572, allocations: 12 kB / 0.4912 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1572, allocations: 3.938 kB / 0.4912 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1572, allocations: 0 / 0.4912 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005829/0.1578, allocations: 379.6 kB / 0.4916 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.969e-05/0.1579, allocations: 116.8 kB / 0.4917 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.1579, allocations: 4 kB / 0.4917 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.1581, allocations: 15.98 kB / 0.4917 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.383e-05/0.1581, allocations: 11.98 kB / 0.4917 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.1581, allocations: 4 kB / 0.4917 GB, free: 8.719 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.1583, allocations: 195 kB / 0.4919 GB, free: 8.531 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1583, allocations: 0 / 0.4919 GB, free: 8.531 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003737/0.1587, allocations: 83.69 kB / 0.492 GB, free: 8.449 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.0001029/0.1588, allocations: 103.2 kB / 0.4921 GB, free: 8.336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005325/0.1593, allocations: 255.7 kB / 0.4923 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1593, allocations: 0 / 0.4923 GB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.1595, allocations: 83.81 kB / 0.4924 GB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.16, allocations: 83.5 kB / 0.4925 GB, free: 7.926 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008971/0.1609, allocations: 0.5111 MB / 0.493 GB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.1612, allocations: 0.7635 MB / 0.4937 GB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.1614, allocations: 34.36 kB / 0.4938 GB, free: 6.562 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.816e-05/0.1614, allocations: 19.44 kB / 0.4938 GB, free: 6.543 MB / 382.1 MB Notification: Performance of SimCode: time 1.683e-06/0.1614, allocations: 0 / 0.4938 GB, free: 6.543 MB / 382.1 MB Notification: Performance of Templates: time 0.005883/0.1673, allocations: 2.645 MB / 0.4964 GB, free: 3.926 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)