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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09349/0.09349, allocations: 21.61 MB / 36.56 MB, free: 1.055 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008897/0.00089, allocations: 183.4 kB / 42.82 MB, free: 3.781 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 223.2 MB / 272.1 MB, free: 1.422 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008232/0.0008231, allocations: 110.6 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003057/0.0003058, allocations: 8 kB / 397 MB, free: 46.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07311/0.07343, allocations: 55.83 MB / 452.9 MB, free: 6.66 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2414/0.3148, allocations: 80.27 MB / 0.5206 GB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001483/0.315, allocations: 72.73 kB / 0.5207 GB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01243/0.3275, allocations: 4.918 MB / 0.5255 GB, free: 12.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3275, allocations: 0 / 0.5255 GB, free: 12.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.3275, allocations: 11.38 kB / 0.5255 GB, free: 12.53 MB / 362.7 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.0008778/0.3284, allocations: 0.6187 MB / 0.5261 GB, free: 12.01 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.3284, allocations: 11.53 kB / 0.5261 GB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.219e-05/0.3285, allocations: 33.97 kB / 0.5262 GB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006447/0.3291, allocations: 382.9 kB / 0.5265 GB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.3292, allocations: 13.47 kB / 0.5265 GB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.3292, allocations: 20.72 kB / 0.5266 GB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.3295, allocations: 218.1 kB / 0.5268 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.3295, allocations: 3.938 kB / 0.5268 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.3295, allocations: 10.19 kB / 0.5268 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.3295, allocations: 7.766 kB / 0.5268 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.3298, allocations: 153.2 kB / 0.5269 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008506/0.3306, allocations: 0.9387 MB / 0.5279 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/0.3311, allocations: 237.9 kB / 0.5281 GB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.3311, allocations: 8.922 kB / 0.5281 GB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.558e-05/0.3312, allocations: 36 kB / 0.5281 GB, free: 10.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.332e-06/0.3312, allocations: 0 / 0.5281 GB, free: 10.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004075/0.3316, allocations: 259.8 kB / 0.5284 GB, free: 10.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.869e-05/0.3316, allocations: 51.41 kB / 0.5284 GB, free: 10.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005384/0.3322, allocations: 341.3 kB / 0.5287 GB, free: 10.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.3322, allocations: 29.14 kB / 0.5288 GB, free: 10.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.586e-05/0.3323, allocations: 175.6 kB / 0.5289 GB, free: 10.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.3323, allocations: 74.94 kB / 0.529 GB, free: 10.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.365e-06/0.3323, allocations: 3.938 kB / 0.529 GB, free: 10.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.935e-05/0.3324, allocations: 338.3 kB / 0.5293 GB, free: 9.875 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.3325, allocations: 57.64 kB / 0.5294 GB, free: 9.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3326, allocations: 113.1 kB / 0.5295 GB, free: 9.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.3327, allocations: 80.22 kB / 0.5296 GB, free: 9.781 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3327, allocations: 0 / 0.5296 GB, free: 9.781 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002926/0.333, allocations: 250.9 kB / 0.5298 GB, free: 9.703 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/0.333, allocations: 7.859 kB / 0.5298 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.333, allocations: 1.5 kB / 0.5298 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3331, allocations: 3.844 kB / 0.5298 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3332, allocations: 38.73 kB / 0.5299 GB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.3332, allocations: 3.938 kB / 0.5299 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.3335, allocations: 50.42 kB / 0.5299 GB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.415e-05/0.3335, allocations: 10.94 kB / 0.5299 GB, free: 9.668 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001251/0.3337, allocations: 157.2 kB / 0.5301 GB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.19e-05/0.3337, allocations: 27.34 kB / 0.5301 GB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.903e-05/0.3338, allocations: 43.3 kB / 0.5301 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3338, allocations: 0 / 0.5301 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.3338, allocations: 0 / 0.5301 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3338, allocations: 7.984 kB / 0.5302 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.334, allocations: 320.2 kB / 0.5305 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3341, allocations: 0.875 kB / 0.5305 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001818/0.3342, allocations: 33.98 kB / 0.5305 GB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3343, allocations: 0 / 0.5305 GB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.3343, allocations: 11.06 kB / 0.5305 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3343, allocations: 3.844 kB / 0.5305 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3343, allocations: 4 kB / 0.5305 GB, free: 9.246 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/0.3347, allocations: 387.2 kB / 0.5309 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.3348, allocations: 111.6 kB / 0.531 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.3348, allocations: 4.656 kB / 0.531 GB, free: 8.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002852/0.3351, allocations: 35.86 kB / 0.531 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.3351, allocations: 17.78 kB / 0.531 GB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.3352, allocations: 4.5 kB / 0.531 GB, free: 8.926 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005056/0.3357, allocations: 282.2 kB / 0.5313 GB, free: 8.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3357, allocations: 4 kB / 0.5313 GB, free: 8.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002603/0.336, allocations: 51.47 kB / 0.5314 GB, free: 8.785 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.941e-05/0.336, allocations: 110.7 kB / 0.5315 GB, free: 8.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002513/0.3363, allocations: 170.2 kB / 0.5316 GB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3363, allocations: 0 / 0.5316 GB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3364, allocations: 80.8 kB / 0.5317 GB, free: 8.648 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.3367, allocations: 56.14 kB / 0.5318 GB, free: 8.633 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006571/0.3374, allocations: 0.5957 MB / 0.5323 GB, free: 8.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.3375, allocations: 0.7918 MB / 0.5331 GB, free: 7.477 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000103/0.3376, allocations: 37.42 kB / 0.5332 GB, free: 7.465 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.253e-05/0.3377, allocations: 22.78 kB / 0.5332 GB, free: 7.457 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.3377, allocations: 0 / 0.5332 GB, free: 7.457 MB / 362.7 MB Notification: Performance of Templates: time 0.003671/0.3414, allocations: 1.914 MB / 0.535 GB, free: 6.539 MB / 362.7 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)