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.001512/0.001513, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 192.7 kB / 16.53 MB, free: 6.391 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.444/1.444, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2084/0.2084, allocations: 22.35 MB / 312.7 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 68.12 kB / 380.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3589, allocations: 54.93 MB / 435.8 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003453/0.3624, allocations: 2.388 MB / 438.1 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.3637, allocations: 0.782 MB / 438.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.3639, allocations: 9.281 kB / 438.9 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.3641, allocations: 48.94 kB / 439 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.3642, allocations: 47.72 kB / 439 MB, free: 37.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004247/0.3647, allocations: 181.1 kB / 439.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.365, allocations: 319.5 kB / 439.5 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.3652, allocations: 137.1 kB / 439.7 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.425e-05/0.3653, allocations: 106.4 kB / 439.8 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.3654, allocations: 121.6 kB / 439.9 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.3655, allocations: 29.97 kB / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.404e-05/0.3655, allocations: 26.41 kB / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.38e-05/0.3656, allocations: 62 kB / 440 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.865e-05/0.3657, allocations: 134.1 kB / 440.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.3659, allocations: 288.7 kB / 440.4 MB, free: 36.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3659, allocations: 4 kB / 440.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.366, allocations: 6.469 kB / 440.4 MB, free: 36.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.366, allocations: 0 / 440.4 MB, free: 36.63 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.0007279/0.3667, allocations: 0.5936 MB / 441 MB, free: 36.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3667, allocations: 9.781 kB / 441 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.3668, allocations: 41.66 kB / 441.1 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002936/0.3671, allocations: 305.4 kB / 441.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.3671, allocations: 13.47 kB / 441.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.3672, allocations: 24.25 kB / 441.4 MB, free: 35.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003825/0.3676, allocations: 266.5 kB / 441.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3676, allocations: 0 / 441.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.3676, allocations: 6.844 kB / 441.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.3676, allocations: 2.875 kB / 441.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.3679, allocations: 167.9 kB / 441.8 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001198/0.3691, allocations: 1.042 MB / 442.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.3695, allocations: 189.8 kB / 443.1 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.3697, allocations: 80.16 kB / 443.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.3697, allocations: 2.625 kB / 443.1 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.3698, allocations: 42.5 kB / 443.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.393e-06/0.3698, allocations: 0 / 443.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005187/0.3703, allocations: 248 kB / 443.4 MB, free: 34.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.3703, allocations: 80.08 kB / 443.5 MB, free: 34.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.3706, allocations: 279.4 kB / 443.8 MB, free: 34.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.3706, allocations: 29.7 kB / 443.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.931e-05/0.3707, allocations: 185.6 kB / 444 MB, free: 34.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.488e-05/0.3707, allocations: 60.33 kB / 444 MB, free: 34.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.852e-05/0.3708, allocations: 49.27 kB / 444.1 MB, free: 33.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.565e-05/0.3709, allocations: 335.5 kB / 444.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.371, allocations: 71.56 kB / 444.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001551/0.3712, allocations: 126.5 kB / 444.6 MB, free: 33.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008076/0.372, allocations: 330.2 kB / 444.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.372, allocations: 0 / 444.9 MB, free: 33.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003605/0.3724, allocations: 247.8 kB / 445.2 MB, free: 33.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3724, allocations: 5.719 kB / 445.2 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.3724, allocations: 0 / 445.2 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3725, allocations: 2.812 kB / 445.2 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.3726, allocations: 44.03 kB / 445.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3727, allocations: 6.781 kB / 445.2 MB, free: 33.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.3728, allocations: 28.56 kB / 445.3 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.3728, allocations: 9.781 kB / 445.3 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.000278/0.3731, allocations: 156.1 kB / 445.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001141/0.3732, allocations: 105.9 kB / 445.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006067/0.3738, allocations: 299.7 kB / 445.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.986e-06/0.3738, allocations: 3.031 kB / 445.8 MB, free: 32.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.000284/0.3741, allocations: 221.5 kB / 446 MB, free: 32.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.053e-06/0.3741, allocations: 4.625 kB / 446 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.3742, allocations: 2.969 kB / 446 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-06/0.3742, allocations: 2.938 kB / 446 MB, free: 32.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.3743, allocations: 47.03 kB / 446.1 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.3743, allocations: 11.08 kB / 446.1 MB, free: 32.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.3744, allocations: 20.81 kB / 446.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.3745, allocations: 5.781 kB / 446.1 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 9.684e-05/0.3746, allocations: 206.8 kB / 446.3 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.748e-05/0.3746, allocations: 27.75 kB / 446.4 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.119e-05/0.3747, allocations: 27.91 kB / 446.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3747, allocations: 7.094 kB / 446.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.3747, allocations: 3.422 kB / 446.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.3747, allocations: 0 / 446.4 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.3751, allocations: 344.1 kB / 446.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3751, allocations: 0 / 446.7 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.3753, allocations: 38.36 kB / 446.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.3753, allocations: 3.375 kB / 446.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.3753, allocations: 0 / 446.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3753, allocations: 2.719 kB / 446.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3753, allocations: 0 / 446.8 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.3758, allocations: 378.5 kB / 447.1 MB, free: 32.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.994e-05/0.3759, allocations: 125.7 kB / 447.3 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.458e-05/0.376, allocations: 2.688 kB / 447.3 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3761, allocations: 9.688 kB / 447.3 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.3761, allocations: 12.47 kB / 447.3 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.3762, allocations: 9.406 kB / 447.3 MB, free: 31.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.3763, allocations: 194 kB / 447.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3763, allocations: 0 / 447.5 MB, free: 31.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.3767, allocations: 87.25 kB / 447.6 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.493e-05/0.3768, allocations: 97.41 kB / 447.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.3773, allocations: 274.1 kB / 447.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3773, allocations: 0 / 447.9 MB, free: 31.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.3774, allocations: 82.94 kB / 448 MB, free: 31.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000499/0.3779, allocations: 81.64 kB / 448.1 MB, free: 31.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007993/0.3788, allocations: 0.5251 MB / 448.6 MB, free: 31.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.379, allocations: 0.7685 MB / 449.4 MB, free: 30.47 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3791, allocations: 27.53 kB / 449.4 MB, free: 30.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.789e-05/0.3791, allocations: 19.62 kB / 449.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3792, allocations: 3.938 kB / 449.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of Templates: time 0.006687/0.3858, allocations: 2.628 MB / 452.1 MB, free: 30.25 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)