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.001544/0.001544, allocations: 114.6 kB / 16.42 MB, free: 6.02 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.001802/0.001802, allocations: 186.1 kB / 17.35 MB, free: 5.633 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.576/1.576, 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.09261/0.09261, allocations: 22.32 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 437.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08677, allocations: 54.94 MB / 492.7 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002148/0.08895, allocations: 1.021 MB / 493.7 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001346/0.09031, allocations: 1.217 MB / 494.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.359e-05/0.09039, allocations: 0 / 494.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002698/0.09067, allocations: 35.72 kB / 494.9 MB, free: 2.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.09084, allocations: 55.7 kB / 495 MB, free: 2.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.09105, allocations: 83.86 kB / 495.1 MB, free: 2.375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002617/0.09133, allocations: 219.6 kB / 495.3 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001073/0.09145, allocations: 33.42 kB / 495.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.09157, allocations: 87.67 kB / 495.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.09174, allocations: 87.64 kB / 495.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.09177, allocations: 12 kB / 495.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.172e-05/0.0918, allocations: 8 kB / 495.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.775e-05/0.09188, allocations: 47.89 kB / 495.6 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.941e-05/0.09195, allocations: 51.61 kB / 495.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.09211, allocations: 135.5 kB / 495.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.09212, allocations: 0 / 495.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09213, allocations: 0 / 495.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.09214, allocations: 7.938 kB / 495.7 MB, free: 1.691 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.001018/0.09317, allocations: 0.5066 MB / 496.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.09321, allocations: 11.97 kB / 496.3 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.09326, allocations: 16.75 kB / 496.3 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005521/0.09381, allocations: 296.5 kB / 496.6 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.377e-05/0.09384, allocations: 4.375 kB / 496.6 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.431e-05/0.09387, allocations: 12.38 kB / 496.6 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.09409, allocations: 127.2 kB / 496.7 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.09411, allocations: 0 / 496.7 MB, free: 0.625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.09413, allocations: 4 kB / 496.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.09414, allocations: 0 / 496.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001923/0.09433, allocations: 87.88 kB / 496.8 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007351/0.09508, allocations: 0.5907 MB / 497.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.09544, allocations: 134.5 kB / 497.5 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.09555, allocations: 57.02 kB / 497.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.09558, allocations: 3.938 kB / 497.6 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.0956, allocations: 34.56 kB / 497.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.843e-06/0.09561, allocations: 0 / 497.6 MB, free: 15.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003604/0.09597, allocations: 161.4 kB / 497.8 MB, free: 15.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.09601, allocations: 51.41 kB / 497.8 MB, free: 15.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004654/0.09648, allocations: 266.7 kB / 498.1 MB, free: 15.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.09651, allocations: 25.7 kB / 498.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.873e-05/0.09659, allocations: 116 kB / 498.2 MB, free: 14.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.288e-05/0.09662, allocations: 35.59 kB / 498.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.831e-05/0.09668, allocations: 25.72 kB / 498.3 MB, free: 14.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.09679, allocations: 330.8 kB / 498.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.585e-05/0.09688, allocations: 43.97 kB / 498.6 MB, free: 14.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.445e-05/0.09698, allocations: 66.48 kB / 498.7 MB, free: 14.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000741/0.09773, allocations: 252.8 kB / 499 MB, free: 14.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.09774, allocations: 0 / 499 MB, free: 14.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002705/0.09802, allocations: 169.4 kB / 499.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.09804, allocations: 4.375 kB / 499.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.09805, allocations: 0 / 499.1 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.09807, allocations: 4.062 kB / 499.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.09819, allocations: 27.92 kB / 499.2 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.09821, allocations: 3.938 kB / 499.2 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001969/0.09841, allocations: 35.8 kB / 499.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.09843, allocations: 8 kB / 499.2 MB, free: 13.97 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.0001346/0.09857, allocations: 133.8 kB / 499.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.09862, allocations: 15.8 kB / 499.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.09867, allocations: 17.41 kB / 499.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.09868, allocations: 4 kB / 499.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.09869, allocations: 0 / 499.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-05/0.09876, allocations: 100.8 kB / 499.5 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.09879, allocations: 8 kB / 499.5 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.09902, allocations: 19.97 kB / 499.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/0.09908, allocations: 15.92 kB / 499.5 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004332/0.09952, allocations: 228.9 kB / 499.7 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004064/0.09993, allocations: 382.4 kB / 0.4884 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.516e-05/0.1, allocations: 51.95 kB / 0.4884 GB, free: 12.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003905/0.1004, allocations: 195.2 kB / 0.4886 GB, free: 12.77 MB / 382.1 MB Notification: Performance of Backend: time 3.2e-07/0.1004, allocations: 0 / 0.4886 GB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004024/0.1009, allocations: 142.4 kB / 0.4888 GB, free: 12.62 MB / 382.1 MB Notification: Performance of SimCode: time 0.0007038/0.1016, allocations: 0.7677 MB / 0.4895 GB, free: 11.81 MB / 382.1 MB Notification: Performance of Templates: time 0.004119/0.1057, allocations: 1.673 MB / 0.4911 GB, free: 10.14 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)