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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001924/0.001924, allocations: 100.3 kB / 19.72 MB, free: 1.785 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002545/0.002545, allocations: 210.1 kB / 23.01 MB, free: 4.621 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.663/1.663, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1114/0.1114, allocations: 24.04 MB / 337.2 MB, free: 11.32 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") translateModel(AES.Coursework.ElecSys_generator_models.SlidingPressure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.SlidingPressure") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002641/0.002641, allocations: 67.88 kB / 474.3 MB, free: 5.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4023/0.405, allocations: 59.57 MB / 0.5214 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.003452/0.4084, allocations: 2.247 MB / 0.5236 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.4098, allocations: 0.7844 MB / 0.5243 GB, free: 8.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.41, allocations: 18.5 kB / 0.5244 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.4102, allocations: 50.77 kB / 0.5244 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.4103, allocations: 50.03 kB / 0.5245 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004727/0.4108, allocations: 193.5 kB / 0.5246 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003473/0.4111, allocations: 319.4 kB / 0.5249 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.4113, allocations: 91.75 kB / 0.525 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.4115, allocations: 111.4 kB / 0.5251 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.4116, allocations: 101.4 kB / 0.5252 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.4116, allocations: 25.53 kB / 0.5253 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.343e-05/0.4117, allocations: 29.78 kB / 0.5253 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.87e-05/0.4117, allocations: 59.77 kB / 0.5253 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.4118, allocations: 104.5 kB / 0.5254 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.4122, allocations: 318 kB / 0.5258 GB, free: 7.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4122, allocations: 0 / 0.5258 GB, free: 7.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4122, allocations: 1.438 kB / 0.5258 GB, free: 7.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.4122, allocations: 0 / 0.5258 GB, free: 7.535 MB / 382.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.0007916/0.413, allocations: 0.5342 MB / 0.5263 GB, free: 7.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.413, allocations: 11.36 kB / 0.5263 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.4131, allocations: 37.3 kB / 0.5263 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000404/0.4135, allocations: 252.2 kB / 0.5266 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.4135, allocations: 22.94 kB / 0.5266 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.4136, allocations: 22.88 kB / 0.5266 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/0.414, allocations: 322.1 kB / 0.5269 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.414, allocations: 1.062 kB / 0.5269 GB, free: 6.641 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.4141, allocations: 14.44 kB / 0.5269 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.4141, allocations: 4.938 kB / 0.5269 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003576/0.4144, allocations: 159.2 kB / 0.5271 GB, free: 6.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/0.4157, allocations: 0.8951 MB / 0.528 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.4161, allocations: 188.1 kB / 0.5281 GB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.4162, allocations: 77.09 kB / 0.5282 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.4162, allocations: 4.266 kB / 0.5282 GB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.4163, allocations: 40 kB / 0.5283 GB, free: 5.707 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.4163, allocations: 0 / 0.5283 GB, free: 5.707 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005512/0.4168, allocations: 252.2 kB / 0.5285 GB, free: 5.594 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.4169, allocations: 110.8 kB / 0.5286 GB, free: 5.465 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.4171, allocations: 266.2 kB / 0.5289 GB, free: 5.305 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.4171, allocations: 30.86 kB / 0.5289 GB, free: 5.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.081e-05/0.4172, allocations: 182.4 kB / 0.5291 GB, free: 5.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.4172, allocations: 67.55 kB / 0.5291 GB, free: 5.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.819e-05/0.4173, allocations: 46.28 kB / 0.5292 GB, free: 5.031 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.414e-05/0.4174, allocations: 339.1 kB / 0.5295 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.4175, allocations: 66.33 kB / 0.5296 GB, free: 4.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.4177, allocations: 179.9 kB / 0.5297 GB, free: 4.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008505/0.4186, allocations: 328.1 kB / 0.53 GB, free: 4.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4186, allocations: 5.312 kB / 0.53 GB, free: 4.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004248/0.419, allocations: 243.1 kB / 0.5303 GB, free: 4.254 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.419, allocations: 6.188 kB / 0.5303 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.419, allocations: 1.438 kB / 0.5303 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.419, allocations: 6.719 kB / 0.5303 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.4192, allocations: 46.94 kB / 0.5303 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.4192, allocations: 3.25 kB / 0.5303 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.4194, allocations: 28.42 kB / 0.5304 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.4194, allocations: 5.094 kB / 0.5304 GB, free: 4.227 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.0002271/0.4196, allocations: 157 kB / 0.5305 GB, free: 4.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001431/0.4198, allocations: 175.9 kB / 0.5307 GB, free: 3.949 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006759/0.4204, allocations: 302.7 kB / 0.531 GB, free: 3.793 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.4204, allocations: 1.125 kB / 0.531 GB, free: 3.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0003369/0.4208, allocations: 226.6 kB / 0.5312 GB, free: 3.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.4208, allocations: 6.188 kB / 0.5312 GB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.4208, allocations: 6.219 kB / 0.5312 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.017e-06/0.4208, allocations: 2.094 kB / 0.5312 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.421, allocations: 39.81 kB / 0.5312 GB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.421, allocations: 7.016 kB / 0.5312 GB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001328/0.4211, allocations: 20.17 kB / 0.5313 GB, free: 3.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.4211, allocations: 15 kB / 0.5313 GB, free: 3.645 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 9.419e-05/0.4212, allocations: 195 kB / 0.5315 GB, free: 3.453 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/0.4213, allocations: 25.39 kB / 0.5315 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.535e-05/0.4213, allocations: 32.28 kB / 0.5315 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.4213, allocations: 2.406 kB / 0.5315 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4213, allocations: 0.75 kB / 0.5315 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.4213, allocations: 0.7031 kB / 0.5315 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/0.4217, allocations: 247 kB / 0.5318 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.4217, allocations: 9.156 kB / 0.5318 GB, free: 3.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001938/0.4219, allocations: 38.22 kB / 0.5318 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.4219, allocations: 1.125 kB / 0.5318 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.4219, allocations: 1.094 kB / 0.5318 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.422, allocations: 1.812 kB / 0.5318 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.422, allocations: 3.938 kB / 0.5318 GB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005553/0.4225, allocations: 376.5 kB / 0.5322 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.488e-05/0.4226, allocations: 51.31 kB / 0.5322 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.609e-05/0.4226, allocations: 1.125 kB / 0.5322 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.4228, allocations: 12.78 kB / 0.5322 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.4229, allocations: 13.97 kB / 0.5322 GB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.4229, allocations: 3.406 kB / 0.5323 GB, free: 2.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.4231, allocations: 187.9 kB / 0.5324 GB, free: 2.848 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4231, allocations: 1.188 kB / 0.5324 GB, free: 2.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004182/0.4235, allocations: 82.56 kB / 0.5325 GB, free: 2.824 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 9.888e-05/0.4236, allocations: 106.6 kB / 0.5326 GB, free: 2.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005968/0.4242, allocations: 247.3 kB / 0.5328 GB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4242, allocations: 0.5 kB / 0.5328 GB, free: 2.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.4244, allocations: 81.48 kB / 0.5329 GB, free: 2.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005165/0.4249, allocations: 63.61 kB / 0.533 GB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009605/0.4258, allocations: 0.5191 MB / 0.5335 GB, free: 2.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001507/0.426, allocations: 163.2 kB / 0.5336 GB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001414/0.4261, allocations: 31.28 kB / 0.5337 GB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.4262, allocations: 20.11 kB / 0.5337 GB, free: 2.152 MB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4262, allocations: 4 kB / 0.5337 GB, free: 2.148 MB / 382.1 MB Notification: Performance of Templates: time 0.007776/0.434, allocations: 2.915 MB / 0.5365 GB, free: 1.805 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.376766514033079] Failed to read output from testmodel.py, exit status != 0: 0.4436148386448622 0.459107051 0.043309193 Calling exit ...