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.001364/0.001364, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001457/0.001457, allocations: 211.9 kB / 23.01 MB, free: 4.992 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.509/1.509, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.1105/0.1105, allocations: 24.04 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.003292/0.003292, allocations: 71.89 kB / 474.6 MB, free: 5.637 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3177, allocations: 59.58 MB / 0.5217 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002163/0.3198, allocations: 0.9731 MB / 0.5226 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.3213, allocations: 1.263 MB / 0.5238 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.075e-05/0.3214, allocations: 2.781 kB / 0.5238 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.3217, allocations: 59.33 kB / 0.5239 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.3219, allocations: 64.19 kB / 0.524 GB, free: 8.824 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002583/0.3221, allocations: 121.2 kB / 0.5241 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004176/0.3225, allocations: 350.5 kB / 0.5244 GB, free: 8.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.607e-05/0.3226, allocations: 19.3 kB / 0.5244 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000168/0.3228, allocations: 132.4 kB / 0.5246 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.3231, allocations: 161.5 kB / 0.5247 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.3231, allocations: 16.94 kB / 0.5247 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.843e-05/0.3231, allocations: 18.06 kB / 0.5247 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.3233, allocations: 89.64 kB / 0.5248 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.3e-05/0.3233, allocations: 74.7 kB / 0.5249 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.3236, allocations: 212.5 kB / 0.5251 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3236, allocations: 0 / 0.5251 GB, free: 8.371 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3236, allocations: 0 / 0.5251 GB, free: 8.371 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.3236, allocations: 1.25 kB / 0.5251 GB, free: 8.371 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.001501/0.3251, allocations: 0.5812 MB / 0.5257 GB, free: 8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.3252, allocations: 9.797 kB / 0.5257 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.594e-05/0.3252, allocations: 49.16 kB / 0.5257 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.21e-05/0.3253, allocations: 23.66 kB / 0.5258 GB, free: 7.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000784/0.326, allocations: 295.5 kB / 0.526 GB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.3261, allocations: 8.469 kB / 0.526 GB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.3261, allocations: 15.94 kB / 0.5261 GB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002873/0.3264, allocations: 163.9 kB / 0.5262 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3264, allocations: 1.922 kB / 0.5262 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.3264, allocations: 1.594 kB / 0.5262 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.3264, allocations: 2.594 kB / 0.5262 GB, free: 7.668 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003292/0.3268, allocations: 162.9 kB / 0.5264 GB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000994/0.3277, allocations: 0.5248 MB / 0.5269 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.3281, allocations: 205.7 kB / 0.5271 GB, free: 7.211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.3283, allocations: 103.3 kB / 0.5272 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.3283, allocations: 10.23 kB / 0.5272 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.3283, allocations: 35.75 kB / 0.5272 GB, free: 7.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.653e-06/0.3283, allocations: 1.125 kB / 0.5272 GB, free: 7.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001439/0.3298, allocations: 481.9 kB / 0.5277 GB, free: 6.965 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.3298, allocations: 55.06 kB / 0.5277 GB, free: 6.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007802/0.3306, allocations: 337.5 kB / 0.5281 GB, free: 6.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.3306, allocations: 29.7 kB / 0.5281 GB, free: 6.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.945e-05/0.3307, allocations: 131.8 kB / 0.5282 GB, free: 6.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.103e-05/0.3307, allocations: 74.36 kB / 0.5283 GB, free: 6.539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.499e-05/0.3308, allocations: 36.38 kB / 0.5283 GB, free: 6.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.79e-05/0.3309, allocations: 337.3 kB / 0.5286 GB, free: 6.191 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.331, allocations: 83.72 kB / 0.5287 GB, free: 6.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.3312, allocations: 107.2 kB / 0.5288 GB, free: 6.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002066/0.3333, allocations: 0.6103 MB / 0.5294 GB, free: 5.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.3333, allocations: 0 / 0.5294 GB, free: 5.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007732/0.3341, allocations: 366.7 kB / 0.5298 GB, free: 5.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/0.3341, allocations: 5.469 kB / 0.5298 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3341, allocations: 0.5625 kB / 0.5298 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.3344, allocations: 68.31 kB / 0.5298 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.3346, allocations: 33.44 kB / 0.5299 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.3362, allocations: 1.542 MB / 0.5314 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.3366, allocations: 58.61 kB / 0.5314 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.3366, allocations: 8.172 kB / 0.5314 GB, free: 4.418 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.0001912/0.3368, allocations: 163.6 kB / 0.5316 GB, free: 4.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.34e-05/0.3369, allocations: 21.39 kB / 0.5316 GB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.61e-05/0.337, allocations: 36.44 kB / 0.5317 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.337, allocations: 6.062 kB / 0.5317 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.337, allocations: 5.188 kB / 0.5317 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.337, allocations: 1.453 kB / 0.5317 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003336/0.3373, allocations: 259.5 kB / 0.5319 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3373, allocations: 0.7188 kB / 0.5319 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.3375, allocations: 25.91 kB / 0.5319 GB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002416/0.3378, allocations: 71.48 kB / 0.532 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.3378, allocations: 4.219 kB / 0.532 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00125/0.339, allocations: 1.541 MB / 0.5335 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.339, allocations: 2.578 kB / 0.5335 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000789/0.3398, allocations: 0.5199 MB / 0.534 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.3399, allocations: 26.14 kB / 0.5341 GB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.3399, allocations: 18.97 kB / 0.5341 GB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003565/0.3403, allocations: 45.8 kB / 0.5341 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.3403, allocations: 14.11 kB / 0.5341 GB, free: 2.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.3403, allocations: 8.281 kB / 0.5341 GB, free: 2.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006467/0.341, allocations: 267.5 kB / 0.5344 GB, free: 2.203 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.341, allocations: 1.469 kB / 0.5344 GB, free: 2.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000337/0.3413, allocations: 48.5 kB / 0.5344 GB, free: 2.195 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.001037/0.3424, allocations: 1.067 MB / 0.5355 GB, free: 1.391 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006532/0.343, allocations: 355 kB / 0.5358 GB, free: 1.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.343, allocations: 1.062 kB / 0.5358 GB, free: 1.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003198/0.3433, allocations: 238.8 kB / 0.536 GB, free: 1.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.3437, allocations: 34.78 kB / 0.5361 GB, free: 1.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005221/0.3489, allocations: 3.02 MB / 0.539 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.3491, allocations: 150.1 kB / 0.5392 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001847/0.3493, allocations: 58.45 kB / 0.5392 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3495, allocations: 67.83 kB / 0.5393 GB, free: 15.15 MB / 398.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3495, allocations: 0 / 0.5393 GB, free: 15.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04026/0.3897, allocations: 6.183 MB / 0.5453 GB, free: 12.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.15, allocations: 17.31 kB / 0.5453 GB, free: 12.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Hi_gain_linearising_fmu --startTime=0 --stopTime=10 --stepSize=0.02 --timeout=50 --tolerance=1e-06 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.970889631658792] Failed to read output from testmodel.py, exit status != 0: 13.273864415008575 13.288396991 12.961574571 Calling exit ...