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.0009392/0.0009392, allocations: 72.52 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.0008302/0.0008302, allocations: 169.6 kB / 23.23 MB, free: 1.332 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.9361/0.9361, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.06521/0.06521, allocations: 18.13 MB / 278.1 MB, free: 11.53 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.482e-06/1.482e-06, allocations: 0 / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.019e-05, allocations: 2.281 kB / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_generator_models.SlidingPressure): time 0.0023/0.00232, allocations: 2.259 MB / 417.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.000918/0.003238, allocations: 0.783 MB / 418.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.003389, allocations: 15.34 kB / 418.1 MB, free: 10.67 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.003538, allocations: 49.98 kB / 418.2 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 9.339e-05/0.003631, allocations: 57.3 kB / 418.2 MB, free: 10.58 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.00397, allocations: 183.3 kB / 418.4 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002689/0.004239, allocations: 329 kB / 418.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001713/0.00441, allocations: 89.16 kB / 418.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.43e-05/0.004505, allocations: 102.6 kB / 418.9 MB, free: 10.21 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.004613, allocations: 80.28 kB / 419 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.638e-05/0.00465, allocations: 25.78 kB / 419 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.857e-05/0.004678, allocations: 29.44 kB / 419 MB, free: 10.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.004716, allocations: 61.7 kB / 419.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.241e-05/0.004778, allocations: 80.5 kB / 419.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002924/0.00507, allocations: 309.8 kB / 419.5 MB, free: 9.945 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.005073, allocations: 1.938 kB / 419.5 MB, free: 9.945 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.005073, allocations: 0 / 419.5 MB, free: 9.945 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.005079, allocations: 0 / 419.5 MB, free: 9.945 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.0005714/0.00565, allocations: 0.5356 MB / 420 MB, free: 9.516 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.00569, allocations: 11.14 kB / 420 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.073e-05/0.005731, allocations: 54.27 kB / 420.1 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.788e-05/0.005779, allocations: 42.14 kB / 420.1 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.006062, allocations: 252.6 kB / 420.4 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.006078, allocations: 16.69 kB / 420.4 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.006107, allocations: 24.03 kB / 420.4 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.00643, allocations: 315.7 kB / 420.7 MB, free: 9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.00644, allocations: 4.172 kB / 420.7 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.006457, allocations: 15.38 kB / 420.7 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.006464, allocations: 4.875 kB / 420.7 MB, free: 8.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002228/0.006687, allocations: 162.8 kB / 420.9 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008413/0.007529, allocations: 0.9464 MB / 421.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.007788, allocations: 188.5 kB / 422 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.973e-05/0.007888, allocations: 77.73 kB / 422.1 MB, free: 8.059 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.007909, allocations: 3.656 kB / 422.1 MB, free: 8.059 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.331e-05/0.007922, allocations: 35.78 kB / 422.1 MB, free: 8.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.173e-06/0.007924, allocations: 1.594 kB / 422.1 MB, free: 8.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003618/0.008285, allocations: 255 kB / 422.4 MB, free: 7.898 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.008312, allocations: 109 kB / 422.5 MB, free: 7.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.008491, allocations: 276.5 kB / 422.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.008504, allocations: 31.55 kB / 422.8 MB, free: 7.578 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.008574, allocations: 185.5 kB / 423 MB, free: 7.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.008601, allocations: 58.69 kB / 423 MB, free: 7.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.996e-05/0.008651, allocations: 51.34 kB / 423.1 MB, free: 7.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.04e-05/0.008691, allocations: 341.5 kB / 423.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.292e-05/0.008784, allocations: 67.91 kB / 423.5 MB, free: 6.984 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.008901, allocations: 180.3 kB / 423.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005294/0.00943, allocations: 332.6 kB / 424 MB, free: 6.676 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.009432, allocations: 0 / 424 MB, free: 6.676 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002617/0.009694, allocations: 247.2 kB / 424.2 MB, free: 6.559 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.009705, allocations: 6.5 kB / 424.2 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.009712, allocations: 8.688 kB / 424.2 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.009725, allocations: 3.031 kB / 424.2 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.009832, allocations: 46.42 kB / 424.3 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.009839, allocations: 3.906 kB / 424.3 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.005e-05/0.009909, allocations: 27.48 kB / 424.3 MB, free: 6.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.00992, allocations: 6.594 kB / 424.3 MB, free: 6.531 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.000165/0.01009, allocations: 156.7 kB / 424.5 MB, free: 6.418 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.177e-05/0.01018, allocations: 168.3 kB / 424.6 MB, free: 6.262 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003934/0.01057, allocations: 291.6 kB / 424.9 MB, free: 6.117 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.71e-07/0.01057, allocations: 9.188 kB / 424.9 MB, free: 6.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.0002076/0.01078, allocations: 223.8 kB / 425.2 MB, free: 5.996 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.553e-06/0.01079, allocations: 9.562 kB / 425.2 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.464e-06/0.01079, allocations: 1.125 kB / 425.2 MB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.527e-06/0.01079, allocations: 7.469 kB / 425.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.291e-05/0.01087, allocations: 35.97 kB / 425.2 MB, free: 5.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.126e-06/0.01088, allocations: 6.625 kB / 425.2 MB, free: 5.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.356e-05/0.01094, allocations: 24.67 kB / 425.2 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.01095, allocations: 10.56 kB / 425.2 MB, free: 5.965 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 6.538e-05/0.01101, allocations: 195.7 kB / 425.4 MB, free: 5.777 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.01104, allocations: 29.59 kB / 425.5 MB, free: 5.762 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.01108, allocations: 32.3 kB / 425.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.01109, allocations: 2.75 kB / 425.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.01109, allocations: 0 / 425.5 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.01109, allocations: 9.141 kB / 425.5 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002596/0.01135, allocations: 295.7 kB / 425.8 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.01136, allocations: 0 / 425.8 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.659e-05/0.01145, allocations: 34.34 kB / 425.8 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.01145, allocations: 1.125 kB / 425.8 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.01147, allocations: 6.344 kB / 425.8 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.01147, allocations: 4.641 kB / 425.8 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.01147, allocations: 1.406 kB / 425.8 MB, free: 5.492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003605/0.01183, allocations: 388 kB / 426.2 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.01188, allocations: 42.38 kB / 426.3 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.01191, allocations: 6.438 kB / 426.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.456e-05/0.01198, allocations: 7.375 kB / 426.3 MB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.67e-05/0.01202, allocations: 13.73 kB / 426.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.01202, allocations: 3.531 kB / 426.3 MB, free: 5.219 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001125/0.01214, allocations: 194.7 kB / 426.5 MB, free: 5.105 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01214, allocations: 0 / 426.5 MB, free: 5.105 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002474/0.01238, allocations: 79.44 kB / 426.6 MB, free: 5.086 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.0004572/0.01284, allocations: 0.9204 MB / 427.5 MB, free: 4.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003324/0.01317, allocations: 243.5 kB / 427.7 MB, free: 4.242 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.01317, allocations: 0 / 427.7 MB, free: 4.242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.197e-05/0.01327, allocations: 75.47 kB / 427.8 MB, free: 4.219 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.01357, allocations: 78.14 kB / 427.9 MB, free: 4.191 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.01555, allocations: 2.664 MB / 430.5 MB, free: 2.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.513e-05/0.01565, allocations: 159.9 kB / 430.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.19e-05/0.01574, allocations: 28.59 kB / 430.7 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.494e-05/0.01584, allocations: 89.36 kB / 430.8 MB, free: 2.219 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.01584, allocations: 0 / 430.8 MB, free: 2.219 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02131/0.03714, allocations: 6.458 MB / 437.3 MB, free: 44 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/6.864, allocations: 3.406 kB / 437.3 MB, free: 44 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_generator_models.SlidingPressure_res.csv --start-time 0 --stop-time 2000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4 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.935500524006784] Failed to read output from testmodel.py, exit status != 0: 6.949204303324223 6.958529068 6.95176409 Calling exit ...