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.0009565/0.0009565, allocations: 80.5 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0009424/0.0009424, allocations: 165.2 kB / 23.23 MB, free: 1.336 MB / 18.57 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 0.8995/0.8995, allocations: 177.1 MB / 203.5 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] 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.06446/0.06446, allocations: 18.13 MB / 278.1 MB, free: 11.56 MB / 266.7 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: "" <> 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 415 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.04e-05, allocations: 6.219 kB / 415 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.002485/0.002505, allocations: 2.25 MB / 417.3 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.003734, allocations: 0.7844 MB / 418.1 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.003912, allocations: 18.28 kB / 418.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.004074, allocations: 48.09 kB / 418.1 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.004175, allocations: 58.39 kB / 418.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004232/0.004598, allocations: 189.6 kB / 418.4 MB, free: 10.51 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.004886, allocations: 323.5 kB / 418.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.005057, allocations: 93.17 kB / 418.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.92e-05/0.005156, allocations: 99.11 kB / 418.9 MB, free: 10.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.005257, allocations: 80.08 kB / 419 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.005289, allocations: 29.25 kB / 419 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.408e-05/0.005313, allocations: 26.44 kB / 419 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.734e-05/0.005351, allocations: 63.88 kB / 419.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.411e-05/0.005405, allocations: 77.19 kB / 419.2 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003158/0.005721, allocations: 316.1 kB / 419.5 MB, free: 9.977 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005723, allocations: 0 / 419.5 MB, free: 9.977 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.005724, allocations: 0 / 419.5 MB, free: 9.977 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.00573, allocations: 0 / 419.5 MB, free: 9.977 MB / 330.7 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.000627/0.006357, allocations: 0.5313 MB / 420 MB, free: 9.551 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.006401, allocations: 11.8 kB / 420 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.296e-05/0.006444, allocations: 54.42 kB / 420.1 MB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.006494, allocations: 42.08 kB / 420.1 MB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.006825, allocations: 253.2 kB / 420.4 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.006845, allocations: 13.66 kB / 420.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.426e-05/0.006879, allocations: 23.22 kB / 420.4 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/0.007209, allocations: 318.8 kB / 420.7 MB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.007219, allocations: 1.281 kB / 420.7 MB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.007238, allocations: 14.78 kB / 420.7 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.007246, allocations: 7.125 kB / 420.7 MB, free: 9.023 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002235/0.00747, allocations: 165.8 kB / 420.9 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009281/0.008398, allocations: 0.9418 MB / 421.8 MB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.008686, allocations: 186 kB / 422 MB, free: 8.133 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.008795, allocations: 82.38 kB / 422.1 MB, free: 8.098 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.008819, allocations: 2.156 kB / 422.1 MB, free: 8.098 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.008837, allocations: 33.77 kB / 422.1 MB, free: 8.059 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.008838, allocations: 0 / 422.1 MB, free: 8.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004144/0.009253, allocations: 257.7 kB / 422.4 MB, free: 7.938 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.009288, allocations: 109.9 kB / 422.5 MB, free: 7.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.009507, allocations: 272.1 kB / 422.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.009522, allocations: 26.8 kB / 422.8 MB, free: 7.625 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.836e-05/0.00961, allocations: 196.5 kB / 423 MB, free: 7.457 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.009645, allocations: 63.89 kB / 423 MB, free: 7.406 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.009707, allocations: 50.2 kB / 423.1 MB, free: 7.371 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.221e-05/0.009769, allocations: 342.2 kB / 423.4 MB, free: 7.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.009876, allocations: 71.83 kB / 423.5 MB, free: 7.012 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.01002, allocations: 181.3 kB / 423.7 MB, free: 6.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006208/0.01064, allocations: 323.5 kB / 424 MB, free: 6.707 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.01064, allocations: 0 / 424 MB, free: 6.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000307/0.01095, allocations: 251.5 kB / 424.2 MB, free: 6.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.01096, allocations: 7.938 kB / 424.2 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.01097, allocations: 7.719 kB / 424.2 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.01099, allocations: 3.453 kB / 424.2 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.01111, allocations: 44.73 kB / 424.3 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.01112, allocations: 3.469 kB / 424.3 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.648e-05/0.01119, allocations: 26.34 kB / 424.3 MB, free: 6.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.01121, allocations: 12.16 kB / 424.3 MB, free: 6.559 MB / 330.7 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.0001901/0.0114, allocations: 155.7 kB / 424.5 MB, free: 6.445 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001818/0.01158, allocations: 164.8 kB / 424.6 MB, free: 6.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004441/0.01202, allocations: 300.3 kB / 424.9 MB, free: 6.141 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.72e-07/0.01202, allocations: 1.125 kB / 424.9 MB, free: 6.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002342/0.01226, allocations: 224.3 kB / 425.2 MB, free: 6.027 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.827e-06/0.01227, allocations: 6 kB / 425.2 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/0.01227, allocations: 1.125 kB / 425.2 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.759e-06/0.01227, allocations: 3.266 kB / 425.2 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.661e-05/0.01236, allocations: 35.48 kB / 425.2 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.909e-06/0.01237, allocations: 7.734 kB / 425.2 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.286e-05/0.01246, allocations: 24.27 kB / 425.2 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.01247, allocations: 7.281 kB / 425.2 MB, free: 6.008 MB / 330.7 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 8.673e-05/0.01256, allocations: 195.3 kB / 425.4 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.01259, allocations: 28.78 kB / 425.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.738e-05/0.01263, allocations: 37.3 kB / 425.5 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.01264, allocations: 3.078 kB / 425.5 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.01264, allocations: 7.938 kB / 425.5 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.01265, allocations: 0.7969 kB / 425.5 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.01295, allocations: 295.3 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.01295, allocations: 1.734 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.01305, allocations: 29.36 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01306, allocations: 1.922 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.01307, allocations: 1.156 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.01307, allocations: 0.9375 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.01307, allocations: 0.7969 kB / 425.8 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003898/0.01346, allocations: 392.5 kB / 426.2 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.01352, allocations: 43.3 kB / 426.3 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.01355, allocations: 2.531 kB / 426.3 MB, free: 5.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.33e-05/0.01362, allocations: 11.42 kB / 426.3 MB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.01366, allocations: 9.688 kB / 426.3 MB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.01367, allocations: 7.797 kB / 426.3 MB, free: 5.262 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001478/0.01382, allocations: 193.2 kB / 426.5 MB, free: 5.148 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01382, allocations: 1.75 kB / 426.5 MB, free: 5.148 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002896/0.01411, allocations: 86.38 kB / 426.6 MB, free: 5.121 MB / 330.7 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.0005385/0.01465, allocations: 0.914 MB / 427.5 MB, free: 4.355 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003699/0.01502, allocations: 245.3 kB / 427.7 MB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.01502, allocations: 0.625 kB / 427.7 MB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.648e-05/0.01511, allocations: 79.8 kB / 427.8 MB, free: 4.254 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.01545, allocations: 76.62 kB / 427.9 MB, free: 4.227 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002373/0.01782, allocations: 2.663 MB / 430.5 MB, free: 2.414 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.01794, allocations: 159.5 kB / 430.7 MB, free: 2.328 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.01806, allocations: 28.77 kB / 430.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.817e-05/0.01816, allocations: 89.16 kB / 430.8 MB, free: 2.258 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01816, allocations: 5.219 kB / 430.8 MB, free: 2.254 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.03915, allocations: 6.452 MB / 437.3 MB, free: 92 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.863/6.902, allocations: 3.156 kB / 437.3 MB, free: 92 kB / 330.7 MB " [Timeout remaining time 653] (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 --stepSize=4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_SlidingPressure.fmu > AES_AES.Coursework.ElecSys_generator_models.SlidingPressure.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.828030685894191] Failed to read output from testmodel.py, exit status != 0: 6.986768051981926 6.997390106 6.989759511 Calling exit ...