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: "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.SlidingPressure,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_SlidingPressure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001158/0.001158, allocations: 193.6 kB / 16.14 MB, free: 6.648 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.187/1.187, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1644/0.1644, allocations: 22.36 MB / 312.3 MB, free: 12.72 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 59.91 kB / 380.2 MB, free: 11.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1964/0.1975, allocations: 54.95 MB / 435.2 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002332/0.1999, allocations: 2.418 MB / 437.6 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008137/0.2007, allocations: 0.7657 MB / 438.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.2009, allocations: 11.81 kB / 438.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.201, allocations: 34.23 kB / 438.4 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.711e-05/0.2011, allocations: 41.34 kB / 438.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002982/0.2014, allocations: 159.1 kB / 438.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.2016, allocations: 303 kB / 438.9 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2018, allocations: 125.4 kB / 439 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.615e-05/0.2019, allocations: 96.14 kB / 439.1 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.764e-05/0.202, allocations: 114.1 kB / 439.2 MB, free: 37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.202, allocations: 12.09 kB / 439.2 MB, free: 37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.549e-05/0.202, allocations: 14.41 kB / 439.2 MB, free: 37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.13e-05/0.2021, allocations: 53.56 kB / 439.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.073e-05/0.2021, allocations: 113.9 kB / 439.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.2023, allocations: 286.5 kB / 439.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2023, allocations: 0 / 439.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2023, allocations: 2.844 kB / 439.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.2023, allocations: 0 / 439.7 MB, free: 36.75 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.0005568/0.2029, allocations: 0.5919 MB / 440.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.2029, allocations: 15.14 kB / 440.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.203, allocations: 53.61 kB / 440.3 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.203, allocations: 37.91 kB / 440.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.2032, allocations: 304 kB / 440.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.2033, allocations: 18.97 kB / 440.7 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.872e-05/0.2033, allocations: 23.41 kB / 440.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003261/0.2036, allocations: 264.7 kB / 441 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.2036, allocations: 0 / 441 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.2037, allocations: 11 kB / 441 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.2037, allocations: 3.312 kB / 441 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002692/0.2039, allocations: 159.5 kB / 441.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009445/0.2049, allocations: 1.042 MB / 442.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.2052, allocations: 191 kB / 442.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.2054, allocations: 86.62 kB / 442.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.059e-05/0.2054, allocations: 2.469 kB / 442.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.176e-05/0.2054, allocations: 38.44 kB / 442.5 MB, free: 34.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.222e-06/0.2054, allocations: 3.938 kB / 442.5 MB, free: 34.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004248/0.2058, allocations: 252.5 kB / 442.8 MB, free: 34.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.349e-05/0.2059, allocations: 83.92 kB / 442.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.206, allocations: 276.2 kB / 443.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.2061, allocations: 28.61 kB / 443.1 MB, free: 34.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.299e-05/0.2061, allocations: 186.6 kB / 443.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.2062, allocations: 59.09 kB / 443.4 MB, free: 34.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.2062, allocations: 45.78 kB / 443.4 MB, free: 34.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.112e-05/0.2063, allocations: 335.4 kB / 443.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.2064, allocations: 78.44 kB / 443.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001298/0.2065, allocations: 115.9 kB / 443.9 MB, free: 33.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006916/0.2072, allocations: 332.1 kB / 444.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2072, allocations: 0 / 444.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003243/0.2076, allocations: 249.5 kB / 444.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.2076, allocations: 5.844 kB / 444.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.2076, allocations: 0 / 444.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.2076, allocations: 7.031 kB / 444.5 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2078, allocations: 42.09 kB / 444.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.2078, allocations: 6.281 kB / 444.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.2079, allocations: 20.38 kB / 444.6 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.2079, allocations: 5.719 kB / 444.6 MB, free: 33.31 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.0001924/0.2081, allocations: 165.2 kB / 444.7 MB, free: 33.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001005/0.2082, allocations: 111.3 kB / 444.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000557/0.2088, allocations: 290.2 kB / 445.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.173e-06/0.2088, allocations: 0 / 445.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002559/0.209, allocations: 222.1 kB / 445.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.55e-06/0.2091, allocations: 9.781 kB / 445.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-06/0.2091, allocations: 0 / 445.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-06/0.2091, allocations: 6.938 kB / 445.4 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.2092, allocations: 39.25 kB / 445.4 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.2092, allocations: 6.875 kB / 445.4 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2093, allocations: 20.58 kB / 445.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.2093, allocations: 15.75 kB / 445.5 MB, free: 32.82 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 6.463e-05/0.2094, allocations: 205.4 kB / 445.7 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/0.2095, allocations: 29.31 kB / 445.7 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.182e-05/0.2095, allocations: 31.08 kB / 445.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2095, allocations: 3.062 kB / 445.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2095, allocations: 3.328 kB / 445.7 MB, free: 32.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2095, allocations: 3.938 kB / 445.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003143/0.2099, allocations: 342.2 kB / 446.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2099, allocations: 0 / 446.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001622/0.21, allocations: 27.86 kB / 446.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.21, allocations: 11.31 kB / 446.1 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.2101, allocations: 7.031 kB / 446.1 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2101, allocations: 0 / 446.1 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.2101, allocations: 0 / 446.1 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004169/0.2105, allocations: 375.4 kB / 446.5 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.673e-05/0.2106, allocations: 120.1 kB / 446.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.2106, allocations: 8 kB / 446.6 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.2107, allocations: 9.188 kB / 446.6 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.062e-05/0.2108, allocations: 20.33 kB / 446.6 MB, free: 31.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.2108, allocations: 2.875 kB / 446.6 MB, free: 31.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001132/0.2109, allocations: 192.9 kB / 446.8 MB, free: 31.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2109, allocations: 0 / 446.8 MB, free: 31.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003382/0.2112, allocations: 85 kB / 446.9 MB, free: 31.81 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 0.0005197/0.2118, allocations: 0.9111 MB / 447.8 MB, free: 31.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003897/0.2122, allocations: 270.4 kB / 448.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2122, allocations: 0 / 448.1 MB, free: 30.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.2123, allocations: 79.3 kB / 448.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.2127, allocations: 72.33 kB / 448.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.215, allocations: 2.77 MB / 451 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.2151, allocations: 0.7672 MB / 451.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.2152, allocations: 21.81 kB / 451.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-05/0.2153, allocations: 98.69 kB / 451.9 MB, free: 28.17 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2153, allocations: 0 / 451.9 MB, free: 28.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.831/2.047, allocations: 5.249 MB / 457.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001437/2.047, allocations: 191.5 kB / 457.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.568/3.615, allocations: 0 / 457.3 MB, free: 27.45 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_SlidingPressure_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1)