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.00128/0.00128, allocations: 116.3 kB / 17.13 MB, free: 6.027 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.001337/0.001337, allocations: 208.7 kB / 20.1 MB, free: 3.074 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.482/1.482, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1089/0.1089, allocations: 24.12 MB / 333.6 MB, free: 1.484 MB / 254.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: translateModel(AES.Coursework.Typical_control_structures.Hi_gain_linearising,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising") translateModel(AES.Coursework.Typical_control_structures.Hi_gain_linearising,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising") [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.002053/0.002053, allocations: 71.31 kB / 469.7 MB, free: 30.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1147, allocations: 59.57 MB / 0.5169 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Hi_gain_linearising): time 0.002546/0.1173, allocations: 1.015 MB / 0.5179 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1192, allocations: 1.307 MB / 0.5192 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.527e-05/0.1193, allocations: 4 kB / 0.5192 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003016/0.1196, allocations: 43.7 kB / 0.5192 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.1198, allocations: 79.66 kB / 0.5193 GB, free: 8.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.12, allocations: 91.84 kB / 0.5194 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003576/0.1203, allocations: 283.5 kB / 0.5196 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.1204, allocations: 25.53 kB / 0.5197 GB, free: 8.105 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.1206, allocations: 123.6 kB / 0.5198 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.1209, allocations: 163.5 kB / 0.5199 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.536e-05/0.1209, allocations: 16 kB / 0.5199 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.51e-05/0.1209, allocations: 16 kB / 0.52 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1211, allocations: 103.7 kB / 0.5201 GB, free: 7.691 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.768e-05/0.1212, allocations: 87.39 kB / 0.5201 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000258/0.1214, allocations: 211.1 kB / 0.5203 GB, free: 7.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1214, allocations: 4 kB / 0.5203 GB, free: 7.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1214, allocations: 3.938 kB / 0.5204 GB, free: 7.391 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1214, allocations: 0 / 0.5204 GB, free: 7.391 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.001687/0.1231, allocations: 0.6504 MB / 0.521 GB, free: 6.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1232, allocations: 12.61 kB / 0.521 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.146e-05/0.1232, allocations: 28.73 kB / 0.521 GB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008894/0.1241, allocations: 354.9 kB / 0.5214 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.1241, allocations: 8.375 kB / 0.5214 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.1242, allocations: 16.33 kB / 0.5214 GB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.1245, allocations: 153.9 kB / 0.5215 GB, free: 6.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1245, allocations: 4 kB / 0.5215 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.1245, allocations: 4 kB / 0.5215 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1245, allocations: 4 kB / 0.5215 GB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.1249, allocations: 163.8 kB / 0.5217 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.1259, allocations: 0.5939 MB / 0.5223 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003574/0.1263, allocations: 202.3 kB / 0.5225 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.1265, allocations: 109.1 kB / 0.5226 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.1265, allocations: 3.953 kB / 0.5226 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.1265, allocations: 34.5 kB / 0.5226 GB, free: 4.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=19): time 1.512e-06/0.1265, allocations: 4 kB / 0.5226 GB, free: 4.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001465/0.128, allocations: 0.5474 MB / 0.5232 GB, free: 4.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/0.1281, allocations: 55.34 kB / 0.5232 GB, free: 4.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007793/0.1288, allocations: 336.9 kB / 0.5235 GB, free: 3.914 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.1289, allocations: 33.7 kB / 0.5236 GB, free: 3.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.942e-05/0.129, allocations: 120.1 kB / 0.5237 GB, free: 3.754 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.451e-05/0.129, allocations: 75.38 kB / 0.5237 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.79e-05/0.1291, allocations: 45.7 kB / 0.5238 GB, free: 3.629 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1293, allocations: 334.8 kB / 0.5241 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1294, allocations: 91.88 kB / 0.5242 GB, free: 3.203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.1296, allocations: 88.88 kB / 0.5243 GB, free: 3.117 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/0.1316, allocations: 0.6235 MB / 0.5249 GB, free: 2.492 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1317, allocations: 0 / 0.5249 GB, free: 2.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007619/0.1324, allocations: 370.2 kB / 0.5252 GB, free: 2.121 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1324, allocations: 14.19 kB / 0.5253 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1324, allocations: 0 / 0.5253 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002837/0.1327, allocations: 64.78 kB / 0.5253 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.1329, allocations: 39.92 kB / 0.5254 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.1347, allocations: 1.641 MB / 0.527 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.135, allocations: 59.88 kB / 0.527 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.1351, allocations: 4 kB / 0.527 GB, free: 164 kB / 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.000194/0.1353, allocations: 155.9 kB / 0.5272 GB, free: 0 / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.1353, allocations: 24.05 kB / 0.5272 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.842e-05/0.1354, allocations: 38.19 kB / 0.5272 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1354, allocations: 11.67 kB / 0.5272 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.405e-06/0.1354, allocations: 0 / 0.5272 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.1354, allocations: 0 / 0.5272 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003953/0.1358, allocations: 321.3 kB / 0.5275 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1358, allocations: 0 / 0.5275 GB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.1361, allocations: 31.92 kB / 0.5276 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002412/0.1363, allocations: 68.78 kB / 0.5276 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.49e-05/0.1363, allocations: 8 kB / 0.5277 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/0.138, allocations: 1.653 MB / 0.5293 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.138, allocations: 0 / 0.5293 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009031/0.1389, allocations: 0.5233 MB / 0.5298 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.139, allocations: 109 kB / 0.5299 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.139, allocations: 8 kB / 0.5299 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003795/0.1394, allocations: 39.94 kB / 0.5299 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.444e-05/0.1395, allocations: 19.91 kB / 0.5299 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.1395, allocations: 4 kB / 0.5299 GB, free: 12.92 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006753/0.1401, allocations: 264.3 kB / 0.5302 GB, free: 12.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1401, allocations: 4 kB / 0.5302 GB, free: 12.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003404/0.1405, allocations: 48 kB / 0.5303 GB, free: 12.61 MB / 398.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.0001389/0.1406, allocations: 115.1 kB / 0.5304 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006971/0.1413, allocations: 346.5 kB / 0.5307 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1413, allocations: 0 / 0.5307 GB, free: 12.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.1417, allocations: 248.7 kB / 0.5309 GB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.1421, allocations: 32.42 kB / 0.531 GB, free: 11.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.1431, allocations: 0.5814 MB / 0.5315 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.1435, allocations: 0.7599 MB / 0.5323 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.737e-05/0.1436, allocations: 23.38 kB / 0.5323 GB, free: 10.43 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1436, allocations: 4 kB / 0.5323 GB, free: 10.42 MB / 398.1 MB Notification: Performance of Templates: time 0.006316/0.1499, allocations: 3.675 MB / 0.5359 GB, free: 6.742 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.makefile [Timeout 660] (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 & ./AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Hi_gain_linearising.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.473692622996168] Failed to read output from testmodel.py, exit status != 0: 0.15809621001244523 0.17164906300000002 0.047022899 Calling exit ...