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.001498/0.001498, allocations: 110.9 kB / 16.41 MB, free: 6.492 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.001254/0.001255, allocations: 187 kB / 17.34 MB, free: 5.766 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08712/0.08712, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 54.95 MB / 492.7 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002776/0.1165, allocations: 1.406 MB / 494.1 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.1186, allocations: 1.377 MB / 495.4 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002484/0.1188, allocations: 8 kB / 495.5 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004686/0.1193, allocations: 75.42 kB / 495.5 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003532/0.1197, allocations: 103.4 kB / 495.6 MB, free: 1.805 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004318/0.1202, allocations: 163.8 kB / 495.8 MB, free: 1.645 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005372/0.1207, allocations: 363.7 kB / 496.1 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.1209, allocations: 91.41 kB / 496.2 MB, free: 1.199 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.1212, allocations: 151.4 kB / 496.4 MB, free: 1.051 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002861/0.1215, allocations: 159.2 kB / 496.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.231e-05/0.1216, allocations: 20 kB / 496.6 MB, free: 0.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.851e-05/0.1216, allocations: 20 kB / 496.6 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.1217, allocations: 75.73 kB / 496.7 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.1219, allocations: 119.2 kB / 496.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00032/0.1222, allocations: 270.8 kB / 497 MB, free: 408 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.1222, allocations: 4 kB / 497 MB, free: 404 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1222, allocations: 0 / 497 MB, free: 404 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.549e-05/0.1222, allocations: 0 / 497 MB, free: 404 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.001701/0.1239, allocations: 0.6852 MB / 497.7 MB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.124, allocations: 12.03 kB / 497.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.039e-05/0.1241, allocations: 32.56 kB / 497.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007806/0.1249, allocations: 387.2 kB / 498.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.1249, allocations: 12.38 kB / 498.2 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.455e-05/0.125, allocations: 20.38 kB / 498.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003472/0.1253, allocations: 219.5 kB / 498.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.1253, allocations: 3.938 kB / 498.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.1254, allocations: 8 kB / 498.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1254, allocations: 4 kB / 498.4 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003287/0.1257, allocations: 156.8 kB / 498.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.1269, allocations: 0.9552 MB / 499.5 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005793/0.1275, allocations: 238.8 kB / 499.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.1276, allocations: 80.81 kB / 499.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.1277, allocations: 0 / 499.8 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.1277, allocations: 38.5 kB / 499.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.132e-06/0.1277, allocations: 0 / 499.9 MB, free: 13.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004928/0.1282, allocations: 259.9 kB / 0.4884 GB, free: 13.11 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/0.1282, allocations: 51.41 kB / 0.4884 GB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006928/0.1289, allocations: 376.4 kB / 0.4888 GB, free: 12.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.129, allocations: 25.7 kB / 0.4888 GB, free: 12.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.1291, allocations: 176.2 kB / 0.489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.732e-05/0.1292, allocations: 74.91 kB / 0.4891 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.443e-05/0.1292, allocations: 45.64 kB / 0.4891 GB, free: 12.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1294, allocations: 342.8 kB / 0.4894 GB, free: 12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.1295, allocations: 64.2 kB / 0.4895 GB, free: 11.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/0.1297, allocations: 104.7 kB / 0.4896 GB, free: 11.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.1307, allocations: 380.8 kB / 0.49 GB, free: 11.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1307, allocations: 0 / 0.49 GB, free: 11.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000388/0.1311, allocations: 255.8 kB / 0.4902 GB, free: 11.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1311, allocations: 4 kB / 0.4902 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1311, allocations: 4 kB / 0.4902 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.1312, allocations: 0 / 0.4902 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.1313, allocations: 39.98 kB / 0.4903 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.1314, allocations: 11.86 kB / 0.4903 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002814/0.1317, allocations: 51.92 kB / 0.4903 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.1317, allocations: 8 kB / 0.4903 GB, free: 11.06 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.0001849/0.1319, allocations: 149.6 kB / 0.4905 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.807e-05/0.1319, allocations: 35.62 kB / 0.4905 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.439e-05/0.132, allocations: 42.25 kB / 0.4905 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.132, allocations: 0 / 0.4905 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.132, allocations: 3.938 kB / 0.4905 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.132, allocations: 0 / 0.4905 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003396/0.1324, allocations: 321.5 kB / 0.4908 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1324, allocations: 0 / 0.4908 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001884/0.1326, allocations: 31.98 kB / 0.4909 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1326, allocations: 0 / 0.4909 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.1326, allocations: 4 kB / 0.4909 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1326, allocations: 4 kB / 0.4909 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1326, allocations: 7.938 kB / 0.4909 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005191/0.1332, allocations: 387 kB / 0.4913 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.135e-05/0.1333, allocations: 116.7 kB / 0.4914 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.1333, allocations: 0 / 0.4914 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003384/0.1337, allocations: 43.95 kB / 0.4914 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.1337, allocations: 11.92 kB / 0.4914 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.1337, allocations: 8 kB / 0.4914 GB, free: 9.824 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005943/0.1343, allocations: 287 kB / 0.4917 GB, free: 9.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1343, allocations: 3.938 kB / 0.4917 GB, free: 9.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.1346, allocations: 47.84 kB / 0.4918 GB, free: 9.492 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.0001134/0.1348, allocations: 103.2 kB / 0.4919 GB, free: 9.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003417/0.1351, allocations: 171.8 kB / 0.492 GB, free: 9.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1351, allocations: 0 / 0.492 GB, free: 9.211 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.1353, allocations: 85.88 kB / 0.4921 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.1357, allocations: 58.73 kB / 0.4922 GB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009361/0.1367, allocations: 0.5446 MB / 0.4927 GB, free: 8.496 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.1371, allocations: 0.783 MB / 0.4935 GB, free: 7.688 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.549e-05/0.1372, allocations: 23.44 kB / 0.4935 GB, free: 7.664 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1372, allocations: 0 / 0.4935 GB, free: 7.664 MB / 382.1 MB Notification: Performance of Templates: time 0.00586/0.143, allocations: 3.226 MB / 0.4966 GB, free: 4.434 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)