Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_basic.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.0008506/0.0008506, allocations: 76.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.001344/0.001344, 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.8781/0.8781, allocations: 177.1 MB / 203.5 MB, free: 5.754 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.06094/0.06094, allocations: 18.13 MB / 278.1 MB, free: 11.55 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.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 415.8 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.43e-05/2.561e-05, allocations: 2.281 kB / 415.8 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.001998/0.002024, allocations: 1.817 MB / 417.7 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003559/0.00238, allocations: 197.2 kB / 417.8 MB, free: 11.03 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.349e-05/0.002463, allocations: 5.344 kB / 417.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.002615, allocations: 38.53 kB / 417.9 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 4.86e-05/0.002664, allocations: 19.11 kB / 417.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001861/0.00285, allocations: 89.03 kB / 418 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.003104, allocations: 240.2 kB / 418.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.003232, allocations: 44.56 kB / 418.3 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.705e-05/0.003309, allocations: 73.47 kB / 418.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.997e-05/0.003409, allocations: 73.45 kB / 418.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.468e-05/0.003444, allocations: 18.53 kB / 418.4 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.175e-05/0.003466, allocations: 23.91 kB / 418.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.434e-05/0.0035, allocations: 48.09 kB / 418.5 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.884e-05/0.003549, allocations: 64.67 kB / 418.6 MB, free: 10.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.003747, allocations: 200.4 kB / 418.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.003749, allocations: 0 / 418.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.00375, allocations: 0 / 418.8 MB, free: 10.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.003754, allocations: 0 / 418.8 MB, free: 10.57 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006027/0.004357, allocations: 441.9 kB / 419.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.004407, allocations: 10.83 kB / 419.2 MB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.867e-05/0.004456, allocations: 53.81 kB / 419.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.0045, allocations: 25.64 kB / 419.3 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.00475, allocations: 182.8 kB / 419.5 MB, free: 9.977 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.496e-05/0.004785, allocations: 22.28 kB / 419.5 MB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.004825, allocations: 29.33 kB / 419.5 MB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003511/0.005176, allocations: 230.5 kB / 419.7 MB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.005189, allocations: 1.312 kB / 419.7 MB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.005207, allocations: 6.5 kB / 419.7 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.005217, allocations: 13.5 kB / 419.8 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.005462, allocations: 156.2 kB / 419.9 MB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.006541, allocations: 0.9459 MB / 420.9 MB, free: 9.027 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.006759, allocations: 148.6 kB / 421 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.475e-05/0.006844, allocations: 65.44 kB / 421.1 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.006875, allocations: 3.469 kB / 421.1 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.351e-05/0.006888, allocations: 37.09 kB / 421.1 MB, free: 8.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.462e-06/0.00689, allocations: 0 / 421.1 MB, free: 8.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003661/0.007256, allocations: 231.1 kB / 421.3 MB, free: 8.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.007281, allocations: 62.25 kB / 421.4 MB, free: 8.711 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001445/0.007426, allocations: 221.5 kB / 421.6 MB, free: 8.566 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/0.007438, allocations: 30.83 kB / 421.6 MB, free: 8.531 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.417e-05/0.007502, allocations: 158.9 kB / 421.8 MB, free: 8.391 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.435e-05/0.007546, allocations: 80.33 kB / 421.9 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.232e-05/0.007619, allocations: 82.33 kB / 422 MB, free: 8.273 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.941e-05/0.007668, allocations: 332 kB / 422.3 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.007774, allocations: 72.47 kB / 422.3 MB, free: 7.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.007912, allocations: 165.9 kB / 422.5 MB, free: 7.793 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009158/0.008828, allocations: 470.1 kB / 423 MB, free: 7.555 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.008831, allocations: 1.25 kB / 423 MB, free: 7.555 MB / 330.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003682/0.009199, allocations: 302.2 kB / 423.3 MB, free: 7.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.009218, allocations: 10.27 kB / 423.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.009227, allocations: 3.719 kB / 423.3 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.009247, allocations: 8.812 kB / 423.3 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.009438, allocations: 77.62 kB / 423.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.009451, allocations: 5.984 kB / 423.4 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.587e-05/0.009537, allocations: 35.59 kB / 423.4 MB, free: 7.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.009554, allocations: 16.41 kB / 423.4 MB, free: 7.379 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.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: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001503/0.009704, allocations: 154 kB / 423.6 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.602e-05/0.00973, allocations: 19 kB / 423.6 MB, free: 7.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000299/0.01003, allocations: 229.7 kB / 423.8 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.01003, allocations: 3.156 kB / 423.8 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.01004, allocations: 0 / 423.8 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01004, allocations: 1.453 kB / 423.8 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002918/0.01033, allocations: 267 kB / 424.1 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01034, allocations: 0 / 424.1 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.01051, allocations: 60.88 kB / 424.1 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.01052, allocations: 1.062 kB / 424.1 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.01053, allocations: 12.61 kB / 424.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.01054, allocations: 1.062 kB / 424.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.01054, allocations: 0 / 424.2 MB, free: 6.887 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003844/0.01092, allocations: 366 kB / 424.5 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/0.01095, allocations: 24.27 kB / 424.5 MB, free: 6.652 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.01097, allocations: 14.72 kB / 424.5 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.148e-05/0.01104, allocations: 16.12 kB / 424.6 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.845e-05/0.01111, allocations: 21.59 kB / 424.6 MB, free: 6.629 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.01112, allocations: 6.203 kB / 424.6 MB, free: 6.629 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.822e-05/0.01121, allocations: 142.4 kB / 424.7 MB, free: 6.535 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01121, allocations: 0 / 424.7 MB, free: 6.535 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002096/0.01142, allocations: 48.36 kB / 424.8 MB, free: 6.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.0004581/0.01188, allocations: 0.9104 MB / 425.7 MB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002684/0.01215, allocations: 195.4 kB / 425.9 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01215, allocations: 384 / 425.9 MB, free: 5.699 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.01228, allocations: 88.58 kB / 426 MB, free: 5.672 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.01255, allocations: 29.75 kB / 426 MB, free: 5.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/0.01507, allocations: 2.61 MB / 428.6 MB, free: 3.777 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.01517, allocations: 139.6 kB / 428.7 MB, free: 3.695 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.288e-05/0.01527, allocations: 28.22 kB / 428.8 MB, free: 3.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.735e-05/0.01535, allocations: 78.66 kB / 428.8 MB, free: 3.637 MB / 330.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01535, allocations: 0 / 428.8 MB, free: 3.637 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.03534, allocations: 5.339 MB / 434.2 MB, free: 2.219 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.852/6.887, allocations: 0.875 kB / 434.2 MB, free: 2.219 MB / 330.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_basic.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_basic_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_basic.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.883485798723996] Failed to read output from testmodel.py, exit status != 0: 6.9689824394881725 6.979852796 6.974193226 Calling exit ...