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.001342/0.001342, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001194/0.001194, allocations: 187 kB / 17.34 MB, free: 5.762 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.289/1.289, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08788/0.08788, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.88 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 54.96 MB / 492.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002538/0.1051, allocations: 1.207 MB / 493.9 MB, free: 3.539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.1069, allocations: 1.354 MB / 495.2 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.1071, allocations: 7.938 kB / 495.2 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004285/0.1076, allocations: 71.55 kB / 495.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002955/0.1079, allocations: 107.5 kB / 495.4 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003921/0.1083, allocations: 163.7 kB / 495.6 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.1089, allocations: 475.2 kB / 496 MB, free: 1.359 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.1091, allocations: 53.16 kB / 496.1 MB, free: 1.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003123/0.1094, allocations: 195.4 kB / 496.3 MB, free: 1.109 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.1098, allocations: 231.2 kB / 496.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.809e-05/0.1099, allocations: 24 kB / 496.5 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.474e-05/0.11, allocations: 24 kB / 496.5 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.1101, allocations: 107.7 kB / 496.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.1102, allocations: 131.1 kB / 496.8 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003156/0.1106, allocations: 298.9 kB / 497.1 MB, free: 316 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1106, allocations: 7.938 kB / 497.1 MB, free: 308 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1106, allocations: 0 / 497.1 MB, free: 308 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1106, allocations: 0 / 497.1 MB, free: 308 kB / 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.002185/0.1128, allocations: 0.806 MB / 497.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1129, allocations: 16.02 kB / 497.9 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.71e-05/0.1129, allocations: 32.56 kB / 497.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.1141, allocations: 459.7 kB / 498.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.1141, allocations: 24.22 kB / 498.4 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.1142, allocations: 16.31 kB / 498.4 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.1145, allocations: 197.6 kB / 498.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.1146, allocations: 4 kB / 498.6 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.798e-05/0.1146, allocations: 4 kB / 498.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.1146, allocations: 8 kB / 498.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003724/0.115, allocations: 207.8 kB / 498.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.1162, allocations: 0.7069 MB / 499.5 MB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.1168, allocations: 300.4 kB / 499.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001962/0.1171, allocations: 124.8 kB / 500 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.613e-05/0.1171, allocations: 0 / 500 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1171, allocations: 34.56 kB / 500 MB, free: 13.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.1171, allocations: 4 kB / 500 MB, free: 13.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001407/0.1185, allocations: 0.5994 MB / 0.4889 GB, free: 12.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.1186, allocations: 55.34 kB / 0.4889 GB, free: 12.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.1197, allocations: 472.3 kB / 0.4894 GB, free: 12.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.1197, allocations: 29.7 kB / 0.4894 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.1198, allocations: 168.5 kB / 0.4896 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.545e-05/0.1199, allocations: 94.64 kB / 0.4896 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.12, allocations: 45.7 kB / 0.4897 GB, free: 11.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.1201, allocations: 346.8 kB / 0.49 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.1203, allocations: 111.9 kB / 0.4901 GB, free: 11.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.1205, allocations: 133.6 kB / 0.4903 GB, free: 11.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.1226, allocations: 0.7017 MB / 0.4909 GB, free: 10.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1226, allocations: 3.938 kB / 0.4909 GB, free: 10.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007267/0.1234, allocations: 413.9 kB / 0.4913 GB, free: 9.988 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1234, allocations: 4 kB / 0.4913 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1234, allocations: 4 kB / 0.4913 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.1236, allocations: 72.7 kB / 0.4914 GB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002033/0.1239, allocations: 43.92 kB / 0.4915 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.1254, allocations: 1.657 MB / 0.4931 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004762/0.1259, allocations: 71.97 kB / 0.4931 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.1259, allocations: 12.06 kB / 0.4932 GB, free: 7.988 MB / 382.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.0002288/0.1261, allocations: 183.6 kB / 0.4933 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.485e-05/0.1262, allocations: 31.62 kB / 0.4934 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001097/0.1263, allocations: 51.17 kB / 0.4934 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1263, allocations: 7.938 kB / 0.4934 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.1263, allocations: 0 / 0.4934 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1263, allocations: 0 / 0.4934 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.1267, allocations: 373.2 kB / 0.4938 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1268, allocations: 0 / 0.4938 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.127, allocations: 39.91 kB / 0.4938 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/0.1272, allocations: 56.81 kB / 0.4939 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.1272, allocations: 15.98 kB / 0.4939 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.1286, allocations: 1.653 MB / 0.4955 GB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1286, allocations: 4.031 kB / 0.4955 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008754/0.1295, allocations: 0.5838 MB / 0.4961 GB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.07e-05/0.1296, allocations: 116.7 kB / 0.4962 GB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.43e-05/0.1296, allocations: 8 kB / 0.4962 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.1301, allocations: 67.97 kB / 0.4963 GB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/0.1302, allocations: 15.97 kB / 0.4963 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.1302, allocations: 8 kB / 0.4963 GB, free: 4.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009099/0.1311, allocations: 370.8 kB / 0.4966 GB, free: 4.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1311, allocations: 0 / 0.4966 GB, free: 4.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.1315, allocations: 63.94 kB / 0.4967 GB, free: 4.129 MB / 382.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.0001356/0.1316, allocations: 118.8 kB / 0.4968 GB, free: 4.008 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007076/0.1323, allocations: 406.6 kB / 0.4972 GB, free: 3.598 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1324, allocations: 4 kB / 0.4972 GB, free: 3.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003637/0.1327, allocations: 270.4 kB / 0.4975 GB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.1332, allocations: 59.56 kB / 0.4975 GB, free: 3.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.1344, allocations: 0.7401 MB / 0.4982 GB, free: 2.488 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.1348, allocations: 0.8067 MB / 0.499 GB, free: 1.652 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1349, allocations: 23.44 kB / 0.499 GB, free: 1.629 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1349, allocations: 0 / 0.499 GB, free: 1.629 MB / 382.1 MB Notification: Performance of Templates: time 0.2406/0.3755, allocations: 4.924 MB / 0.5038 GB, free: 21.35 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)