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.00109/0.00109, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001117/0.001117, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.343/1.343, 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.1228/0.1228, allocations: 22.32 MB / 313.5 MB, free: 8.867 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 437.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09104, allocations: 54.95 MB / 492.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002345/0.09342, allocations: 1.414 MB / 494.1 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.09505, allocations: 1.373 MB / 495.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.09518, allocations: 7.938 kB / 495.5 MB, free: 1.926 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003661/0.09555, allocations: 75.44 kB / 495.5 MB, free: 1.852 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.09581, allocations: 95.39 kB / 495.6 MB, free: 1.758 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.09614, allocations: 171.7 kB / 495.8 MB, free: 1.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.09653, allocations: 371.7 kB / 496.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.09671, allocations: 83.41 kB / 496.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.0969, allocations: 155.4 kB / 496.4 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002199/0.09713, allocations: 163.2 kB / 496.6 MB, free: 0.832 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.09718, allocations: 20 kB / 496.6 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.776e-05/0.09722, allocations: 20 kB / 496.6 MB, free: 0.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.09733, allocations: 75.73 kB / 496.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.09744, allocations: 119.1 kB / 496.8 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.0977, allocations: 258.9 kB / 497 MB, free: 356 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.09771, allocations: 8 kB / 497 MB, free: 348 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09772, allocations: 4 kB / 497.1 MB, free: 344 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.09773, allocations: 0 / 497.1 MB, free: 344 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.001483/0.09922, allocations: 0.6852 MB / 497.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.09926, allocations: 12.03 kB / 497.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.877e-05/0.09934, allocations: 32.56 kB / 497.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007892/0.1001, allocations: 387.2 kB / 498.2 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.1002, allocations: 12.38 kB / 498.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.546e-05/0.1002, allocations: 20.38 kB / 498.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003487/0.1006, allocations: 223.4 kB / 498.4 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1006, allocations: 0 / 498.4 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1006, allocations: 8 kB / 498.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1006, allocations: 8 kB / 498.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002864/0.1009, allocations: 152.7 kB / 498.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.102, allocations: 0.9552 MB / 499.5 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/0.1026, allocations: 240.8 kB / 499.8 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.1028, allocations: 76.81 kB / 499.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.724e-05/0.1028, allocations: 4 kB / 499.8 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.1028, allocations: 38.56 kB / 499.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.1028, allocations: 3.938 kB / 499.9 MB, free: 13.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.000499/0.1033, allocations: 251.9 kB / 0.4884 GB, free: 13.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.1034, allocations: 55.41 kB / 0.4885 GB, free: 12.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006989/0.1041, allocations: 372.5 kB / 0.4888 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.1041, allocations: 29.7 kB / 0.4888 GB, free: 12.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.1042, allocations: 180.2 kB / 0.489 GB, free: 12.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.886e-05/0.1043, allocations: 66.92 kB / 0.4891 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.774e-05/0.1044, allocations: 49.64 kB / 0.4891 GB, free: 12.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.1045, allocations: 342.8 kB / 0.4895 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.1046, allocations: 64.2 kB / 0.4895 GB, free: 11.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001503/0.1048, allocations: 108.6 kB / 0.4896 GB, free: 11.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/0.1058, allocations: 373.6 kB / 0.49 GB, free: 11.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1058, allocations: 0 / 0.49 GB, free: 11.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003924/0.1062, allocations: 251.9 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1063, allocations: 4 kB / 0.4902 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1063, allocations: 4 kB / 0.4902 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1063, allocations: 3.938 kB / 0.4902 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.1065, allocations: 43.98 kB / 0.4903 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/0.1065, allocations: 3.938 kB / 0.4903 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.1068, allocations: 47.92 kB / 0.4903 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.1068, allocations: 15.94 kB / 0.4903 GB, free: 11 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.0001704/0.107, allocations: 149.7 kB / 0.4905 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.504e-05/0.1071, allocations: 27.62 kB / 0.4905 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.478e-05/0.1071, allocations: 38.31 kB / 0.4905 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1072, allocations: 0 / 0.4905 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1072, allocations: 4 kB / 0.4905 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.133e-05/0.1073, allocations: 108.8 kB / 0.4906 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/0.1073, allocations: 8 kB / 0.4907 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.1076, allocations: 27.95 kB / 0.4907 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.1077, allocations: 23.92 kB / 0.4907 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005706/0.1082, allocations: 304.6 kB / 0.491 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000558/0.1088, allocations: 487.8 kB / 0.4915 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001397/0.109, allocations: 93.3 kB / 0.4916 GB, free: 9.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000598/0.1096, allocations: 279 kB / 0.4918 GB, free: 9.434 MB / 382.1 MB Notification: Performance of Backend: time 4.91e-07/0.1096, allocations: 0 / 0.4918 GB, free: 9.434 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004972/0.1101, allocations: 194.3 kB / 0.492 GB, free: 9.234 MB / 382.1 MB Notification: Performance of SimCode: time 0.0009576/0.1111, allocations: 0.9547 MB / 0.4929 GB, free: 8.23 MB / 382.1 MB Notification: Performance of Templates: time 0.005692/0.1168, allocations: 2.753 MB / 0.4956 GB, free: 5.484 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)