Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.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.00126/0.00126, 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.001581/0.001581, allocations: 169.2 kB / 23.22 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.9102/0.9102, 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.06201/0.06201, allocations: 18.12 MB / 278.1 MB, free: 11.54 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.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Hi_gain_linearising,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 415.8 MB, free: 12.31 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.421e-05/2.601e-05, allocations: 2.281 kB / 415.8 MB, free: 12.3 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.001952/0.001978, allocations: 0.978 MB / 416.8 MB, free: 11.75 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.003241, allocations: 1.263 MB / 418.1 MB, free: 10.84 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.962e-05/0.00333, allocations: 10.31 kB / 418.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003293/0.00366, allocations: 63.06 kB / 418.2 MB, free: 10.8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.003845, allocations: 60.27 kB / 418.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.004167, allocations: 162.7 kB / 418.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.004443, allocations: 194.5 kB / 418.6 MB, free: 10.63 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.004576, allocations: 20.39 kB / 418.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.004734, allocations: 90.66 kB / 418.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002404/0.004974, allocations: 135.1 kB / 418.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.839e-05/0.005033, allocations: 17.62 kB / 418.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.019e-05/0.005063, allocations: 17.69 kB / 418.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.00518, allocations: 84.5 kB / 418.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.693e-05/0.005257, allocations: 60.47 kB / 419 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002571/0.005514, allocations: 214 kB / 419.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.005519, allocations: 2.328 kB / 419.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.005521, allocations: 0 / 419.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.005529, allocations: 0 / 419.2 MB, free: 10.41 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.00107/0.006599, allocations: 0.578 MB / 419.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.006643, allocations: 10.77 kB / 419.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.006682, allocations: 46.25 kB / 419.8 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.211e-05/0.006734, allocations: 23.27 kB / 419.9 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005073/0.007242, allocations: 297.5 kB / 420.1 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.007258, allocations: 9.625 kB / 420.2 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.007289, allocations: 15.69 kB / 420.2 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.007557, allocations: 159.7 kB / 420.3 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.007569, allocations: 1.25 kB / 420.3 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.007585, allocations: 9.281 kB / 420.3 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.007591, allocations: 3.375 kB / 420.3 MB, free: 9.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002389/0.00783, allocations: 159.5 kB / 420.5 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007394/0.00857, allocations: 0.5235 MB / 421 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.008852, allocations: 193.7 kB / 421.2 MB, free: 9.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001317/0.008984, allocations: 103.3 kB / 421.3 MB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.009008, allocations: 6.5 kB / 421.3 MB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/0.009024, allocations: 37.78 kB / 421.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=19): time 1.833e-06/0.009026, allocations: 0 / 421.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.0009856/0.01001, allocations: 482.5 kB / 421.8 MB, free: 9.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.72e-05/0.01004, allocations: 57.59 kB / 421.9 MB, free: 8.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005018/0.01054, allocations: 342.9 kB / 422.2 MB, free: 8.801 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.01056, allocations: 30.67 kB / 422.2 MB, free: 8.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.01062, allocations: 135.4 kB / 422.4 MB, free: 8.645 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.962e-05/0.01068, allocations: 77.27 kB / 422.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.01073, allocations: 44.45 kB / 422.5 MB, free: 8.551 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.002e-05/0.01078, allocations: 333.5 kB / 422.8 MB, free: 8.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.01094, allocations: 88.64 kB / 422.9 MB, free: 8.203 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.01105, allocations: 89.45 kB / 423 MB, free: 8.176 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.01235, allocations: 0.6127 MB / 423.6 MB, free: 8.027 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.01236, allocations: 1.062 kB / 423.6 MB, free: 8.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005768/0.01294, allocations: 373.2 kB / 424 MB, free: 7.875 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.01295, allocations: 5.094 kB / 424 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.01296, allocations: 2.328 kB / 424 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.01317, allocations: 66.69 kB / 424 MB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.01331, allocations: 42.17 kB / 424.1 MB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.01439, allocations: 1.532 MB / 425.6 MB, free: 6.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.01459, allocations: 55.27 kB / 425.7 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.0146, allocations: 8.375 kB / 425.7 MB, free: 6.457 MB / 330.7 MB Warning: Assuming fixed start value for the following 6 variables: C.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pcl.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pol.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.00013/0.01473, allocations: 156 kB / 425.8 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.929e-05/0.01478, allocations: 22.25 kB / 425.9 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.127e-05/0.01484, allocations: 40.81 kB / 425.9 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.01484, allocations: 1.375 kB / 425.9 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.01485, allocations: 5.984 kB / 425.9 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.01485, allocations: 4.547 kB / 425.9 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.01513, allocations: 254 kB / 426.2 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.01513, allocations: 0.5 kB / 426.2 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.01528, allocations: 35.72 kB / 426.2 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.01547, allocations: 63.92 kB / 426.3 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.01549, allocations: 8.516 kB / 426.3 MB, free: 6.047 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008473/0.01634, allocations: 1.527 MB / 427.8 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.01634, allocations: 0 / 427.8 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006599/0.017, allocations: 0.5207 MB / 428.3 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.01704, allocations: 33.12 kB / 428.3 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.01706, allocations: 12 kB / 428.4 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.01725, allocations: 49.22 kB / 428.4 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.0173, allocations: 12.58 kB / 428.4 MB, free: 4.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.01731, allocations: 8.75 kB / 428.4 MB, free: 4.379 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003491/0.01766, allocations: 272.8 kB / 428.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01766, allocations: 0 / 428.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002545/0.01792, allocations: 53.06 kB / 428.7 MB, free: 4.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pol.x_scaled[1],Pol.x_scaled[2],Pcl.x_scaled[1],Pcl.x_scaled[2],C.x_scaled[1],C.x_scaled[2]) * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007615/0.01868, allocations: 1.068 MB / 429.8 MB, free: 3.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004924/0.01917, allocations: 352.1 kB / 430.1 MB, free: 3.258 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01917, allocations: 0 / 430.1 MB, free: 3.258 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.01938, allocations: 244.7 kB / 430.4 MB, free: 3.105 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.01965, allocations: 35.25 kB / 430.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.02303, allocations: 3.003 MB / 433.4 MB, free: 1.355 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.02316, allocations: 153.3 kB / 433.6 MB, free: 1.27 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.02329, allocations: 57.86 kB / 433.6 MB, free: 1.266 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.093e-05/0.02338, allocations: 65.89 kB / 433.7 MB, free: 1.219 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02338, allocations: 0 / 433.7 MB, free: 1.219 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02399/0.04738, allocations: 6.339 MB / 440 MB, free: 14.22 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/7.996, allocations: 4.547 kB / 440 MB, free: 14.22 MB / 346.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising.fmu > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.070095366798341] Failed to read output from testmodel.py, exit status != 0: 8.088438300415874 8.098357865 8.090617592 Calling exit ...