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.001823/0.001822, allocations: 112.6 kB / 16.37 MB, free: 6 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.00208/0.002079, allocations: 196 kB / 17.31 MB, free: 5.613 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09074/0.09074, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 62.38 kB / 382.2 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09538, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.003032/0.09846, allocations: 1.206 MB / 438.4 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1006, allocations: 1.346 MB / 439.8 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.1008, allocations: 7.938 kB / 439.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004345/0.1013, allocations: 71.55 kB / 439.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004233/0.1017, allocations: 107.5 kB / 439.9 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.1021, allocations: 163.7 kB / 440.1 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005967/0.1027, allocations: 479.1 kB / 440.6 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.1029, allocations: 57.09 kB / 440.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003011/0.1032, allocations: 195.4 kB / 440.8 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.1036, allocations: 227.2 kB / 441 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.053e-05/0.1037, allocations: 27.94 kB / 441.1 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.016e-05/0.1038, allocations: 24 kB / 441.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.1039, allocations: 111.7 kB / 441.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.1041, allocations: 127.1 kB / 441.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.1044, allocations: 306.8 kB / 441.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1044, allocations: 0 / 441.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1044, allocations: 0 / 441.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1044, allocations: 0 / 441.6 MB, free: 7.832 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.002131/0.1066, allocations: 0.81 MB / 442.4 MB, free: 6.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.1066, allocations: 8.031 kB / 442.4 MB, free: 6.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.447e-05/0.1067, allocations: 36.55 kB / 442.5 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.1078, allocations: 459.6 kB / 442.9 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.1079, allocations: 12.38 kB / 442.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.1079, allocations: 20.36 kB / 443 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003577/0.1083, allocations: 201.5 kB / 443.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1083, allocations: 3.984 kB / 443.2 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.1083, allocations: 8 kB / 443.2 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.1083, allocations: 4 kB / 443.2 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003896/0.1087, allocations: 211.8 kB / 443.4 MB, free: 5.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.11, allocations: 0.7109 MB / 444.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007409/0.1108, allocations: 294.4 kB / 444.4 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.111, allocations: 121.4 kB / 444.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.111, allocations: 4 kB / 444.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.453e-05/0.111, allocations: 38.56 kB / 444.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.111, allocations: 3.938 kB / 444.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001479/0.1125, allocations: 0.5909 MB / 445.1 MB, free: 4.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.1126, allocations: 55.41 kB / 445.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.1136, allocations: 468.3 kB / 445.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.1136, allocations: 33.7 kB / 445.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1137, allocations: 168.4 kB / 445.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.1139, allocations: 86.75 kB / 445.9 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.186e-05/0.114, allocations: 45.7 kB / 446 MB, free: 3.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1142, allocations: 358.7 kB / 446.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.1144, allocations: 111.8 kB / 446.4 MB, free: 2.781 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.1146, allocations: 133.6 kB / 446.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.1167, allocations: 0.7002 MB / 447.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1168, allocations: 0 / 447.3 MB, free: 1.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000701/0.1175, allocations: 413.9 kB / 447.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1175, allocations: 8 kB / 447.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1175, allocations: 4.031 kB / 447.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002246/0.1177, allocations: 64.73 kB / 447.7 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.118, allocations: 51.86 kB / 447.8 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.1194, allocations: 1.661 MB / 449.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.1199, allocations: 75.84 kB / 449.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.245e-05/0.1199, allocations: 8 kB / 449.5 MB, free: 15.52 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.0002187/0.1201, allocations: 183.5 kB / 449.7 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.17e-05/0.1202, allocations: 35.61 kB / 449.7 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.813e-05/0.1203, allocations: 43.17 kB / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1203, allocations: 4 kB / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.1203, allocations: 0 / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1203, allocations: 0 / 449.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003948/0.1207, allocations: 373.3 kB / 450.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1208, allocations: 192 / 450.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.121, allocations: 43.91 kB / 450.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001861/0.1212, allocations: 60.81 kB / 450.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.1212, allocations: 11.98 kB / 450.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.1226, allocations: 1.653 MB / 451.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1226, allocations: 0 / 451.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008748/0.1235, allocations: 0.5854 MB / 452.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.1236, allocations: 120.7 kB / 452.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.178e-05/0.1237, allocations: 8.062 kB / 452.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004829/0.1242, allocations: 60.09 kB / 452.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.463e-05/0.1242, allocations: 23.83 kB / 452.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.636e-05/0.1243, allocations: 8 kB / 452.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009063/0.1252, allocations: 374.8 kB / 453.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1252, allocations: 0 / 453.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003368/0.1255, allocations: 67.94 kB / 453.2 MB, free: 11.64 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.0001256/0.1257, allocations: 111.2 kB / 453.3 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006859/0.1264, allocations: 409.2 kB / 453.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1264, allocations: 0 / 453.7 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000365/0.1267, allocations: 262.6 kB / 453.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.1272, allocations: 65.67 kB / 454 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.1284, allocations: 0.7031 MB / 454.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003751/0.1288, allocations: 0.8028 MB / 455.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001543/0.129, allocations: 66.23 kB / 455.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.1291, allocations: 23.44 kB / 455.6 MB, free: 9.141 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1291, allocations: 0 / 455.6 MB, free: 9.141 MB / 334.1 MB Notification: Performance of Templates: time 0.007284/0.1364, allocations: 3.425 MB / 459 MB, free: 5.719 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 gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)