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.001351/0.001351, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001554/0.001554, allocations: 219.8 kB / 22.25 MB, free: 5.102 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.462/1.462, allocations: 230.6 MB / 256 MB, free: 7.801 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.1078/0.1078, allocations: 24.14 MB / 336.6 MB, free: 11.31 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) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld 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.002102/0.002102, allocations: 63.91 kB / 474 MB, free: 5.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3103, allocations: 59.61 MB / 0.5211 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002197/0.3125, allocations: 0.9767 MB / 0.522 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.3141, allocations: 1.263 MB / 0.5233 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.854e-05/0.3142, allocations: 2.156 kB / 0.5233 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003083/0.3145, allocations: 59.67 kB / 0.5233 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002052/0.3147, allocations: 63.41 kB / 0.5234 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002866/0.315, allocations: 118.5 kB / 0.5235 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.3154, allocations: 360.1 kB / 0.5238 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.3155, allocations: 20.03 kB / 0.5239 GB, free: 8.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001959/0.3157, allocations: 130.2 kB / 0.524 GB, free: 8.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.316, allocations: 169.3 kB / 0.5241 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.697e-05/0.316, allocations: 16.44 kB / 0.5242 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.944e-05/0.316, allocations: 17.91 kB / 0.5242 GB, free: 8.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.3162, allocations: 95.19 kB / 0.5243 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.3163, allocations: 68.5 kB / 0.5243 GB, free: 8.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.3165, allocations: 216 kB / 0.5245 GB, free: 8.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3165, allocations: 2.016 kB / 0.5245 GB, free: 8.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3165, allocations: 0 / 0.5245 GB, free: 8.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.3166, allocations: 0 / 0.5245 GB, free: 8.48 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.001523/0.3181, allocations: 0.5812 MB / 0.5251 GB, free: 8.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3181, allocations: 9.766 kB / 0.5251 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.087e-05/0.3182, allocations: 45.8 kB / 0.5252 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.258e-05/0.3182, allocations: 23.88 kB / 0.5252 GB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007975/0.319, allocations: 294.5 kB / 0.5255 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.319, allocations: 8.5 kB / 0.5255 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.3191, allocations: 16.64 kB / 0.5255 GB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.3194, allocations: 163.5 kB / 0.5256 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3194, allocations: 2.547 kB / 0.5256 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.3194, allocations: 5.062 kB / 0.5257 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3194, allocations: 2.25 kB / 0.5257 GB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.3197, allocations: 160.2 kB / 0.5258 GB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.3207, allocations: 0.5271 MB / 0.5263 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.321, allocations: 204.9 kB / 0.5265 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.3212, allocations: 107.1 kB / 0.5266 GB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.142e-05/0.3212, allocations: 10.27 kB / 0.5266 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.3212, allocations: 36.44 kB / 0.5267 GB, free: 7.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.913e-06/0.3212, allocations: 0 / 0.5267 GB, free: 7.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001341/0.3226, allocations: 481.3 kB / 0.5271 GB, free: 7.078 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/0.3226, allocations: 54.38 kB / 0.5272 GB, free: 7.016 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007267/0.3233, allocations: 338.4 kB / 0.5275 GB, free: 6.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.3234, allocations: 30.95 kB / 0.5275 GB, free: 6.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.74e-05/0.3234, allocations: 130.3 kB / 0.5277 GB, free: 6.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.467e-05/0.3235, allocations: 74.77 kB / 0.5277 GB, free: 6.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.766e-05/0.3235, allocations: 40.77 kB / 0.5278 GB, free: 6.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.508e-05/0.3236, allocations: 333.1 kB / 0.5281 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.3237, allocations: 88.69 kB / 0.5282 GB, free: 6.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.3239, allocations: 89.77 kB / 0.5283 GB, free: 6.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.3258, allocations: 0.6178 MB / 0.5289 GB, free: 6.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3258, allocations: 0 / 0.5289 GB, free: 6.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007213/0.3265, allocations: 366.9 kB / 0.5292 GB, free: 5.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.3265, allocations: 4.219 kB / 0.5292 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3265, allocations: 1.781 kB / 0.5292 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002721/0.3268, allocations: 71.12 kB / 0.5293 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.327, allocations: 42.67 kB / 0.5293 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001338/0.3283, allocations: 1.534 MB / 0.5308 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003857/0.3287, allocations: 54.42 kB / 0.5309 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.943e-05/0.3288, allocations: 4.781 kB / 0.5309 GB, free: 4.535 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.0001846/0.3289, allocations: 171.5 kB / 0.531 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.497e-05/0.329, allocations: 22.33 kB / 0.5311 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.012e-05/0.3291, allocations: 35.25 kB / 0.5311 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.3291, allocations: 6.062 kB / 0.5311 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3291, allocations: 1.719 kB / 0.5311 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.3291, allocations: 5.266 kB / 0.5311 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003117/0.3294, allocations: 257.9 kB / 0.5313 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3294, allocations: 0 / 0.5313 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.3296, allocations: 27.66 kB / 0.5314 GB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002349/0.3299, allocations: 72.09 kB / 0.5314 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.3299, allocations: 8.75 kB / 0.5315 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.3311, allocations: 1.534 MB / 0.533 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3311, allocations: 0 / 0.533 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008081/0.3319, allocations: 0.5258 MB / 0.5335 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.799e-05/0.332, allocations: 30.94 kB / 0.5335 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.3321, allocations: 4.188 kB / 0.5335 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.3324, allocations: 53.08 kB / 0.5335 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.124e-05/0.3325, allocations: 20.88 kB / 0.5336 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.3325, allocations: 4.078 kB / 0.5336 GB, free: 2.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006437/0.3331, allocations: 267.7 kB / 0.5338 GB, free: 2.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3331, allocations: 0 / 0.5338 GB, free: 2.312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003617/0.3335, allocations: 49.55 kB / 0.5339 GB, free: 2.305 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.001028/0.3345, allocations: 1.067 MB / 0.5349 GB, free: 1.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007065/0.3352, allocations: 360.9 kB / 0.5353 GB, free: 1.312 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3352, allocations: 0 / 0.5353 GB, free: 1.312 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003954/0.3356, allocations: 238.5 kB / 0.5355 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.336, allocations: 33.73 kB / 0.5355 GB, free: 1.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00551/0.3415, allocations: 3.016 MB / 0.5385 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.3418, allocations: 153.5 kB / 0.5386 GB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001974/0.342, allocations: 58.44 kB / 0.5387 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000149/0.3421, allocations: 67.25 kB / 0.5387 GB, free: 15.26 MB / 398.1 MB Notification: Performance of SimCode: time 1.513e-06/0.3421, allocations: 3.938 kB / 0.5387 GB, free: 15.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.3797, allocations: 6.251 MB / 0.5448 GB, free: 12.61 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.9, allocations: 5.609 kB / 0.5448 GB, free: 12.61 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: 15.690832767024403] Failed to read output from testmodel.py, exit status != 0: 13.015359751007054 13.034895115 12.713437485 Calling exit ...