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.001488/0.001487, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.00163/0.00163, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09559/0.09559, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002016, allocations: 61.5 kB / 382.2 MB, free: 41.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1104, allocations: 54.97 MB / 437.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002341/0.1128, allocations: 1.008 MB / 438.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1143, allocations: 1.209 MB / 439.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.26e-05/0.1144, allocations: 4 kB / 439.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.1147, allocations: 39.7 kB / 439.5 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.1149, allocations: 47.75 kB / 439.5 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001828/0.115, allocations: 79.89 kB / 439.6 MB, free: 9.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.1153, allocations: 215.5 kB / 439.8 MB, free: 9.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.1154, allocations: 37.47 kB / 439.8 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1155, allocations: 87.61 kB / 439.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.1157, allocations: 91.64 kB / 440 MB, free: 9.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.1157, allocations: 12 kB / 440 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.188e-05/0.1158, allocations: 12 kB / 440 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.856e-05/0.1158, allocations: 35.91 kB / 440.1 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.043e-05/0.1159, allocations: 67.58 kB / 440.1 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.1161, allocations: 131.4 kB / 440.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1161, allocations: 0 / 440.3 MB, free: 9.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1161, allocations: 4 kB / 440.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.1161, allocations: 0 / 440.3 MB, free: 9.188 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009623/0.1171, allocations: 0.5026 MB / 440.8 MB, free: 8.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.1171, allocations: 12.03 kB / 440.8 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.1171, allocations: 16.75 kB / 440.8 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005303/0.1177, allocations: 300.5 kB / 441.1 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.1177, allocations: 8.375 kB / 441.1 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.1177, allocations: 8.375 kB / 441.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.1179, allocations: 128.4 kB / 441.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.118, allocations: 7.938 kB / 441.2 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.118, allocations: 4 kB / 441.2 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.118, allocations: 4 kB / 441.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.1182, allocations: 83.94 kB / 441.3 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006633/0.1188, allocations: 0.5751 MB / 441.9 MB, free: 7.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.1192, allocations: 142.4 kB / 442 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.093e-05/0.1193, allocations: 48.83 kB / 442.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.1193, allocations: 0 / 442.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.1193, allocations: 34.56 kB / 442.1 MB, free: 7.145 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.1193, allocations: 4 kB / 442.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003292/0.1197, allocations: 165.6 kB / 442.3 MB, free: 6.973 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.1197, allocations: 51.41 kB / 442.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.1201, allocations: 254.8 kB / 442.6 MB, free: 6.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.1202, allocations: 34.08 kB / 442.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.265e-05/0.1202, allocations: 112 kB / 442.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.1203, allocations: 47.44 kB / 442.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.1203, allocations: 25.72 kB / 442.8 MB, free: 6.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.592e-05/0.1204, allocations: 330.8 kB / 443.1 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.983e-05/0.1205, allocations: 35.98 kB / 443.2 MB, free: 6.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.54e-05/0.1206, allocations: 62.55 kB / 443.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007183/0.1213, allocations: 258.2 kB / 443.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1214, allocations: 0 / 443.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002528/0.1216, allocations: 165.4 kB / 443.6 MB, free: 5.555 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1216, allocations: 10.5 kB / 443.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1216, allocations: 0 / 443.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.1217, allocations: 0 / 443.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.1218, allocations: 23.94 kB / 443.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1218, allocations: 3.938 kB / 443.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001855/0.122, allocations: 43.86 kB / 443.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.435e-05/0.122, allocations: 4 kB / 443.7 MB, free: 5.473 MB / 318.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.0001278/0.1221, allocations: 137.8 kB / 443.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.1222, allocations: 11.81 kB / 443.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.18e-05/0.1222, allocations: 21.41 kB / 443.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1222, allocations: 8 kB / 443.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1222, allocations: 7.875 kB / 443.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1223, allocations: 7.984 kB / 443.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002284/0.1225, allocations: 233.5 kB / 444.1 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1225, allocations: 0 / 444.1 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001198/0.1226, allocations: 12 kB / 444.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1226, allocations: 0 / 444.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.1227, allocations: 8 kB / 444.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1227, allocations: 0 / 444.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1227, allocations: 3.938 kB / 444.2 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003397/0.123, allocations: 283.2 kB / 444.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.156e-05/0.1231, allocations: 92.92 kB / 444.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.712e-05/0.1231, allocations: 8.031 kB / 444.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1233, allocations: 19.97 kB / 444.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.324e-05/0.1234, allocations: 11.92 kB / 444.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.1234, allocations: 4 kB / 444.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003436/0.1237, allocations: 199.2 kB / 444.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1238, allocations: 3.938 kB / 444.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002359/0.124, allocations: 16 kB / 444.8 MB, free: 4.316 MB / 318.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 9.91e-05/0.1241, allocations: 107.2 kB / 444.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002418/0.1243, allocations: 107 kB / 445 MB, free: 4.102 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1244, allocations: 8.062 kB / 445 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.058e-05/0.1245, allocations: 51.91 kB / 445 MB, free: 4.043 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003108/0.1248, allocations: 26.05 kB / 445.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005851/0.1254, allocations: 328.7 kB / 445.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.1258, allocations: 0.7318 MB / 446.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.405e-05/0.1259, allocations: 25.06 kB / 446.1 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.524e-05/0.1259, allocations: 15.44 kB / 446.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1259, allocations: 0 / 446.2 MB, free: 2.867 MB / 318.1 MB Notification: Performance of Templates: time 0.003677/0.1296, allocations: 1.302 MB / 447.5 MB, free: 1.57 MB / 318.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)