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.001346/0.001346, allocations: 113.6 kB / 16.37 MB, free: 6.012 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.00131/0.00131, allocations: 188.2 kB / 17.31 MB, free: 5.613 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.355/1.355, 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.09147/0.09147, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 59.44 kB / 382.2 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1151, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002559/0.1177, allocations: 1.011 MB / 438.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.1193, allocations: 1.217 MB / 439.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1194, allocations: 0 / 439.4 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.1198, allocations: 43.7 kB / 439.5 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.12, allocations: 35.78 kB / 439.5 MB, free: 9.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.1202, allocations: 87.86 kB / 439.6 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.1205, allocations: 215.6 kB / 439.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1206, allocations: 29.48 kB / 439.8 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.1208, allocations: 83.73 kB / 439.9 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.1209, allocations: 95.58 kB / 440 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.121, allocations: 8 kB / 440 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.121, allocations: 12 kB / 440 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.914e-05/0.1211, allocations: 43.89 kB / 440.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.144e-05/0.1212, allocations: 55.61 kB / 440.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.1214, allocations: 143.4 kB / 440.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1214, allocations: 0 / 440.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1214, allocations: 0 / 440.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1214, allocations: 0 / 440.3 MB, free: 9.184 MB / 318.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.00108/0.1225, allocations: 0.5065 MB / 440.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.1225, allocations: 8.031 kB / 440.8 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.357e-05/0.1226, allocations: 16.75 kB / 440.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005588/0.1231, allocations: 292.6 kB / 441.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.1232, allocations: 8.375 kB / 441.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.1232, allocations: 8.375 kB / 441.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.1234, allocations: 132.4 kB / 441.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1234, allocations: 4 kB / 441.2 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.1235, allocations: 11.94 kB / 441.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1235, allocations: 0 / 441.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001976/0.1237, allocations: 91.88 kB / 441.3 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007644/0.1245, allocations: 0.579 MB / 441.9 MB, free: 7.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003596/0.1248, allocations: 134.5 kB / 442 MB, free: 7.234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.455e-05/0.1249, allocations: 44.84 kB / 442.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.125, allocations: 4.188 kB / 442.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.125, allocations: 38.48 kB / 442.1 MB, free: 7.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.125, allocations: 0 / 442.1 MB, free: 7.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003854/0.1254, allocations: 169.4 kB / 442.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.1254, allocations: 51.41 kB / 442.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.1259, allocations: 254.8 kB / 442.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1259, allocations: 29.7 kB / 442.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/0.126, allocations: 116 kB / 442.7 MB, free: 6.492 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.1261, allocations: 43.41 kB / 442.8 MB, free: 6.449 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.196e-05/0.1261, allocations: 29.7 kB / 442.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1262, allocations: 326.8 kB / 443.1 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.919e-05/0.1263, allocations: 39.97 kB / 443.2 MB, free: 6.047 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.436e-05/0.1264, allocations: 62.55 kB / 443.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008684/0.1273, allocations: 249.2 kB / 443.5 MB, free: 5.727 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1273, allocations: 4 kB / 443.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002767/0.1276, allocations: 161.4 kB / 443.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1276, allocations: 4 kB / 443.6 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1276, allocations: 0 / 443.6 MB, free: 5.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1277, allocations: 4 kB / 443.6 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.1278, allocations: 27.92 kB / 443.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.1278, allocations: 7.938 kB / 443.7 MB, free: 5.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.128, allocations: 35.88 kB / 443.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.128, allocations: 4 kB / 443.7 MB, free: 5.477 MB / 318.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.0001883/0.1282, allocations: 138.1 kB / 443.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.172e-05/0.1283, allocations: 15.81 kB / 443.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.663e-05/0.1283, allocations: 25.39 kB / 443.9 MB, free: 5.297 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1283, allocations: 3.984 kB / 443.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1284, allocations: 7.875 kB / 443.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1284, allocations: 0 / 443.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/0.1286, allocations: 241.5 kB / 444.1 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1286, allocations: 0 / 444.1 MB, free: 5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.1288, allocations: 23.92 kB / 444.2 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1288, allocations: 0 / 444.2 MB, free: 4.977 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.1288, allocations: 4 kB / 444.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1288, allocations: 0 / 444.2 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1288, allocations: 3.938 kB / 444.2 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003896/0.1292, allocations: 287.2 kB / 444.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/0.1293, allocations: 92.92 kB / 444.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.1294, allocations: 8 kB / 444.6 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.1296, allocations: 23.95 kB / 444.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.058e-05/0.1296, allocations: 7.938 kB / 444.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.1296, allocations: 0 / 444.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003822/0.13, allocations: 203.1 kB / 444.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.13, allocations: 0 / 444.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.1303, allocations: 20 kB / 444.8 MB, free: 4.305 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.x_scaled[1]) * 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 (10): * Single equations (assignments): 10 * 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.0001023/0.1304, allocations: 99.25 kB / 444.9 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.1307, allocations: 107.8 kB / 445 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1307, allocations: 0 / 445 MB, free: 4.094 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.505e-05/0.1308, allocations: 48.11 kB / 445 MB, free: 4.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.1311, allocations: 28.67 kB / 445.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006912/0.1318, allocations: 339.6 kB / 445.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003291/0.1322, allocations: 0.7279 MB / 446.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.493e-05/0.1323, allocations: 33.06 kB / 446.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.204e-05/0.1323, allocations: 15.44 kB / 446.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1323, allocations: 0 / 446.2 MB, free: 2.859 MB / 318.1 MB Notification: Performance of Templates: time 0.004161/0.1365, allocations: 1.299 MB / 447.5 MB, free: 1.566 MB / 318.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)