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.001115/0.001115, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.01007/0.01007, allocations: 170.7 kB / 16.26 MB, free: 6.613 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.402/1.402, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1944/0.1944, allocations: 22.35 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004595/0.0004596, allocations: 12 kB / 382.6 MB, free: 10.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2997, allocations: 55.97 MB / 438.6 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002076/0.3018, allocations: 2.06 MB / 440.6 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001048/0.3029, allocations: 0.7555 MB / 441.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.3031, allocations: 9.781 kB / 441.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.3032, allocations: 37.25 kB / 441.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.3033, allocations: 37.33 kB / 441.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.3037, allocations: 162 kB / 441.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002442/0.3039, allocations: 298.3 kB / 441.9 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.3041, allocations: 120.9 kB / 442 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.742e-05/0.3042, allocations: 79.11 kB / 442.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3043, allocations: 92.56 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.938e-05/0.3044, allocations: 6 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.051e-05/0.3044, allocations: 8.281 kB / 442.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.095e-05/0.3044, allocations: 42.39 kB / 442.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.956e-05/0.3045, allocations: 128.1 kB / 442.4 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.3047, allocations: 274.4 kB / 442.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.3047, allocations: 3.938 kB / 442.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3047, allocations: 0 / 442.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.3047, allocations: 2.781 kB / 442.7 MB, free: 36.93 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.0006283/0.3054, allocations: 0.5421 MB / 443.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.3054, allocations: 12.53 kB / 443.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.799e-05/0.3055, allocations: 33.84 kB / 443.2 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.3057, allocations: 307 kB / 443.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.3058, allocations: 21.72 kB / 443.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.3058, allocations: 19.53 kB / 443.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.3062, allocations: 265.7 kB / 443.8 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.3062, allocations: 6.75 kB / 443.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.364e-05/0.3062, allocations: 12 kB / 443.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.3063, allocations: 10.02 kB / 443.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003096/0.3066, allocations: 164 kB / 444 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.3077, allocations: 1.043 MB / 445.1 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/0.3081, allocations: 204.2 kB / 445.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001517/0.3083, allocations: 87.62 kB / 445.4 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.3083, allocations: 9.766 kB / 445.4 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.3083, allocations: 34.56 kB / 445.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.3083, allocations: 0 / 445.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005104/0.3088, allocations: 257.8 kB / 445.7 MB, free: 34.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.3089, allocations: 84.83 kB / 445.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001995/0.3091, allocations: 284.5 kB / 446 MB, free: 34.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.3091, allocations: 25.7 kB / 446 MB, free: 34.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.49e-05/0.3092, allocations: 180.6 kB / 446.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.3093, allocations: 66.92 kB / 446.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.255e-05/0.3093, allocations: 23.09 kB / 446.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.3094, allocations: 341.8 kB / 446.6 MB, free: 34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.3095, allocations: 77.67 kB / 446.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.3097, allocations: 118.1 kB / 446.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008302/0.3105, allocations: 347.5 kB / 447.2 MB, free: 33.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3106, allocations: 0 / 447.2 MB, free: 33.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003997/0.311, allocations: 251.9 kB / 447.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/0.311, allocations: 129.6 kB / 447.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.311, allocations: 0 / 447.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.3111, allocations: 2.906 kB / 447.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001888/0.3113, allocations: 47.97 kB / 447.6 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.3113, allocations: 2.75 kB / 447.6 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001377/0.3114, allocations: 32.31 kB / 447.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.3114, allocations: 8.906 kB / 447.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.16e-06/0.3114, allocations: 6.969 kB / 447.6 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002495/0.3117, allocations: 174.9 kB / 447.8 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-06/0.3117, allocations: 0 / 447.8 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-06/0.3117, allocations: 3.031 kB / 447.8 MB, free: 33.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.3119, allocations: 41.75 kB / 447.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.3119, allocations: 6.75 kB / 447.9 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.312, allocations: 17.56 kB / 447.9 MB, free: 33.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.312, allocations: 10 kB / 447.9 MB, free: 33.34 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.0002316/0.3122, allocations: 230.3 kB / 448.1 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.931e-05/0.3123, allocations: 31 kB / 448.1 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.911e-05/0.3124, allocations: 36.64 kB / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3124, allocations: 0 / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3124, allocations: 3.938 kB / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3124, allocations: 0 / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.3128, allocations: 345.6 kB / 448.5 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.3128, allocations: 0 / 448.5 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001924/0.313, allocations: 43.16 kB / 448.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.313, allocations: 0 / 448.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.3131, allocations: 0 / 448.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3131, allocations: 3.031 kB / 448.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3131, allocations: 0 / 448.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005154/0.3136, allocations: 404.2 kB / 449 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.595e-05/0.3137, allocations: 112.9 kB / 449.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.3137, allocations: 3.328 kB / 449.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.3139, allocations: 15.75 kB / 449.1 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.3139, allocations: 19.3 kB / 449.1 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-06/0.3139, allocations: 6.469 kB / 449.1 MB, free: 32.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001245/0.314, allocations: 191.8 kB / 449.3 MB, free: 32.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3141, allocations: 0 / 449.3 MB, free: 32.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003664/0.3144, allocations: 85.19 kB / 449.4 MB, free: 32.31 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 7.269e-05/0.3145, allocations: 97 kB / 449.5 MB, free: 32.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000459/0.315, allocations: 272.7 kB / 449.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.315, allocations: 0 / 449.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.3151, allocations: 88.64 kB / 449.8 MB, free: 32.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.3156, allocations: 71.47 kB / 449.9 MB, free: 32.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008266/0.3165, allocations: 0.6455 MB / 450.6 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001779/0.3167, allocations: 0.7641 MB / 451.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.3168, allocations: 29.2 kB / 451.3 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.615e-05/0.3168, allocations: 19.03 kB / 451.4 MB, free: 30.94 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3169, allocations: 0 / 451.4 MB, free: 30.94 MB / 350.1 MB Notification: Performance of Templates: time 0.004873/0.3217, allocations: 2.456 MB / 453.8 MB, free: 30.76 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)