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.007089/0.007089, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001104/0.001104, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2299/0.2299, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 66.27 kB / 437.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1088, allocations: 54.97 MB / 492 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002068/0.1109, allocations: 1.207 MB / 493.2 MB, free: 32 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.1127, allocations: 1.354 MB / 494.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.1128, allocations: 4 kB / 494.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004064/0.1132, allocations: 83.53 kB / 494.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002428/0.1135, allocations: 99.52 kB / 494.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.1138, allocations: 167.7 kB / 494.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.1142, allocations: 475.1 kB / 495.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.1144, allocations: 65.14 kB / 495.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002331/0.1147, allocations: 195.4 kB / 495.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002917/0.115, allocations: 207.3 kB / 495.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.316e-05/0.115, allocations: 24 kB / 495.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.317e-05/0.1151, allocations: 24 kB / 495.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.1152, allocations: 123.6 kB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.1154, allocations: 135.1 kB / 496.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.1157, allocations: 294.9 kB / 496.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1157, allocations: 4 kB / 496.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1157, allocations: 0 / 496.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1157, allocations: 0 / 496.4 MB, free: 12.79 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.001928/0.1176, allocations: 0.8099 MB / 497.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.1177, allocations: 8.031 kB / 497.3 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.378e-05/0.1177, allocations: 36.5 kB / 497.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/0.1188, allocations: 459.8 kB / 497.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.1188, allocations: 24.17 kB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1189, allocations: 20.28 kB / 497.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003557/0.1192, allocations: 193.7 kB / 498 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1193, allocations: 0 / 498 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.1193, allocations: 8 kB / 498 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.1193, allocations: 4 kB / 498 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003893/0.1197, allocations: 211.8 kB / 498.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.1209, allocations: 0.7108 MB / 498.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007148/0.1216, allocations: 294.4 kB / 499.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.1218, allocations: 132.7 kB / 499.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.445e-05/0.1218, allocations: 7.938 kB / 499.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.1219, allocations: 30.56 kB / 499.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.272e-06/0.1219, allocations: 0 / 499.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.00148/0.1234, allocations: 0.5901 MB / 500 MB, free: 9.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.1234, allocations: 55.41 kB / 0.4883 GB, free: 9.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.1245, allocations: 472.3 kB / 0.4887 GB, free: 8.547 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.1245, allocations: 29.7 kB / 0.4888 GB, free: 8.512 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1246, allocations: 172.4 kB / 0.4889 GB, free: 8.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.751e-05/0.1247, allocations: 82.8 kB / 0.489 GB, free: 8.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.086e-05/0.1248, allocations: 49.7 kB / 0.4891 GB, free: 8.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.125, allocations: 346.7 kB / 0.4894 GB, free: 7.855 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.1251, allocations: 103.9 kB / 0.4895 GB, free: 7.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1254, allocations: 137.6 kB / 0.4896 GB, free: 7.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002041/0.1274, allocations: 0.7101 MB / 0.4903 GB, free: 6.895 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1274, allocations: 0 / 0.4903 GB, free: 6.895 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007163/0.1282, allocations: 421.9 kB / 0.4907 GB, free: 6.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1282, allocations: 4 kB / 0.4907 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.1282, allocations: 0 / 0.4907 GB, free: 6.469 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/0.1284, allocations: 64.75 kB / 0.4908 GB, free: 6.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.1286, allocations: 43.91 kB / 0.4908 GB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/0.1302, allocations: 1.657 MB / 0.4924 GB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004394/0.1306, allocations: 79.84 kB / 0.4925 GB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.1307, allocations: 4 kB / 0.4925 GB, free: 4.484 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.0002132/0.1309, allocations: 191.5 kB / 0.4927 GB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/0.1309, allocations: 27.62 kB / 0.4927 GB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001268/0.1311, allocations: 51.17 kB / 0.4928 GB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-06/0.1311, allocations: 0 / 0.4928 GB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.1311, allocations: 4 kB / 0.4928 GB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1311, allocations: 3.984 kB / 0.4928 GB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000421/0.1315, allocations: 365.2 kB / 0.4931 GB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1315, allocations: 8 kB / 0.4931 GB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.1318, allocations: 31.98 kB / 0.4932 GB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001987/0.132, allocations: 56.8 kB / 0.4932 GB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.132, allocations: 8.125 kB / 0.4932 GB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001672/0.1337, allocations: 1.669 MB / 0.4949 GB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.1337, allocations: 0 / 0.4949 GB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009692/0.1347, allocations: 0.5964 MB / 0.4955 GB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.1348, allocations: 112.7 kB / 0.4956 GB, free: 1.137 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.1349, allocations: 11.98 kB / 0.4956 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/0.1353, allocations: 59.91 kB / 0.4956 GB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.1354, allocations: 27.89 kB / 0.4957 GB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1354, allocations: 8 kB / 0.4957 GB, free: 1.031 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001028/0.1364, allocations: 370.8 kB / 0.496 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1365, allocations: 0 / 0.496 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.1368, allocations: 63.91 kB / 0.4961 GB, free: 0.6094 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.0002195/0.137, allocations: 103.2 kB / 0.4962 GB, free: 0.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007653/0.1378, allocations: 410.6 kB / 0.4966 GB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1378, allocations: 0 / 0.4966 GB, free: 88 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.1382, allocations: 262.5 kB / 0.4968 GB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.1386, allocations: 63.31 kB / 0.4969 GB, free: 15.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.14, allocations: 0.7031 MB / 0.4976 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.1404, allocations: 0.8106 MB / 0.4984 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001601/0.1406, allocations: 66.23 kB / 0.4984 GB, free: 14.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.132e-05/0.1407, allocations: 27.36 kB / 0.4984 GB, free: 14.09 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1407, allocations: 0 / 0.4984 GB, free: 14.09 MB / 382.1 MB Notification: Performance of Templates: time 0.007691/0.1484, allocations: 3.57 MB / 0.5019 GB, free: 10.53 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)