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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.1365/0.1365, allocations: 21.6 MB / 37.4 MB, free: 0.7383 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001806/0.001806, allocations: 188.5 kB / 43.64 MB, free: 3.555 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.1 MB / 254.8 MB, free: 14.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008924/0.0008924, allocations: 96.22 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 54.23 kB / 372.3 MB, free: 59.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0734/0.0746, allocations: 51.97 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002385/0.07703, allocations: 1.458 MB / 425.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.07876, allocations: 1.405 MB / 427.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002388/0.07902, allocations: 7.938 kB / 427.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004536/0.07949, allocations: 63.67 kB / 427.2 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003009/0.07983, allocations: 83.58 kB / 427.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.08014, allocations: 151.8 kB / 427.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003886/0.08054, allocations: 355.7 kB / 427.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.0807, allocations: 83.39 kB / 427.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.08087, allocations: 135.4 kB / 428 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.08106, allocations: 171.1 kB / 428.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.045e-05/0.08111, allocations: 12 kB / 428.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.18e-05/0.08115, allocations: 12 kB / 428.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.277e-05/0.08125, allocations: 67.73 kB / 428.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.196e-05/0.08133, allocations: 107.2 kB / 428.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.0815, allocations: 239 kB / 428.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.08151, allocations: 0 / 428.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.08152, allocations: 0 / 428.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.08153, allocations: 3.938 kB / 428.6 MB, free: 10.17 MB / 298.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.001405/0.08295, allocations: 0.6892 MB / 429.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.08299, allocations: 12.02 kB / 429.3 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.756e-05/0.08306, allocations: 36.47 kB / 429.4 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006598/0.08373, allocations: 383.2 kB / 429.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.08376, allocations: 8.375 kB / 429.7 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.08379, allocations: 20.38 kB / 429.8 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.08408, allocations: 218.8 kB / 430 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.0841, allocations: 0 / 430 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.08412, allocations: 8 kB / 430 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.08414, allocations: 4 kB / 430 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002542/0.0844, allocations: 152.8 kB / 430.1 MB, free: 8.547 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.0855, allocations: 0.9437 MB / 431.1 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004967/0.08601, allocations: 247.3 kB / 431.3 MB, free: 7.293 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.08614, allocations: 76.83 kB / 431.4 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.08616, allocations: 0 / 431.4 MB, free: 7.215 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.08619, allocations: 46.5 kB / 431.4 MB, free: 7.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.002e-06/0.08619, allocations: 0 / 431.4 MB, free: 7.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004462/0.08664, allocations: 257.5 kB / 431.7 MB, free: 6.902 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.08668, allocations: 51.41 kB / 431.7 MB, free: 6.84 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005848/0.08727, allocations: 376.4 kB / 432.1 MB, free: 6.457 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.0873, allocations: 29.7 kB / 432.1 MB, free: 6.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.324e-05/0.08738, allocations: 176.2 kB / 432.3 MB, free: 6.242 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.08742, allocations: 78.88 kB / 432.4 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.86e-05/0.08749, allocations: 49.56 kB / 432.4 MB, free: 6.109 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.176e-05/0.08754, allocations: 346.7 kB / 432.8 MB, free: 5.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.08766, allocations: 64.2 kB / 432.8 MB, free: 5.699 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/0.08777, allocations: 104.7 kB / 432.9 MB, free: 5.582 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009388/0.08872, allocations: 382.4 kB / 433.3 MB, free: 5.195 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.08873, allocations: 0 / 433.3 MB, free: 5.195 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003284/0.08907, allocations: 245 kB / 433.6 MB, free: 4.949 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.0891, allocations: 11.94 kB / 433.6 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.08911, allocations: 0 / 433.6 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.08913, allocations: 4 kB / 433.6 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.08931, allocations: 39.98 kB / 433.6 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.08933, allocations: 15.86 kB / 433.6 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.0896, allocations: 47.83 kB / 433.7 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.08962, allocations: 8 kB / 433.7 MB, free: 4.824 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.08976, allocations: 145.8 kB / 433.8 MB, free: 4.672 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.427e-05/0.08981, allocations: 27.72 kB / 433.8 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.304e-05/0.08988, allocations: 38.31 kB / 433.9 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.08989, allocations: 0 / 433.9 MB, free: 4.605 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.0899, allocations: 3.938 kB / 433.9 MB, free: 4.602 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.08991, allocations: 7.984 kB / 433.9 MB, free: 4.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002448/0.09016, allocations: 321.3 kB / 434.2 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.09017, allocations: 4 kB / 434.2 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.09035, allocations: 35.98 kB / 434.3 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.09036, allocations: 0 / 434.3 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.09038, allocations: 4 kB / 434.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.09039, allocations: 0 / 434.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.09039, allocations: 7.938 kB / 434.3 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.09299, allocations: 2.41 MB / 436.7 MB, free: 1.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.09307, allocations: 108.8 kB / 436.8 MB, free: 1.508 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.0931, allocations: 4 kB / 436.8 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.09339, allocations: 36 kB / 436.8 MB, free: 1.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.09345, allocations: 11.97 kB / 436.8 MB, free: 1.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.09346, allocations: 7.938 kB / 436.8 MB, free: 1.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004826/0.09395, allocations: 283 kB / 437.1 MB, free: 1.176 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09396, allocations: 0 / 437.1 MB, free: 1.176 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003527/0.09432, allocations: 67.84 kB / 437.2 MB, free: 1.109 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.755e-05/0.0944, allocations: 111.2 kB / 437.3 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002715/0.09468, allocations: 176.7 kB / 437.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.09469, allocations: 0 / 437.5 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.0948, allocations: 80.08 kB / 437.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.09519, allocations: 60.58 kB / 437.6 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008432/0.09604, allocations: 0.8117 MB / 438.4 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.09634, allocations: 0.7833 MB / 439.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.09648, allocations: 50.34 kB / 439.2 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.609e-05/0.09657, allocations: 23.44 kB / 439.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.09657, allocations: 0 / 439.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of Templates: time 0.005036/0.1016, allocations: 2.689 MB / 442 MB, free: 12.25 MB / 314.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)