Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001213, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001221/0.001221, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.36/1.36, 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.0957/0.0957, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 55.91 kB / 437.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.106, allocations: 54.95 MB / 492.7 MB, free: 4.809 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002272/0.1083, allocations: 1.018 MB / 493.7 MB, free: 3.789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001587/0.1099, allocations: 1.213 MB / 494.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.1101, allocations: 4 kB / 494.9 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003508/0.1104, allocations: 43.7 kB / 494.9 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.1106, allocations: 43.75 kB / 495 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.1109, allocations: 79.89 kB / 495.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000289/0.1112, allocations: 215.6 kB / 495.3 MB, free: 2.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.1113, allocations: 41.41 kB / 495.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.1115, allocations: 87.67 kB / 495.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.1117, allocations: 91.64 kB / 495.5 MB, free: 1.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.1117, allocations: 8 kB / 495.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.687e-05/0.1117, allocations: 12 kB / 495.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.1118, allocations: 39.91 kB / 495.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.785e-05/0.1119, allocations: 63.53 kB / 495.6 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.1121, allocations: 131.5 kB / 495.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1121, allocations: 0 / 495.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1121, allocations: 0 / 495.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.872e-06/0.1121, allocations: 0 / 495.7 MB, free: 1.707 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.00112/0.1133, allocations: 0.5104 MB / 496.2 MB, free: 1.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1133, allocations: 8.031 kB / 496.2 MB, free: 1.141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.161e-05/0.1134, allocations: 16.75 kB / 496.3 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006005/0.114, allocations: 300.5 kB / 496.6 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.114, allocations: 8.375 kB / 496.6 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.165e-05/0.114, allocations: 8.375 kB / 496.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002206/0.1143, allocations: 123 kB / 496.7 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1143, allocations: 4 kB / 496.7 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.1143, allocations: 8 kB / 496.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1143, allocations: 0 / 496.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.1145, allocations: 87.88 kB / 496.8 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007951/0.1153, allocations: 0.5866 MB / 497.4 MB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003686/0.1157, allocations: 138.4 kB / 497.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.507e-05/0.1158, allocations: 48.83 kB / 497.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.1158, allocations: 4 kB / 497.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1159, allocations: 30.56 kB / 497.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.1159, allocations: 0 / 497.6 MB, free: 15.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003635/0.1162, allocations: 173.6 kB / 497.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.1163, allocations: 51.41 kB / 497.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004737/0.1168, allocations: 254.6 kB / 498.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.1168, allocations: 29.7 kB / 498.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.759e-05/0.1169, allocations: 112 kB / 498.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.1169, allocations: 47.58 kB / 498.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.725e-05/0.117, allocations: 29.7 kB / 498.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.875e-05/0.1171, allocations: 326.8 kB / 498.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.651e-05/0.1172, allocations: 39.97 kB / 498.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.844e-05/0.1173, allocations: 70.42 kB / 498.7 MB, free: 14.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007843/0.1181, allocations: 250.3 kB / 498.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1181, allocations: 0 / 498.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002807/0.1184, allocations: 172.8 kB / 499.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1184, allocations: 4 kB / 499.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1184, allocations: 0 / 499.1 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.1184, allocations: 7.984 kB / 499.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.1186, allocations: 23.92 kB / 499.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1186, allocations: 7.938 kB / 499.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002029/0.1188, allocations: 31.88 kB / 499.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1188, allocations: 4.062 kB / 499.2 MB, free: 13.98 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.119, allocations: 137.7 kB / 499.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.119, allocations: 15.81 kB / 499.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.563e-05/0.1191, allocations: 25.77 kB / 499.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.1191, allocations: 0 / 499.4 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.1191, allocations: 3.938 kB / 499.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1191, allocations: 0 / 499.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.1194, allocations: 241.5 kB / 499.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1194, allocations: 0 / 499.6 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.1195, allocations: 16 kB / 499.6 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1195, allocations: 0 / 499.6 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.1195, allocations: 7.984 kB / 499.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1195, allocations: 0 / 499.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.1195, allocations: 3.938 kB / 499.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003783/0.1199, allocations: 279.2 kB / 499.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.956e-05/0.12, allocations: 96.95 kB / 0.4883 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.454e-05/0.1201, allocations: 8 kB / 0.4883 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.1203, allocations: 19.97 kB / 0.4883 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.1203, allocations: 11.92 kB / 0.4883 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.1204, allocations: 0 / 0.4883 GB, free: 13.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003911/0.1207, allocations: 203.1 kB / 0.4885 GB, free: 12.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1208, allocations: 0 / 0.4885 GB, free: 12.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.121, allocations: 20 kB / 0.4885 GB, free: 12.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.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 (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001203/0.1212, allocations: 103.2 kB / 0.4886 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002562/0.1214, allocations: 103.9 kB / 0.4887 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.1215, allocations: 0 / 0.4887 GB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.647e-05/0.1216, allocations: 52.03 kB / 0.4888 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/0.1219, allocations: 27.98 kB / 0.4888 GB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006623/0.1226, allocations: 366.8 kB / 0.4892 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000267/0.1229, allocations: 0.7278 MB / 0.4899 GB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.016e-05/0.1229, allocations: 15.44 kB / 0.4899 GB, free: 11.38 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1229, allocations: 4 kB / 0.4899 GB, free: 11.37 MB / 382.1 MB Notification: Performance of Templates: time 0.003748/0.1267, allocations: 1.926 MB / 0.4918 GB, free: 9.441 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)