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.001246/0.001246, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00151/0.00151, allocations: 196.1 kB / 16.14 MB, free: 6.711 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.33/1.33, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2079/0.2079, allocations: 22.35 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.91 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3289, allocations: 54.94 MB / 435 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003702/0.3327, allocations: 2.427 MB / 437.5 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.334, allocations: 0.7601 MB / 438.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003037/0.3344, allocations: 9.281 kB / 438.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002098/0.3346, allocations: 36.28 kB / 438.3 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.3348, allocations: 40.08 kB / 438.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.3352, allocations: 163.5 kB / 438.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.3356, allocations: 301.7 kB / 438.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.3358, allocations: 129.6 kB / 438.9 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.336, allocations: 91.69 kB / 439 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.3361, allocations: 117.7 kB / 439.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.259e-05/0.3362, allocations: 14.91 kB / 439.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.431e-05/0.3362, allocations: 12.72 kB / 439.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.044e-05/0.3363, allocations: 43.77 kB / 439.2 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.23e-05/0.3364, allocations: 130.2 kB / 439.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002178/0.3366, allocations: 278.3 kB / 439.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3366, allocations: 0 / 439.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3366, allocations: 3.938 kB / 439.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3366, allocations: 0 / 439.6 MB, free: 36.62 MB / 350.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.0007987/0.3374, allocations: 0.6005 MB / 440.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3375, allocations: 11.09 kB / 440.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.028e-05/0.3376, allocations: 40.66 kB / 440.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002984/0.3379, allocations: 298.7 kB / 440.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.3379, allocations: 13.38 kB / 440.5 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.3379, allocations: 21.5 kB / 440.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003973/0.3383, allocations: 267.5 kB / 440.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.3384, allocations: 2.875 kB / 440.8 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.3384, allocations: 4 kB / 440.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3384, allocations: 5.5 kB / 440.8 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.3387, allocations: 162.8 kB / 441 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.3399, allocations: 1.041 MB / 442 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.3403, allocations: 198.2 kB / 442.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.3405, allocations: 81.38 kB / 442.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.3405, allocations: 2.812 kB / 442.3 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.3405, allocations: 34.56 kB / 442.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.3405, allocations: 0 / 442.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005122/0.341, allocations: 253.4 kB / 442.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.3411, allocations: 83.77 kB / 442.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.3413, allocations: 280.6 kB / 442.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.3413, allocations: 33.02 kB / 443 MB, free: 34.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.58e-05/0.3414, allocations: 177.5 kB / 443.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.719e-05/0.3415, allocations: 59.39 kB / 443.2 MB, free: 34.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.425e-05/0.3415, allocations: 45.8 kB / 443.2 MB, free: 33.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.711e-05/0.3416, allocations: 338.1 kB / 443.6 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.3417, allocations: 70.64 kB / 443.6 MB, free: 33.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.3419, allocations: 117.5 kB / 443.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008116/0.3427, allocations: 331.5 kB / 444.1 MB, free: 33.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3427, allocations: 4 kB / 444.1 MB, free: 33.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003741/0.3431, allocations: 240.4 kB / 444.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.3431, allocations: 10.84 kB / 444.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3432, allocations: 4 kB / 444.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.3432, allocations: 2.938 kB / 444.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001803/0.3434, allocations: 40.56 kB / 444.4 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3434, allocations: 11.31 kB / 444.4 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.3435, allocations: 23.62 kB / 444.4 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.3435, allocations: 9.812 kB / 444.4 MB, free: 33.24 MB / 350.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.0002826/0.3438, allocations: 156 kB / 444.6 MB, free: 33.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001243/0.344, allocations: 106 kB / 444.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006246/0.3446, allocations: 296.3 kB / 445 MB, free: 32.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.865e-06/0.3446, allocations: 6.688 kB / 445 MB, free: 32.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002904/0.3449, allocations: 221.2 kB / 445.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.3449, allocations: 5.844 kB / 445.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-06/0.3449, allocations: 2.844 kB / 445.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.656e-06/0.3449, allocations: 7.094 kB / 445.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.3451, allocations: 44.17 kB / 445.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.3451, allocations: 2.688 kB / 445.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.3452, allocations: 18.25 kB / 445.3 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3452, allocations: 6.656 kB / 445.3 MB, free: 32.75 MB / 350.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.0001003/0.3453, allocations: 213.1 kB / 445.5 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.76e-05/0.3454, allocations: 27.09 kB / 445.5 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.013e-05/0.3455, allocations: 34.38 kB / 445.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3455, allocations: 0 / 445.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3455, allocations: 2.844 kB / 445.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3455, allocations: 0 / 445.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003831/0.3459, allocations: 343.9 kB / 445.9 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.3459, allocations: 0 / 445.9 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.3461, allocations: 37.66 kB / 445.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3461, allocations: 3.125 kB / 445.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.3461, allocations: 0 / 445.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3461, allocations: 6.875 kB / 445.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3461, allocations: 0 / 445.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.3466, allocations: 374 kB / 446.3 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.37e-05/0.3467, allocations: 124.8 kB / 446.4 MB, free: 31.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.3468, allocations: 4 kB / 446.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.3469, allocations: 20.98 kB / 446.4 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.347, allocations: 12.92 kB / 446.4 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.347, allocations: 2.969 kB / 446.4 MB, free: 31.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.3471, allocations: 195.5 kB / 446.6 MB, free: 31.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3471, allocations: 0 / 446.6 MB, free: 31.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003773/0.3475, allocations: 87.97 kB / 446.7 MB, free: 31.73 MB / 350.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 8.283e-05/0.3476, allocations: 98.28 kB / 446.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004768/0.3481, allocations: 263.7 kB / 447.1 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3481, allocations: 0 / 447.1 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.3482, allocations: 80.12 kB / 447.2 MB, free: 31.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.3487, allocations: 71.14 kB / 447.2 MB, free: 31.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008659/0.3496, allocations: 0.6268 MB / 447.8 MB, free: 31.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.3498, allocations: 0.7685 MB / 448.6 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001344/0.3499, allocations: 24.19 kB / 448.6 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.666e-05/0.35, allocations: 17.94 kB / 448.7 MB, free: 30.37 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.35, allocations: 4 kB / 448.7 MB, free: 30.37 MB / 350.1 MB Notification: Performance of Templates: time 0.005309/0.3553, allocations: 2.485 MB / 451.1 MB, free: 30.17 MB / 350.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)