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.005345/0.005345, allocations: 100.8 kB / 15.73 MB, free: 5.562 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.00112/0.00112, allocations: 195.2 kB / 16.67 MB, free: 5.504 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.328/1.328, allocations: 222.9 MB / 240.4 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.09183/0.09183, allocations: 22.32 MB / 312.9 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 63.89 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1102, allocations: 54.95 MB / 491.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.003572/0.1138, allocations: 1.399 MB / 492.9 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002832/0.1167, allocations: 1.381 MB / 494.3 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002931/0.117, allocations: 4 kB / 494.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005152/0.1176, allocations: 75.42 kB / 494.4 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004189/0.1181, allocations: 103.3 kB / 494.5 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006106/0.1187, allocations: 175.7 kB / 494.6 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007699/0.1195, allocations: 363.7 kB / 495 MB, free: 1.777 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003104/0.1198, allocations: 87.39 kB / 495.1 MB, free: 1.695 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002863/0.1201, allocations: 151.4 kB / 495.2 MB, free: 1.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002885/0.1204, allocations: 163.2 kB / 495.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-05/0.1205, allocations: 20 kB / 495.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.233e-05/0.1205, allocations: 20 kB / 495.4 MB, free: 1.348 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.1206, allocations: 67.75 kB / 495.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.1208, allocations: 131.1 kB / 495.6 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.1211, allocations: 258.9 kB / 495.9 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1212, allocations: 4 kB / 495.9 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1212, allocations: 0 / 495.9 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1212, allocations: 0 / 495.9 MB, free: 0.8945 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.001673/0.1229, allocations: 0.6852 MB / 496.5 MB, free: 164 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.1229, allocations: 8.031 kB / 496.6 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.227e-05/0.123, allocations: 58.67 kB / 496.6 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.625e-05/0.1231, allocations: 32.56 kB / 496.6 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008308/0.1239, allocations: 395.2 kB / 497 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.1239, allocations: 12.38 kB / 497 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.259e-05/0.124, allocations: 20.38 kB / 497.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.1243, allocations: 223.2 kB / 497.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1243, allocations: 0 / 497.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.1244, allocations: 12 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.1244, allocations: 4 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002876/0.1247, allocations: 152.8 kB / 497.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.1259, allocations: 0.9435 MB / 498.4 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005724/0.1265, allocations: 245.4 kB / 498.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.1266, allocations: 76.83 kB / 498.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.1266, allocations: 0 / 498.7 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.1267, allocations: 38.56 kB / 498.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.1267, allocations: 4 kB / 498.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004957/0.1272, allocations: 249.6 kB / 499 MB, free: 13.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.1272, allocations: 55.34 kB / 499 MB, free: 13.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006911/0.1279, allocations: 376.4 kB / 499.4 MB, free: 13.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.128, allocations: 29.7 kB / 499.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.1281, allocations: 172.2 kB / 499.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.114e-05/0.1282, allocations: 78.84 kB / 499.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.4e-05/0.1282, allocations: 45.7 kB / 499.7 MB, free: 12.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1284, allocations: 346.7 kB / 0.4883 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.1285, allocations: 64.2 kB / 0.4884 GB, free: 12.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.1287, allocations: 104.7 kB / 0.4885 GB, free: 12.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.1297, allocations: 381.2 kB / 0.4889 GB, free: 11.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1297, allocations: 0 / 0.4889 GB, free: 11.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003999/0.1301, allocations: 251.8 kB / 0.4891 GB, free: 11.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.1301, allocations: 8 kB / 0.4891 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1302, allocations: 0 / 0.4891 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.1302, allocations: 0 / 0.4891 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001937/0.1304, allocations: 51.86 kB / 0.4892 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.692e-06/0.1304, allocations: 0 / 0.4892 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002807/0.1307, allocations: 47.92 kB / 0.4892 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.1307, allocations: 8 kB / 0.4892 GB, free: 11.5 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.00018/0.1309, allocations: 149.7 kB / 0.4894 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.131, allocations: 31.62 kB / 0.4894 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.009e-05/0.131, allocations: 38.31 kB / 0.4894 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1311, allocations: 3.938 kB / 0.4894 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.1311, allocations: 4 kB / 0.4894 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1311, allocations: 3.984 kB / 0.4894 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.1314, allocations: 313.5 kB / 0.4897 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1314, allocations: 0 / 0.4897 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.1317, allocations: 35.98 kB / 0.4898 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.1317, allocations: 0 / 0.4898 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.1317, allocations: 4 kB / 0.4898 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.1317, allocations: 3.938 kB / 0.4898 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1317, allocations: 4 kB / 0.4898 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005169/0.1322, allocations: 393.2 kB / 0.4902 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.057e-05/0.1323, allocations: 116.7 kB / 0.4903 GB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.1324, allocations: 7.938 kB / 0.4903 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002784/0.1327, allocations: 39.89 kB / 0.4903 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/0.1327, allocations: 11.98 kB / 0.4903 GB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.1327, allocations: 4 kB / 0.4903 GB, free: 10.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005732/0.1333, allocations: 287 kB / 0.4906 GB, free: 9.988 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1333, allocations: 0 / 0.4906 GB, free: 9.988 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002928/0.1336, allocations: 47.84 kB / 0.4907 GB, free: 9.941 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.0008239/0.1344, allocations: 0.9205 MB / 0.4916 GB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000333/0.1348, allocations: 179.8 kB / 0.4917 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1348, allocations: 0 / 0.4917 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.1349, allocations: 83.91 kB / 0.4918 GB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003888/0.1353, allocations: 59.41 kB / 0.4919 GB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004131/0.1395, allocations: 2.865 MB / 0.4947 GB, free: 5.711 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.1398, allocations: 0.7791 MB / 0.4954 GB, free: 4.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.14, allocations: 46.27 kB / 0.4955 GB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.1401, allocations: 90.28 kB / 0.4955 GB, free: 4.777 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1401, allocations: 0 / 0.4955 GB, free: 4.777 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2378/0.3779, allocations: 5.071 MB / 0.5005 GB, free: 22.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.15, allocations: 4.594 kB / 0.5005 GB, free: 22.93 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)