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.001203/0.001203, allocations: 101.6 kB / 16.37 MB, free: 6.43 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.001212/0.001213, allocations: 195.8 kB / 17.31 MB, free: 5.781 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08948/0.08948, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 60.78 kB / 382.2 MB, free: 41.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1199, allocations: 54.96 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.003453/0.1234, allocations: 1.409 MB / 438.6 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00228/0.1257, allocations: 1.365 MB / 440 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.1258, allocations: 7.938 kB / 440 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004545/0.1263, allocations: 79.41 kB / 440.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.1266, allocations: 95.47 kB / 440.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004967/0.1271, allocations: 171.7 kB / 440.3 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005267/0.1277, allocations: 359.7 kB / 440.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.1279, allocations: 99.33 kB / 440.8 MB, free: 8.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.1282, allocations: 147.4 kB / 440.9 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.1285, allocations: 155.3 kB / 441.1 MB, free: 8.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.332e-05/0.1285, allocations: 23.94 kB / 441.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.768e-05/0.1286, allocations: 24 kB / 441.1 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.1287, allocations: 79.67 kB / 441.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.1289, allocations: 119.2 kB / 441.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003775/0.1293, allocations: 254.9 kB / 441.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1293, allocations: 0 / 441.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1293, allocations: 0 / 441.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.1293, allocations: 0 / 441.6 MB, free: 7.883 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002129/0.1315, allocations: 0.6969 MB / 442.3 MB, free: 7.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1315, allocations: 12.03 kB / 442.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.003e-05/0.1316, allocations: 32.56 kB / 442.3 MB, free: 7.094 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.1327, allocations: 379.3 kB / 442.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.1328, allocations: 16.38 kB / 442.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.1329, allocations: 20.38 kB / 442.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004798/0.1334, allocations: 223.4 kB / 442.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1334, allocations: 3.938 kB / 442.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.449e-05/0.1334, allocations: 4 kB / 442.9 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.1334, allocations: 8 kB / 442.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.1339, allocations: 152.8 kB / 443.1 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001628/0.1355, allocations: 0.9591 MB / 444 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008421/0.1364, allocations: 245 kB / 444.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.1366, allocations: 87 kB / 444.4 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.1366, allocations: 4 kB / 444.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1367, allocations: 30.56 kB / 444.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.844e-06/0.1367, allocations: 0 / 444.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0007537/0.1374, allocations: 253.6 kB / 444.7 MB, free: 4.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.1375, allocations: 55.41 kB / 444.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.1386, allocations: 376.4 kB / 445.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.1386, allocations: 29.7 kB / 445.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.1388, allocations: 176.2 kB / 445.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.732e-05/0.1389, allocations: 74.91 kB / 445.3 MB, free: 3.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.139, allocations: 41.72 kB / 445.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1392, allocations: 346.7 kB / 445.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.1394, allocations: 60.2 kB / 445.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001956/0.1396, allocations: 100.7 kB / 445.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/0.1411, allocations: 378.4 kB / 446.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1411, allocations: 0 / 446.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005983/0.1417, allocations: 251.2 kB / 446.5 MB, free: 2.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1417, allocations: 4 kB / 446.5 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.1418, allocations: 4.125 kB / 446.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/0.1418, allocations: 4 kB / 446.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/0.1421, allocations: 47.92 kB / 446.6 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.1421, allocations: 3.938 kB / 446.6 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004294/0.1425, allocations: 47.8 kB / 446.6 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.1426, allocations: 8 kB / 446.6 MB, free: 2.535 MB / 318.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.0002471/0.1428, allocations: 161.8 kB / 446.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.537e-05/0.1429, allocations: 27.62 kB / 446.8 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.76e-05/0.143, allocations: 38.31 kB / 446.8 MB, free: 2.305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.143, allocations: 4 kB / 446.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1431, allocations: 3.938 kB / 446.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1431, allocations: 3.984 kB / 446.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005381/0.1436, allocations: 317.4 kB / 447.2 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.1436, allocations: 0 / 447.2 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.144, allocations: 39.92 kB / 447.2 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.081e-06/0.144, allocations: 0 / 447.2 MB, free: 1.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.144, allocations: 11.88 kB / 447.2 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.144, allocations: 4 kB / 447.2 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.144, allocations: 7.922 kB / 447.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007637/0.1448, allocations: 381.6 kB / 447.6 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001271/0.145, allocations: 108.7 kB / 447.7 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.784e-05/0.145, allocations: 4 kB / 447.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004527/0.1455, allocations: 39.95 kB / 447.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.037e-05/0.1456, allocations: 15.86 kB / 447.8 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.1456, allocations: 7.984 kB / 447.8 MB, free: 1.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008669/0.1465, allocations: 283 kB / 448 MB, free: 1.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1465, allocations: 0 / 448 MB, free: 1.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004977/0.147, allocations: 47.84 kB / 448.1 MB, free: 0.9727 MB / 318.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.0001352/0.1471, allocations: 107.2 kB / 448.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004985/0.1476, allocations: 179.6 kB / 448.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1477, allocations: 0 / 448.4 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.1479, allocations: 79.91 kB / 448.5 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006271/0.1485, allocations: 55.31 kB / 448.5 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.1497, allocations: 0.5145 MB / 449 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.1502, allocations: 0.7833 MB / 449.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.1504, allocations: 46.34 kB / 449.8 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.619e-05/0.1505, allocations: 19.44 kB / 449.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1505, allocations: 0 / 449.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of Templates: time 0.007765/0.1583, allocations: 2.124 MB / 452 MB, free: 13.02 MB / 334.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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)