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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005173/0.005173, allocations: 103 kB / 15.73 MB, free: 6.059 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.001196/0.001196, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.332/1.332, allocations: 222.9 MB / 240.4 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.09425/0.09425, allocations: 22.33 MB / 312.9 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 55.91 kB / 436.5 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1013, allocations: 54.95 MB / 491.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.003459/0.1048, allocations: 1.41 MB / 492.9 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1076, allocations: 1.377 MB / 494.3 MB, free: 2.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.1079, allocations: 4 kB / 494.3 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004899/0.1084, allocations: 83.41 kB / 494.4 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003768/0.1088, allocations: 95.41 kB / 494.5 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000433/0.1093, allocations: 167.8 kB / 494.6 MB, free: 2.102 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005585/0.1098, allocations: 367.7 kB / 495 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.1101, allocations: 91.38 kB / 495.1 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.1103, allocations: 151.5 kB / 495.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.1106, allocations: 163.2 kB / 495.4 MB, free: 1.344 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.08e-05/0.1107, allocations: 20 kB / 495.4 MB, free: 1.324 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.528e-05/0.1108, allocations: 20 kB / 495.4 MB, free: 1.305 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.1109, allocations: 67.75 kB / 495.5 MB, free: 1.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.111, allocations: 127.1 kB / 495.6 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.1113, allocations: 259 kB / 495.9 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1113, allocations: 0 / 495.9 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.138e-06/0.1114, allocations: 0 / 495.9 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.1114, allocations: 3.938 kB / 495.9 MB, free: 0.8555 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001666/0.1131, allocations: 0.6852 MB / 496.5 MB, free: 124 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1131, allocations: 8.031 kB / 496.6 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.203e-05/0.1132, allocations: 62.67 kB / 496.6 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.321e-05/0.1133, allocations: 32.56 kB / 496.6 MB, free: 12 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008524/0.1141, allocations: 391.2 kB / 497 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.1142, allocations: 12.38 kB / 497 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.44e-05/0.1142, allocations: 20.38 kB / 497.1 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.1146, allocations: 219.2 kB / 497.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1146, allocations: 4 kB / 497.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.1146, allocations: 12 kB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1146, allocations: 7.938 kB / 497.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002888/0.1149, allocations: 152.8 kB / 497.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001329/0.1163, allocations: 0.9396 MB / 498.4 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005756/0.1169, allocations: 246.7 kB / 498.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.117, allocations: 80.81 kB / 498.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.117, allocations: 0 / 498.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.48e-05/0.1171, allocations: 34.56 kB / 498.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.032e-06/0.1171, allocations: 4 kB / 498.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005001/0.1176, allocations: 255.7 kB / 499 MB, free: 13.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.1176, allocations: 51.41 kB / 499 MB, free: 13.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007151/0.1183, allocations: 380.3 kB / 499.4 MB, free: 13.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1184, allocations: 29.7 kB / 499.4 MB, free: 13.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.1185, allocations: 176.2 kB / 499.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.904e-05/0.1186, allocations: 78.89 kB / 499.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.446e-05/0.1187, allocations: 41.7 kB / 499.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1188, allocations: 346.8 kB / 0.4884 GB, free: 12.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.1189, allocations: 60.2 kB / 0.4884 GB, free: 12.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.1191, allocations: 104.7 kB / 0.4885 GB, free: 12.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.1202, allocations: 381.1 kB / 0.4889 GB, free: 11.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1202, allocations: 0 / 0.4889 GB, free: 11.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004056/0.1206, allocations: 253 kB / 0.4891 GB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1206, allocations: 4 kB / 0.4891 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1206, allocations: 4 kB / 0.4891 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1207, allocations: 0 / 0.4891 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.1209, allocations: 47.86 kB / 0.4892 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1209, allocations: 0 / 0.4892 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.1212, allocations: 51.92 kB / 0.4892 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.1212, allocations: 8 kB / 0.4892 GB, free: 11.45 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.0001827/0.1214, allocations: 149.7 kB / 0.4894 GB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.1215, allocations: 31.62 kB / 0.4894 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.394e-05/0.1215, allocations: 34.31 kB / 0.4894 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1216, allocations: 3.938 kB / 0.4894 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1216, allocations: 0 / 0.4894 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1216, allocations: 7.984 kB / 0.4894 GB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003848/0.122, allocations: 313.5 kB / 0.4897 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.122, allocations: 0 / 0.4897 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000203/0.1222, allocations: 35.98 kB / 0.4898 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.1222, allocations: 0 / 0.4898 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.177e-05/0.1222, allocations: 4 kB / 0.4898 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.326e-06/0.1222, allocations: 7.922 kB / 0.4898 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1222, allocations: 7.875 kB / 0.4898 GB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.1228, allocations: 387 kB / 0.4902 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-05/0.1229, allocations: 112.7 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.123, allocations: 4 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.1233, allocations: 35.94 kB / 0.4903 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.1233, allocations: 15.97 kB / 0.4903 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.1233, allocations: 7.938 kB / 0.4903 GB, free: 10.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005747/0.1239, allocations: 283 kB / 0.4906 GB, free: 9.949 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1239, allocations: 0 / 0.4906 GB, free: 9.949 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002887/0.1242, allocations: 47.84 kB / 0.4906 GB, free: 9.902 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.0008128/0.1251, allocations: 0.9283 MB / 0.4916 GB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003507/0.1254, allocations: 175.8 kB / 0.4917 GB, free: 8.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1254, allocations: 256 / 0.4917 GB, free: 8.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.1256, allocations: 88.94 kB / 0.4918 GB, free: 8.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004303/0.1261, allocations: 56.36 kB / 0.4919 GB, free: 8.637 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004461/0.1305, allocations: 2.872 MB / 0.4947 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003873/0.1309, allocations: 0.7791 MB / 0.4954 GB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001295/0.1311, allocations: 38.45 kB / 0.4955 GB, free: 4.828 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.1312, allocations: 91.41 kB / 0.4956 GB, free: 4.738 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1312, allocations: 0 / 0.4956 GB, free: 4.738 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2416/0.3728, allocations: 5.071 MB / 0.5005 GB, free: 22.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.183, allocations: 5.547 kB / 0.5005 GB, free: 22.84 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)