Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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.00192/0.00192, allocations: 112 kB / 17.14 MB, free: 5.949 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.002669/0.002669, allocations: 213.1 kB / 20.11 MB, free: 2.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.573/1.573, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1068/0.1068, allocations: 24.03 MB / 333.6 MB, free: 1.535 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) Running command: translateModel(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") [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.002074/0.002074, allocations: 60.25 kB / 468.9 MB, free: 31.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1231, allocations: 59.54 MB / 0.516 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002873/0.126, allocations: 1.228 MB / 0.5172 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.1282, allocations: 1.404 MB / 0.5186 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1284, allocations: 0 / 0.5186 GB, free: 9.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004255/0.1288, allocations: 87.47 kB / 0.5187 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003196/0.1292, allocations: 103.5 kB / 0.5188 GB, free: 8.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.1296, allocations: 167.7 kB / 0.5189 GB, free: 8.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006259/0.1302, allocations: 483.1 kB / 0.5194 GB, free: 8.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.1303, allocations: 41.12 kB / 0.5194 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003319/0.1307, allocations: 199.4 kB / 0.5196 GB, free: 8.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004217/0.1311, allocations: 243.1 kB / 0.5199 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.263e-05/0.1312, allocations: 24 kB / 0.5199 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.357e-05/0.1312, allocations: 24 kB / 0.5199 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001732/0.1314, allocations: 123.6 kB / 0.52 GB, free: 7.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.1315, allocations: 123.2 kB / 0.5202 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.1319, allocations: 302.6 kB / 0.5204 GB, free: 7.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1319, allocations: 8 kB / 0.5204 GB, free: 7.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1319, allocations: 0 / 0.5204 GB, free: 7.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.1319, allocations: 0 / 0.5204 GB, free: 7.242 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.002346/0.1343, allocations: 0.8233 MB / 0.5213 GB, free: 6.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1343, allocations: 8.625 kB / 0.5213 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1344, allocations: 36.7 kB / 0.5213 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.1357, allocations: 464 kB / 0.5217 GB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1357, allocations: 16.31 kB / 0.5218 GB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.878e-05/0.1357, allocations: 20.38 kB / 0.5218 GB, free: 5.805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003951/0.1361, allocations: 205.4 kB / 0.522 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.1361, allocations: 0 / 0.522 GB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.1362, allocations: 4 kB / 0.522 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1362, allocations: 4 kB / 0.522 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.1366, allocations: 219.8 kB / 0.5222 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.138, allocations: 0.7109 MB / 0.5229 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007074/0.1387, allocations: 286.4 kB / 0.5232 GB, free: 4.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.1389, allocations: 128.8 kB / 0.5233 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.1389, allocations: 0 / 0.5233 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1389, allocations: 34.56 kB / 0.5233 GB, free: 4.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.232e-06/0.1389, allocations: 0 / 0.5233 GB, free: 4.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.00152/0.1405, allocations: 0.5907 MB / 0.5239 GB, free: 3.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.1405, allocations: 51.41 kB / 0.5239 GB, free: 3.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001136/0.1416, allocations: 472.3 kB / 0.5244 GB, free: 2.996 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.039e-05/0.1417, allocations: 29.7 kB / 0.5244 GB, free: 2.961 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.1418, allocations: 176.5 kB / 0.5246 GB, free: 2.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.1419, allocations: 91.22 kB / 0.5247 GB, free: 2.691 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.942e-05/0.142, allocations: 45.64 kB / 0.5247 GB, free: 2.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1422, allocations: 354.7 kB / 0.5251 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.1424, allocations: 99.94 kB / 0.5251 GB, free: 2.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.1426, allocations: 137.5 kB / 0.5253 GB, free: 2.047 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/0.1449, allocations: 0.6972 MB / 0.526 GB, free: 1.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1449, allocations: 0 / 0.526 GB, free: 1.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008393/0.1457, allocations: 422 kB / 0.5264 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1457, allocations: 7.984 kB / 0.5264 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1457, allocations: 0 / 0.5264 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000248/0.146, allocations: 64.75 kB / 0.5264 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.1462, allocations: 47.91 kB / 0.5265 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001818/0.148, allocations: 1.653 MB / 0.5281 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.1485, allocations: 87.8 kB / 0.5282 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.1485, allocations: 4 kB / 0.5282 GB, free: 14.92 MB / 398.1 MB Warning: Assuming fixed start value for the following 7 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] H.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.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: 2 * 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 (27): * Single equations (assignments): 26 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002661/0.1488, allocations: 175.7 kB / 0.5283 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.798e-05/0.1489, allocations: 27.81 kB / 0.5284 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.149, allocations: 55.09 kB / 0.5284 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.149, allocations: 0 / 0.5284 GB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.149, allocations: 4 kB / 0.5284 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.149, allocations: 3.984 kB / 0.5284 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004833/0.1495, allocations: 377.4 kB / 0.5288 GB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.1495, allocations: 8 kB / 0.5288 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.1497, allocations: 31.92 kB / 0.5288 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/0.1499, allocations: 60.8 kB / 0.5289 GB, free: 14.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.15, allocations: 8 kB / 0.5289 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.1516, allocations: 1.668 MB / 0.5305 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1516, allocations: 0 / 0.5305 GB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009862/0.1526, allocations: 0.5896 MB / 0.5311 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.1527, allocations: 120.9 kB / 0.5312 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.163e-05/0.1528, allocations: 12.17 kB / 0.5312 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004902/0.1533, allocations: 59.91 kB / 0.5313 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.245e-05/0.1533, allocations: 19.98 kB / 0.5313 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.1533, allocations: 7.984 kB / 0.5313 GB, free: 11.47 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001015/0.1544, allocations: 374.8 kB / 0.5317 GB, free: 11.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1544, allocations: 0 / 0.5317 GB, free: 11.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000364/0.1547, allocations: 63.94 kB / 0.5317 GB, free: 11.04 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * 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 (19): * Single equations (assignments): 18 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000138/0.1549, allocations: 107.2 kB / 0.5318 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008149/0.1557, allocations: 398.3 kB / 0.5322 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1557, allocations: 0 / 0.5322 GB, free: 10.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004438/0.1561, allocations: 269.7 kB / 0.5325 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.1566, allocations: 55.28 kB / 0.5325 GB, free: 10.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.158, allocations: 0.721 MB / 0.5332 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.1585, allocations: 0.8028 MB / 0.534 GB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000174/0.1587, allocations: 70.22 kB / 0.5341 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.322e-05/0.1588, allocations: 27.38 kB / 0.5341 GB, free: 8.527 MB / 398.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1588, allocations: 0 / 0.5341 GB, free: 8.527 MB / 398.1 MB Notification: Performance of Templates: time 0.00855/0.1673, allocations: 3.582 MB / 0.5376 GB, free: 4.949 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.makefile [Timeout 660] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.968363529071212] Failed to read output from testmodel.py, exit status != 0: 0.17573512718081474 0.190216198 0.055215935 Calling exit ...