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.009767/0.009767, allocations: 103.8 kB / 15.73 MB, free: 6.039 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.00226/0.00226, allocations: 194.1 kB / 16.67 MB, free: 5.973 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2124/0.2124, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 65.17 kB / 437.1 MB, free: 33.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1278, allocations: 54.96 MB / 492 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002604/0.1305, allocations: 1.408 MB / 493.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.1324, allocations: 1.373 MB / 494.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001603/0.1326, allocations: 4 kB / 494.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004559/0.133, allocations: 79.42 kB / 494.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.1333, allocations: 99.41 kB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003383/0.1337, allocations: 167.7 kB / 495.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004133/0.1341, allocations: 367.7 kB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.1343, allocations: 91.41 kB / 495.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00019/0.1345, allocations: 143.4 kB / 495.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002511/0.1348, allocations: 163.2 kB / 495.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.1348, allocations: 23.98 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.428e-05/0.1349, allocations: 20 kB / 496 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.135, allocations: 79.73 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1351, allocations: 115.2 kB / 496.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003192/0.1355, allocations: 270.8 kB / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1355, allocations: 0 / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1355, allocations: 0 / 496.4 MB, free: 12.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.301e-05/0.1355, allocations: 4 kB / 496.4 MB, free: 12.81 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.001671/0.1372, allocations: 0.6814 MB / 497.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.1372, allocations: 11.97 kB / 497.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.393e-05/0.1373, allocations: 36.47 kB / 497.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008441/0.1382, allocations: 391.2 kB / 497.5 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.935e-05/0.1382, allocations: 16.31 kB / 497.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.1383, allocations: 20.38 kB / 497.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004521/0.1387, allocations: 219.5 kB / 497.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1387, allocations: 0 / 497.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1388, allocations: 8 kB / 497.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.1388, allocations: 7.938 kB / 497.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003228/0.1391, allocations: 156.8 kB / 497.9 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.1405, allocations: 0.9397 MB / 498.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000614/0.1411, allocations: 246.7 kB / 499.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000134/0.1412, allocations: 76.83 kB / 499.2 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.1413, allocations: 0 / 499.2 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.1413, allocations: 46.48 kB / 499.2 MB, free: 9.785 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 2.275e-06/0.1413, allocations: 4 kB / 499.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005165/0.1418, allocations: 254.9 kB / 499.5 MB, free: 9.527 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.1419, allocations: 55.39 kB / 499.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007062/0.1426, allocations: 372.5 kB / 499.9 MB, free: 9.086 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.1426, allocations: 29.7 kB / 499.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.1428, allocations: 168.2 kB / 0.4884 GB, free: 8.883 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.1428, allocations: 74.94 kB / 0.4885 GB, free: 8.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-05/0.1429, allocations: 45.61 kB / 0.4885 GB, free: 8.758 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1431, allocations: 342.8 kB / 0.4888 GB, free: 8.414 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.1432, allocations: 68.19 kB / 0.4889 GB, free: 8.344 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.1433, allocations: 108.7 kB / 0.489 GB, free: 8.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.1444, allocations: 366.2 kB / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1444, allocations: 0 / 0.4893 GB, free: 7.852 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000409/0.1448, allocations: 253.9 kB / 0.4896 GB, free: 7.598 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1449, allocations: 8 kB / 0.4896 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1449, allocations: 0 / 0.4896 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1449, allocations: 4 kB / 0.4896 GB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.1451, allocations: 39.97 kB / 0.4896 GB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.405e-05/0.1451, allocations: 11.88 kB / 0.4896 GB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.1454, allocations: 55.83 kB / 0.4897 GB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.921e-05/0.1454, allocations: 8 kB / 0.4897 GB, free: 7.473 MB / 366.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.0001885/0.1456, allocations: 149.8 kB / 0.4899 GB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/0.1457, allocations: 27.72 kB / 0.4899 GB, free: 7.289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.097e-05/0.1458, allocations: 34.31 kB / 0.4899 GB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.1458, allocations: 0 / 0.4899 GB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1458, allocations: 19.81 kB / 0.4899 GB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1458, allocations: 0 / 0.4899 GB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.1462, allocations: 321.3 kB / 0.4902 GB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1462, allocations: 4 kB / 0.4902 GB, free: 6.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.1464, allocations: 27.98 kB / 0.4903 GB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1464, allocations: 0 / 0.4903 GB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.1464, allocations: 8 kB / 0.4903 GB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1464, allocations: 0 / 0.4903 GB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1464, allocations: 3.938 kB / 0.4903 GB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005522/0.147, allocations: 395.5 kB / 0.4907 GB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.6e-05/0.1471, allocations: 116.7 kB / 0.4908 GB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.1471, allocations: 4 kB / 0.4908 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.1474, allocations: 31.95 kB / 0.4908 GB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.1475, allocations: 15.92 kB / 0.4908 GB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.1475, allocations: 8 kB / 0.4908 GB, free: 6.238 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005685/0.1481, allocations: 283 kB / 0.4911 GB, free: 5.961 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1481, allocations: 0 / 0.4911 GB, free: 5.961 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002821/0.1484, allocations: 47.91 kB / 0.4911 GB, free: 5.914 MB / 366.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.000118/0.1485, allocations: 103.2 kB / 0.4912 GB, free: 5.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003428/0.1488, allocations: 175.9 kB / 0.4914 GB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1488, allocations: 0 / 0.4914 GB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.149, allocations: 83.91 kB / 0.4915 GB, free: 5.551 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004267/0.1494, allocations: 53.05 kB / 0.4915 GB, free: 5.504 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008705/0.1503, allocations: 0.5315 MB / 0.4921 GB, free: 4.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1506, allocations: 0.7792 MB / 0.4928 GB, free: 4.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.1508, allocations: 34.28 kB / 0.4928 GB, free: 4.105 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.408e-05/0.1508, allocations: 23.42 kB / 0.4929 GB, free: 4.082 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1508, allocations: 0 / 0.4929 GB, free: 4.082 MB / 366.1 MB Notification: Performance of Templates: time 0.005374/0.1562, allocations: 2.157 MB / 0.495 GB, free: 1.934 MB / 366.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)