Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.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_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_generator_models.TurbineFollows,fileNamePrefix="AES_AES_Coursework_ElecSys_generator_models_TurbineFollows",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.1017/0.1017, allocations: 21.61 MB / 36.56 MB, free: 1.09 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.001065/0.001065, allocations: 186.4 kB / 42.83 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.418/1.418, allocations: 223.2 MB / 272.1 MB, free: 1.781 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.0008641/0.0008641, allocations: 91.41 kB / 328.7 MB, free: 12.15 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004766/0.0004766, allocations: 12 kB / 397.1 MB, free: 46.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1159, allocations: 55.82 MB / 452.9 MB, free: 6.617 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3752/0.4912, allocations: 82.34 MB / 0.5227 GB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.4914, allocations: 73.77 kB / 0.5228 GB, free: 12.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01867/0.5101, allocations: 8.284 MB / 0.5309 GB, free: 10.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5101, allocations: 0.75 kB / 0.5309 GB, free: 10.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.669e-05/0.5101, allocations: 19.59 kB / 0.5309 GB, free: 10.39 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001058/0.5112, allocations: 0.7531 MB / 0.5316 GB, free: 9.781 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.5113, allocations: 11.53 kB / 0.5317 GB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.074e-05/0.5113, allocations: 77.06 kB / 0.5317 GB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.106e-05/0.5114, allocations: 58.41 kB / 0.5318 GB, free: 9.699 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005394/0.512, allocations: 416.9 kB / 0.5322 GB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.846e-05/0.512, allocations: 29.47 kB / 0.5322 GB, free: 9.387 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.5121, allocations: 37.62 kB / 0.5322 GB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006051/0.5127, allocations: 429.3 kB / 0.5327 GB, free: 9.195 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.5127, allocations: 3.938 kB / 0.5327 GB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.5127, allocations: 13.12 kB / 0.5327 GB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.5128, allocations: 7.812 kB / 0.5327 GB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005482/0.5133, allocations: 301.8 kB / 0.533 GB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.5149, allocations: 1.541 MB / 0.5345 GB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000718/0.5156, allocations: 382.3 kB / 0.5348 GB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.5157, allocations: 3.484 kB / 0.5348 GB, free: 7.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.5157, allocations: 38.62 kB / 0.5349 GB, free: 7.953 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.5157, allocations: 0.6562 kB / 0.5349 GB, free: 7.953 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.000771/0.5165, allocations: 437.7 kB / 0.5353 GB, free: 7.848 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.5165, allocations: 110.6 kB / 0.5354 GB, free: 7.719 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.5168, allocations: 364.3 kB / 0.5357 GB, free: 7.566 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.5169, allocations: 32.98 kB / 0.5358 GB, free: 7.535 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.517, allocations: 250.3 kB / 0.536 GB, free: 7.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.494e-05/0.5171, allocations: 107 kB / 0.5361 GB, free: 7.312 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.5171, allocations: 10.22 kB / 0.5361 GB, free: 7.312 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.5172, allocations: 357.4 kB / 0.5365 GB, free: 6.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.5174, allocations: 119.2 kB / 0.5366 GB, free: 6.957 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000232/0.5177, allocations: 191.8 kB / 0.5368 GB, free: 6.855 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.5179, allocations: 141.6 kB / 0.5369 GB, free: 6.832 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5179, allocations: 0 / 0.5369 GB, free: 6.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005348/0.5184, allocations: 394.2 kB / 0.5373 GB, free: 6.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.5186, allocations: 0.7057 MB / 0.538 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.5186, allocations: 3.844 kB / 0.538 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.5186, allocations: 3.844 kB / 0.538 GB, free: 5.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.5189, allocations: 73.98 kB / 0.538 GB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.5189, allocations: 7.844 kB / 0.5381 GB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.5191, allocations: 41.39 kB / 0.5381 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.17e-05/0.5192, allocations: 14.56 kB / 0.5381 GB, free: 5.953 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.75e-06/0.5192, allocations: 3.875 kB / 0.5381 GB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003537/0.5195, allocations: 268.2 kB / 0.5384 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-06/0.5195, allocations: 0 / 0.5384 GB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.598e-06/0.5196, allocations: 7.766 kB / 0.5384 GB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002134/0.5198, allocations: 57.86 kB / 0.5384 GB, free: 5.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.5198, allocations: 9.828 kB / 0.5384 GB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001553/0.5199, allocations: 30.06 kB / 0.5385 GB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.574e-05/0.52, allocations: 15.06 kB / 0.5385 GB, free: 5.879 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(start = F.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002745/0.5202, allocations: 252 kB / 0.5387 GB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.097e-05/0.5203, allocations: 42.22 kB / 0.5388 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.884e-05/0.5204, allocations: 60.59 kB / 0.5388 GB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.5204, allocations: 3.953 kB / 0.5388 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5204, allocations: 0 / 0.5388 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.5205, allocations: 3.844 kB / 0.5388 GB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004064/0.5209, allocations: 462.7 kB / 0.5393 GB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5209, allocations: 0 / 0.5393 GB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.5212, allocations: 61.75 kB / 0.5393 GB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.5212, allocations: 3.844 kB / 0.5393 GB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.247e-05/0.5212, allocations: 2.875 kB / 0.5393 GB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.5212, allocations: 3.844 kB / 0.5393 GB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.5213, allocations: 3.953 kB / 0.5393 GB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007907/0.522, allocations: 0.5743 MB / 0.5399 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.5222, allocations: 151.2 kB / 0.54 GB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.701e-05/0.5222, allocations: 7.781 kB / 0.5401 GB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.5225, allocations: 19.08 kB / 0.5401 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.5225, allocations: 23.27 kB / 0.5401 GB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.5225, allocations: 7.719 kB / 0.5401 GB, free: 4.965 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000224/0.5228, allocations: 283.5 kB / 0.5404 GB, free: 4.848 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5228, allocations: 0 / 0.5404 GB, free: 4.848 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004321/0.5232, allocations: 154.2 kB / 0.5405 GB, free: 4.809 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.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 (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 Backend phase and start with SimCode phase: time 0.0009266/0.5241, allocations: 1.121 MB / 0.5416 GB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006353/0.5248, allocations: 432 kB / 0.542 GB, free: 4.008 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.5248, allocations: 4.062 kB / 0.542 GB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.525, allocations: 142.1 kB / 0.5422 GB, free: 3.984 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005439/0.5256, allocations: 112.4 kB / 0.5423 GB, free: 3.949 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003031/0.5286, allocations: 3.608 MB / 0.5458 GB, free: 1.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.5288, allocations: 0.8383 MB / 0.5466 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001987/0.529, allocations: 46.28 kB / 0.5467 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.5292, allocations: 166.2 kB / 0.5468 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5292, allocations: 0 / 0.5468 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.5477, allocations: 8.227 MB / 0.5548 GB, free: 11.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/0.548, allocations: 176.3 kB / 0.555 GB, free: 11.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.141/2.689, allocations: 3.938 kB / 0.555 GB, free: 11.63 MB / 378.7 MB (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_generator_models_TurbineFollows_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_generator_models_TurbineFollows.fmu > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)