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.001804/0.001804, allocations: 104.3 kB / 19.73 MB, free: 2.039 MB / 14.72 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.002265/0.002265, allocations: 208.7 kB / 23.01 MB, free: 4.867 MB / 14.72 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 1.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.1085/0.1085, allocations: 24.03 MB / 337.2 MB, free: 11.34 MB / 270.1 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: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003069/0.003069, allocations: 71.89 kB / 474.6 MB, free: 5.629 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3356, allocations: 59.57 MB / 0.5217 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002153/0.3377, allocations: 0.9808 MB / 0.5226 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.3393, allocations: 1.254 MB / 0.5238 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.454e-05/0.3394, allocations: 6.844 kB / 0.5238 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003254/0.3397, allocations: 60.14 kB / 0.5239 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002/0.3399, allocations: 59.42 kB / 0.524 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.3402, allocations: 118.8 kB / 0.5241 GB, free: 8.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004635/0.3406, allocations: 356.1 kB / 0.5244 GB, free: 8.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.3407, allocations: 15.83 kB / 0.5244 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.3409, allocations: 138.2 kB / 0.5246 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.3412, allocations: 156.7 kB / 0.5247 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.77e-05/0.3412, allocations: 17.59 kB / 0.5247 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.817e-05/0.3413, allocations: 16.62 kB / 0.5247 GB, free: 8.754 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.3414, allocations: 91.53 kB / 0.5248 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.234e-05/0.3414, allocations: 69.22 kB / 0.5249 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002478/0.3417, allocations: 215.9 kB / 0.5251 GB, free: 8.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3417, allocations: 1.031 kB / 0.5251 GB, free: 8.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3417, allocations: 0 / 0.5251 GB, free: 8.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.3417, allocations: 0 / 0.5251 GB, free: 8.59 MB / 382.1 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.001529/0.3432, allocations: 0.582 MB / 0.5257 GB, free: 8.219 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3433, allocations: 10.42 kB / 0.5257 GB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.819e-05/0.3433, allocations: 45.05 kB / 0.5257 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.171e-05/0.3434, allocations: 23.14 kB / 0.5257 GB, free: 8.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008049/0.3442, allocations: 295.3 kB / 0.526 GB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.3442, allocations: 8.156 kB / 0.526 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.3442, allocations: 16.48 kB / 0.5261 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.3445, allocations: 165.1 kB / 0.5262 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3445, allocations: 0 / 0.5262 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.3446, allocations: 9.25 kB / 0.5262 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3446, allocations: 3.406 kB / 0.5262 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.3449, allocations: 159.9 kB / 0.5264 GB, free: 7.844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009135/0.3458, allocations: 0.5229 MB / 0.5269 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003273/0.3461, allocations: 207.6 kB / 0.5271 GB, free: 7.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.3463, allocations: 104.3 kB / 0.5272 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.3463, allocations: 10.17 kB / 0.5272 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.412e-05/0.3463, allocations: 35.59 kB / 0.5272 GB, free: 7.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.433e-06/0.3463, allocations: 1 kB / 0.5272 GB, free: 7.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001298/0.3476, allocations: 483.8 kB / 0.5277 GB, free: 7.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.114e-05/0.3476, allocations: 53.94 kB / 0.5277 GB, free: 7.125 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000733/0.3483, allocations: 337.7 kB / 0.5281 GB, free: 6.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3484, allocations: 30.83 kB / 0.5281 GB, free: 6.938 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.3484, allocations: 134.8 kB / 0.5282 GB, free: 6.816 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.206e-05/0.3485, allocations: 74.75 kB / 0.5283 GB, free: 6.758 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/0.3486, allocations: 40.05 kB / 0.5283 GB, free: 6.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.852e-05/0.3486, allocations: 333.9 kB / 0.5286 GB, free: 6.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.3488, allocations: 87.55 kB / 0.5287 GB, free: 6.383 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3489, allocations: 94.45 kB / 0.5288 GB, free: 6.352 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002131/0.3511, allocations: 0.6149 MB / 0.5294 GB, free: 6.203 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3511, allocations: 4 kB / 0.5294 GB, free: 6.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009328/0.352, allocations: 366.7 kB / 0.5298 GB, free: 6.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.352, allocations: 5.562 kB / 0.5298 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.352, allocations: 0 / 0.5298 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003332/0.3524, allocations: 63.52 kB / 0.5298 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.3526, allocations: 42.33 kB / 0.5299 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.3541, allocations: 1.534 MB / 0.5314 GB, free: 4.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003887/0.3545, allocations: 55.86 kB / 0.5314 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.3545, allocations: 8.062 kB / 0.5314 GB, free: 4.641 MB / 382.1 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.0002017/0.3547, allocations: 163.5 kB / 0.5316 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.253e-05/0.3548, allocations: 22.05 kB / 0.5316 GB, free: 4.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.357e-05/0.3549, allocations: 36.3 kB / 0.5317 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.972e-06/0.3549, allocations: 9.719 kB / 0.5317 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3549, allocations: 4.594 kB / 0.5317 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3549, allocations: 1.125 kB / 0.5317 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/0.3552, allocations: 257.8 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3552, allocations: 1.375 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002186/0.3555, allocations: 27.55 kB / 0.5319 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002471/0.3557, allocations: 72.53 kB / 0.532 GB, free: 4.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.3557, allocations: 10.64 kB / 0.532 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/0.3571, allocations: 1.53 MB / 0.5335 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3571, allocations: 1.375 kB / 0.5335 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008587/0.3579, allocations: 0.5241 MB / 0.534 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.847e-05/0.358, allocations: 31.58 kB / 0.5341 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.749e-05/0.358, allocations: 13.34 kB / 0.5341 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.3584, allocations: 41.53 kB / 0.5341 GB, free: 2.547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.962e-05/0.3585, allocations: 23.06 kB / 0.5341 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3585, allocations: 3.812 kB / 0.5341 GB, free: 2.535 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000681/0.3592, allocations: 268 kB / 0.5344 GB, free: 2.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3592, allocations: 0 / 0.5344 GB, free: 2.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003709/0.3595, allocations: 49.34 kB / 0.5344 GB, free: 2.414 MB / 382.1 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.001141/0.3607, allocations: 1.072 MB / 0.5355 GB, free: 1.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007207/0.3614, allocations: 351.7 kB / 0.5358 GB, free: 1.426 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3614, allocations: 0 / 0.5358 GB, free: 1.426 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003437/0.3617, allocations: 239.5 kB / 0.536 GB, free: 1.277 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.3621, allocations: 37.03 kB / 0.5361 GB, free: 1.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005301/0.3674, allocations: 3.02 MB / 0.539 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.3676, allocations: 150 kB / 0.5392 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.3678, allocations: 57.39 kB / 0.5392 GB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.368, allocations: 69.16 kB / 0.5393 GB, free: 15.37 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.368, allocations: 0 / 0.5393 GB, free: 15.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03901/0.407, allocations: 6.173 MB / 0.5453 GB, free: 12.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.14, allocations: 11.06 kB / 0.5453 GB, free: 12.77 MB / 398.1 MB " [Timeout remaining time 647] (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: 16.0155640267767] Failed to read output from testmodel.py, exit status != 0: 13.262895951978862 13.289475293 12.942894702 Calling exit ...