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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,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=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 105.5 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001795/0.001795, allocations: 190.5 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09065/0.09065, allocations: 22.32 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 58.94 kB / 382.2 MB, free: 41.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1077, allocations: 54.96 MB / 437.2 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.003679/0.1114, allocations: 1.201 MB / 438.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002262/0.1137, allocations: 1.353 MB / 439.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.1139, allocations: 4 kB / 439.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.1144, allocations: 75.48 kB / 439.8 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002674/0.1147, allocations: 111.5 kB / 439.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003852/0.1151, allocations: 163.7 kB / 440.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005512/0.1157, allocations: 475.2 kB / 440.6 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001952/0.1159, allocations: 53.09 kB / 440.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.1162, allocations: 199.4 kB / 440.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003452/0.1165, allocations: 215.2 kB / 441 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.019e-05/0.1166, allocations: 27.94 kB / 441 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.574e-05/0.1166, allocations: 28 kB / 441.1 MB, free: 8.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.1168, allocations: 119.7 kB / 441.2 MB, free: 8.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.117, allocations: 123.2 kB / 441.3 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.1173, allocations: 302.8 kB / 441.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1173, allocations: 0 / 441.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1174, allocations: 0 / 441.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.926e-05/0.1174, allocations: 4 kB / 441.6 MB, free: 7.91 MB / 318.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.002258/0.1196, allocations: 0.8099 MB / 442.4 MB, free: 7.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1197, allocations: 12.03 kB / 442.4 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.112e-05/0.1198, allocations: 28.56 kB / 442.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00117/0.1209, allocations: 467.6 kB / 442.9 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.121, allocations: 12.31 kB / 442.9 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.658e-05/0.121, allocations: 16.38 kB / 442.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003649/0.1214, allocations: 201.5 kB / 443.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.1214, allocations: 0 / 443.1 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.1215, allocations: 8 kB / 443.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1215, allocations: 8 kB / 443.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000396/0.1219, allocations: 215.8 kB / 443.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.1231, allocations: 0.707 MB / 444.1 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.1238, allocations: 300.8 kB / 444.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.124, allocations: 120.8 kB / 444.5 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.124, allocations: 4 kB / 444.5 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.124, allocations: 34.56 kB / 444.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.1241, allocations: 4 kB / 444.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001392/0.1255, allocations: 0.5928 MB / 445.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.1255, allocations: 51.41 kB / 445.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.1266, allocations: 472.3 kB / 445.6 MB, free: 3.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1266, allocations: 29.7 kB / 445.7 MB, free: 3.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.1267, allocations: 168.4 kB / 445.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.1268, allocations: 86.75 kB / 445.9 MB, free: 3.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.135e-05/0.1269, allocations: 41.7 kB / 445.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.127, allocations: 350.7 kB / 446.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001703/0.1272, allocations: 119.7 kB / 446.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.1274, allocations: 131.6 kB / 446.5 MB, free: 2.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00201/0.1294, allocations: 0.6979 MB / 447.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1295, allocations: 0 / 447.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006872/0.1302, allocations: 417.9 kB / 447.6 MB, free: 1.605 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1302, allocations: 4 kB / 447.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.1302, allocations: 0 / 447.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.1304, allocations: 72.72 kB / 447.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.1306, allocations: 43.97 kB / 447.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.1321, allocations: 1.661 MB / 449.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.1326, allocations: 71.75 kB / 449.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.1326, allocations: 12 kB / 449.5 MB, free: 15.61 MB / 334.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.0002259/0.1328, allocations: 189.5 kB / 449.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.919e-05/0.1329, allocations: 31.62 kB / 449.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.859e-05/0.133, allocations: 55.11 kB / 449.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.133, allocations: 0 / 449.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.133, allocations: 4.188 kB / 449.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.1331, allocations: 7.984 kB / 449.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003928/0.1335, allocations: 377.3 kB / 450.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1335, allocations: 0 / 450.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.1337, allocations: 31.92 kB / 450.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001823/0.1339, allocations: 64.8 kB / 450.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.1339, allocations: 8 kB / 450.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001327/0.1353, allocations: 1.657 MB / 451.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1353, allocations: 192 / 451.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008491/0.1361, allocations: 0.5921 MB / 452.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/0.1363, allocations: 116.7 kB / 452.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/0.1363, allocations: 11.98 kB / 452.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.1368, allocations: 63.97 kB / 452.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.348e-05/0.1368, allocations: 23.83 kB / 452.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.1369, allocations: 4 kB / 452.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008822/0.1378, allocations: 374.8 kB / 453.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1378, allocations: 0 / 453.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003272/0.1381, allocations: 59.94 kB / 453.1 MB, free: 11.72 MB / 334.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.0001336/0.1382, allocations: 114.8 kB / 453.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006972/0.1389, allocations: 406.4 kB / 453.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.139, allocations: 0 / 453.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004104/0.1394, allocations: 262.5 kB / 453.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006571/0.14, allocations: 65.8 kB / 454 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.1413, allocations: 0.6993 MB / 454.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1417, allocations: 0.8028 MB / 455.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.1419, allocations: 74.22 kB / 455.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.759e-05/0.142, allocations: 23.38 kB / 455.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.142, allocations: 0 / 455.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of Templates: time 0.007195/0.1492, allocations: 3.425 MB / 459 MB, free: 5.793 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.makefile (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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)