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: "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) [/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.1163/0.1163, allocations: 21.62 MB / 36.57 MB, free: 1.066 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.001082/0.001082, allocations: 183.1 kB / 42.83 MB, free: 3.789 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.432/1.432, allocations: 223.2 MB / 272.1 MB, free: 1.746 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.001166/0.001166, allocations: 110.8 kB / 328.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003317, allocations: 8 kB / 397.1 MB, free: 46.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09314/0.09349, allocations: 55.83 MB / 452.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3146/0.4082, allocations: 80.26 MB / 0.5207 GB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.4085, allocations: 73.5 kB / 0.5208 GB, free: 12.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01421/0.4227, allocations: 4.915 MB / 0.5256 GB, free: 12.16 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.4228, allocations: 0 / 0.5256 GB, free: 12.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.302e-05/0.4228, allocations: 15.75 kB / 0.5256 GB, free: 12.15 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.00101/0.4238, allocations: 0.625 MB / 0.5262 GB, free: 11.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.4239, allocations: 7.656 kB / 0.5262 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.855e-05/0.4239, allocations: 57.38 kB / 0.5263 GB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.424, allocations: 31.06 kB / 0.5263 GB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007239/0.4247, allocations: 388 kB / 0.5267 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.4247, allocations: 11.16 kB / 0.5267 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.4248, allocations: 17.62 kB / 0.5267 GB, free: 11.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.4251, allocations: 213.9 kB / 0.5269 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.4251, allocations: 11.66 kB / 0.5269 GB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.4251, allocations: 12.3 kB / 0.5269 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.4251, allocations: 3.75 kB / 0.5269 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.4254, allocations: 152.7 kB / 0.5271 GB, free: 11.1 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009084/0.4263, allocations: 0.9392 MB / 0.528 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004896/0.4268, allocations: 239.9 kB / 0.5282 GB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.4268, allocations: 7.766 kB / 0.5282 GB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.4269, allocations: 37.56 kB / 0.5283 GB, free: 10.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.563e-06/0.4269, allocations: 0 / 0.5283 GB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0004219/0.4273, allocations: 246.5 kB / 0.5285 GB, free: 10.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.4273, allocations: 55.25 kB / 0.5285 GB, free: 10.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006409/0.428, allocations: 345 kB / 0.5289 GB, free: 9.969 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.428, allocations: 26.73 kB / 0.5289 GB, free: 9.938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.99e-05/0.4281, allocations: 182.7 kB / 0.5291 GB, free: 9.816 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/0.4281, allocations: 70.39 kB / 0.5291 GB, free: 9.766 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-06/0.4282, allocations: 8.875 kB / 0.5291 GB, free: 9.762 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.553e-05/0.4282, allocations: 341.4 kB / 0.5295 GB, free: 9.438 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.4284, allocations: 58.64 kB / 0.5295 GB, free: 9.426 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001416/0.4285, allocations: 104.9 kB / 0.5296 GB, free: 9.367 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.4286, allocations: 81.64 kB / 0.5297 GB, free: 9.355 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4287, allocations: 0 / 0.5297 GB, free: 9.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003094/0.429, allocations: 249.2 kB / 0.5299 GB, free: 9.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.429, allocations: 9.688 kB / 0.53 GB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.429, allocations: 3.984 kB / 0.53 GB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.429, allocations: 4.562 kB / 0.53 GB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.4292, allocations: 38.98 kB / 0.53 GB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.4292, allocations: 7.688 kB / 0.53 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.4295, allocations: 46.17 kB / 0.53 GB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.44e-05/0.4295, allocations: 7.219 kB / 0.5301 GB, free: 9.242 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.0001621/0.4297, allocations: 156.4 kB / 0.5302 GB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.779e-05/0.4297, allocations: 27.23 kB / 0.5302 GB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.751e-05/0.4298, allocations: 41.28 kB / 0.5303 GB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4298, allocations: 3.906 kB / 0.5303 GB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4298, allocations: 0 / 0.5303 GB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4298, allocations: 0 / 0.5303 GB, free: 9.082 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000281/0.4301, allocations: 319 kB / 0.5306 GB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.4301, allocations: 3.844 kB / 0.5306 GB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.4303, allocations: 27.92 kB / 0.5306 GB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.4303, allocations: 7.844 kB / 0.5306 GB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/0.4304, allocations: 6.453 kB / 0.5306 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4304, allocations: 0 / 0.5306 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4304, allocations: 0 / 0.5306 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/0.4308, allocations: 394.6 kB / 0.531 GB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.415e-05/0.4309, allocations: 115.8 kB / 0.5311 GB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.463e-05/0.4309, allocations: 6.719 kB / 0.5311 GB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002952/0.4312, allocations: 41.53 kB / 0.5312 GB, free: 8.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.4313, allocations: 10.52 kB / 0.5312 GB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.4313, allocations: 3.688 kB / 0.5312 GB, free: 8.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000535/0.4318, allocations: 290 kB / 0.5314 GB, free: 8.371 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4318, allocations: 0 / 0.5314 GB, free: 8.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.4321, allocations: 44.34 kB / 0.5315 GB, free: 8.367 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 0.0005811/0.4327, allocations: 0.9374 MB / 0.5324 GB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002743/0.433, allocations: 176.2 kB / 0.5326 GB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.433, allocations: 3.938 kB / 0.5326 GB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001081/0.4331, allocations: 77.19 kB / 0.5326 GB, free: 7.598 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.4334, allocations: 47.03 kB / 0.5327 GB, free: 7.586 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.4367, allocations: 2.472 MB / 0.5351 GB, free: 6.031 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.4369, allocations: 0.7924 MB / 0.5359 GB, free: 5.285 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.437, allocations: 37.42 kB / 0.5359 GB, free: 5.266 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.4372, allocations: 91.53 kB / 0.536 GB, free: 5.25 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4372, allocations: 0 / 0.536 GB, free: 5.25 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01535/0.4525, allocations: 4.69 MB / 0.5406 GB, free: 3.145 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/0.4527, allocations: 199.6 kB / 0.5408 GB, free: 2.902 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.359, allocations: 0 / 0.5408 GB, free: 2.902 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)