Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 108.2 kB / 16.38 MB, free: 6.438 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.001033/0.001033, allocations: 190.2 kB / 17.32 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.257/1.257, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08801/0.08801, allocations: 22.32 MB / 313.5 MB, free: 8.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.0965, allocations: 54.95 MB / 492.6 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002331/0.09887, allocations: 1.407 MB / 494 MB, free: 3.391 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.1006, allocations: 1.377 MB / 495.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1007, allocations: 4 kB / 495.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000345/0.1011, allocations: 75.42 kB / 495.5 MB, free: 1.918 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.1013, allocations: 99.41 kB / 495.6 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003093/0.1016, allocations: 167.7 kB / 495.7 MB, free: 1.656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003689/0.102, allocations: 367.7 kB / 496.1 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1022, allocations: 91.41 kB / 496.2 MB, free: 1.207 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001607/0.1023, allocations: 147.4 kB / 496.3 MB, free: 1.062 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.1026, allocations: 171.1 kB / 496.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.356e-05/0.1026, allocations: 20 kB / 496.5 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.124e-05/0.1027, allocations: 20 kB / 496.5 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.784e-05/0.1028, allocations: 71.75 kB / 496.6 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1029, allocations: 115.2 kB / 496.7 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002404/0.1031, allocations: 266.8 kB / 497 MB, free: 420 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1031, allocations: 4 kB / 497 MB, free: 416 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1031, allocations: 0 / 497 MB, free: 416 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1031, allocations: 4 kB / 497 MB, free: 412 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.00141/0.1046, allocations: 0.6814 MB / 497.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.1046, allocations: 12.03 kB / 497.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.1047, allocations: 32.56 kB / 497.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007092/0.1054, allocations: 383.2 kB / 498.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.1054, allocations: 16.38 kB / 498.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.1055, allocations: 20.38 kB / 498.1 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.1058, allocations: 223.5 kB / 498.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1058, allocations: 0 / 498.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.1058, allocations: 7.938 kB / 498.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.1058, allocations: 8 kB / 498.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/0.1061, allocations: 152.7 kB / 498.5 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.1071, allocations: 0.9591 MB / 499.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005315/0.1077, allocations: 242.8 kB / 499.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1078, allocations: 72.83 kB / 499.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.1079, allocations: 4 kB / 499.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.1079, allocations: 38.5 kB / 499.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.433e-06/0.1079, allocations: 0 / 499.8 MB, free: 13.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004944/0.1084, allocations: 252 kB / 0.4883 GB, free: 13.13 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.1084, allocations: 63.39 kB / 0.4884 GB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006666/0.1091, allocations: 372.5 kB / 0.4888 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.1091, allocations: 25.7 kB / 0.4888 GB, free: 12.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1092, allocations: 176.2 kB / 0.489 GB, free: 12.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.128e-05/0.1093, allocations: 70.91 kB / 0.489 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.566e-05/0.1094, allocations: 45.7 kB / 0.4891 GB, free: 12.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1095, allocations: 342.8 kB / 0.4894 GB, free: 12.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001163/0.1096, allocations: 68.19 kB / 0.4895 GB, free: 11.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.1098, allocations: 104.7 kB / 0.4896 GB, free: 11.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009815/0.1107, allocations: 376.4 kB / 0.4899 GB, free: 11.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1108, allocations: 0 / 0.4899 GB, free: 11.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003683/0.1111, allocations: 259.8 kB / 0.4902 GB, free: 11.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1112, allocations: 4 kB / 0.4902 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1112, allocations: 4 kB / 0.4902 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1112, allocations: 0 / 0.4902 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.1114, allocations: 39.98 kB / 0.4902 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.1114, allocations: 11.86 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.1117, allocations: 47.92 kB / 0.4903 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.1117, allocations: 8 kB / 0.4903 GB, free: 11.07 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001558/0.1119, allocations: 149.7 kB / 0.4904 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.1119, allocations: 27.62 kB / 0.4904 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.402e-05/0.112, allocations: 42.31 kB / 0.4905 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.112, allocations: 7.938 kB / 0.4905 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.112, allocations: 3.938 kB / 0.4905 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.112, allocations: 0 / 0.4905 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003241/0.1124, allocations: 321.4 kB / 0.4908 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1124, allocations: 0 / 0.4908 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.1126, allocations: 31.98 kB / 0.4908 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1126, allocations: 0 / 0.4908 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.1126, allocations: 4 kB / 0.4908 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1126, allocations: 4 kB / 0.4908 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.1126, allocations: 11.94 kB / 0.4909 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004831/0.1131, allocations: 387 kB / 0.4912 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.495e-05/0.1132, allocations: 112.7 kB / 0.4913 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.1132, allocations: 4 kB / 0.4913 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.1135, allocations: 39.95 kB / 0.4914 GB, free: 9.855 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.1136, allocations: 11.92 kB / 0.4914 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.1136, allocations: 8 kB / 0.4914 GB, free: 9.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005538/0.1141, allocations: 283 kB / 0.4917 GB, free: 9.559 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1142, allocations: 0 / 0.4917 GB, free: 9.559 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002808/0.1144, allocations: 51.84 kB / 0.4917 GB, free: 9.508 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * 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.0001044/0.1145, allocations: 103.2 kB / 0.4918 GB, free: 9.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003271/0.1149, allocations: 167.8 kB / 0.492 GB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1149, allocations: 0 / 0.492 GB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.115, allocations: 89.88 kB / 0.4921 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.1154, allocations: 60.48 kB / 0.4921 GB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008765/0.1163, allocations: 0.5445 MB / 0.4926 GB, free: 8.508 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003072/0.1166, allocations: 0.7831 MB / 0.4934 GB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.174e-05/0.1167, allocations: 23.44 kB / 0.4934 GB, free: 7.676 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1167, allocations: 0 / 0.4934 GB, free: 7.676 MB / 382.1 MB Notification: Performance of Templates: time 0.004624/0.1214, allocations: 3.205 MB / 0.4966 GB, free: 4.469 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)