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.008815/0.008815, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.00167/0.00167, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2258/0.2258, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 60.25 kB / 437.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1135, allocations: 54.96 MB / 492 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002194/0.1158, allocations: 1.214 MB / 493.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1178, allocations: 1.346 MB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.118, allocations: 7.938 kB / 494.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004156/0.1184, allocations: 75.55 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003776/0.1188, allocations: 111.5 kB / 494.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003823/0.1192, allocations: 159.7 kB / 494.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005421/0.1198, allocations: 483.1 kB / 495.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.12, allocations: 53.16 kB / 495.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.1203, allocations: 195.4 kB / 495.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004008/0.1207, allocations: 223.2 kB / 495.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.552e-05/0.1208, allocations: 28 kB / 495.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.894e-05/0.1209, allocations: 24 kB / 495.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.121, allocations: 111.7 kB / 496 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1212, allocations: 139 kB / 496.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.1216, allocations: 294.9 kB / 496.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-05/0.1216, allocations: 7.938 kB / 496.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1216, allocations: 0 / 496.5 MB, free: 12.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.444e-05/0.1217, allocations: 0 / 496.5 MB, free: 12.73 MB / 366.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.002313/0.124, allocations: 0.8138 MB / 497.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.124, allocations: 12.03 kB / 497.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.688e-05/0.1241, allocations: 32.56 kB / 497.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.1253, allocations: 455.8 kB / 497.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.1254, allocations: 16.23 kB / 497.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.479e-05/0.1254, allocations: 20.28 kB / 497.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003882/0.1258, allocations: 201.6 kB / 498 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.1258, allocations: 0 / 498 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.385e-05/0.1259, allocations: 4 kB / 498 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1259, allocations: 4 kB / 498 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.1263, allocations: 211.8 kB / 498.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.1276, allocations: 0.7108 MB / 498.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006484/0.1283, allocations: 300.7 kB / 499.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.1285, allocations: 124.8 kB / 499.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.1285, allocations: 3.938 kB / 499.3 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.1286, allocations: 38.55 kB / 499.4 MB, free: 9.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.383e-06/0.1286, allocations: 4 kB / 499.4 MB, free: 9.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001411/0.13, allocations: 0.5872 MB / 500 MB, free: 9.031 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.13, allocations: 59.34 kB / 0.4883 GB, free: 8.961 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.1311, allocations: 468.3 kB / 0.4888 GB, free: 8.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.861e-05/0.1312, allocations: 33.7 kB / 0.4888 GB, free: 8.453 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001441/0.1313, allocations: 168.4 kB / 0.489 GB, free: 8.285 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.142e-05/0.1314, allocations: 86.8 kB / 0.489 GB, free: 8.199 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.887e-05/0.1315, allocations: 41.7 kB / 0.4891 GB, free: 8.152 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1317, allocations: 350.8 kB / 0.4894 GB, free: 7.801 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.1319, allocations: 107.9 kB / 0.4895 GB, free: 7.695 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.1321, allocations: 137.6 kB / 0.4896 GB, free: 7.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.1342, allocations: 0.7092 MB / 0.4903 GB, free: 6.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1342, allocations: 3.938 kB / 0.4903 GB, free: 6.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007762/0.135, allocations: 413.9 kB / 0.4907 GB, free: 6.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.135, allocations: 8 kB / 0.4907 GB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.135, allocations: 0 / 0.4907 GB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.1353, allocations: 68.77 kB / 0.4908 GB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.1356, allocations: 43.92 kB / 0.4908 GB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.1371, allocations: 1.661 MB / 0.4925 GB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004605/0.1376, allocations: 71.78 kB / 0.4925 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.1376, allocations: 8 kB / 0.4925 GB, free: 4.426 MB / 366.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.0003188/0.1379, allocations: 192.7 kB / 0.4927 GB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.138, allocations: 31.62 kB / 0.4928 GB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.1381, allocations: 47.17 kB / 0.4928 GB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1381, allocations: 4 kB / 0.4928 GB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1381, allocations: 0 / 0.4928 GB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.1382, allocations: 0 / 0.4928 GB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00042/0.1386, allocations: 377.2 kB / 0.4932 GB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1386, allocations: 0 / 0.4932 GB, free: 3.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.1388, allocations: 31.92 kB / 0.4932 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.139, allocations: 60.81 kB / 0.4933 GB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.1391, allocations: 11.98 kB / 0.4933 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001361/0.1404, allocations: 1.669 MB / 0.4949 GB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.1405, allocations: 3.984 kB / 0.4949 GB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009846/0.1414, allocations: 0.5815 MB / 0.4955 GB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.1416, allocations: 120.7 kB / 0.4956 GB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.1416, allocations: 4 kB / 0.4956 GB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000502/0.1422, allocations: 71.95 kB / 0.4957 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.1422, allocations: 11.98 kB / 0.4957 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.1423, allocations: 8 kB / 0.4957 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001069/0.1433, allocations: 374.8 kB / 0.496 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1433, allocations: 0 / 0.496 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003906/0.1437, allocations: 63.91 kB / 0.4961 GB, free: 0.5508 MB / 366.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.0001863/0.1439, allocations: 111.2 kB / 0.4962 GB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008744/0.1448, allocations: 402.6 kB / 0.4966 GB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1448, allocations: 0 / 0.4966 GB, free: 28 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004748/0.1453, allocations: 266.6 kB / 0.4968 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004996/0.1458, allocations: 65.25 kB / 0.4969 GB, free: 15.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1472, allocations: 0.7046 MB / 0.4976 GB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.1476, allocations: 0.8028 MB / 0.4984 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001683/0.1478, allocations: 70.23 kB / 0.4984 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.196e-05/0.1479, allocations: 27.44 kB / 0.4985 GB, free: 14.04 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1479, allocations: 0 / 0.4985 GB, free: 14.04 MB / 382.1 MB Notification: Performance of Templates: time 0.007569/0.1555, allocations: 3.486 MB / 0.5019 GB, free: 10.55 MB / 382.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 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)