Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.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.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput",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.1043/0.1043, allocations: 21.62 MB / 36.56 MB, free: 1.047 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.0009937/0.0009937, allocations: 182.4 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.412/1.412, allocations: 223.2 MB / 272.1 MB, free: 1.371 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.00113/0.00113, allocations: 98.73 kB / 328.7 MB, free: 11.69 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003705, allocations: 8 kB / 397.1 MB, free: 46.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 55.82 MB / 452.9 MB, free: 6.527 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3798/0.4849, allocations: 80.7 MB / 0.5211 GB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.4853, allocations: 72.05 kB / 0.5212 GB, free: 13.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009645/0.4949, allocations: 3.274 MB / 0.5244 GB, free: 12.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.495, allocations: 0 / 0.5244 GB, free: 12.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.495, allocations: 3.781 kB / 0.5244 GB, free: 12.73 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.00089/0.4959, allocations: 0.5571 MB / 0.5249 GB, free: 12.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.496, allocations: 7.688 kB / 0.5249 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.737e-05/0.496, allocations: 43.69 kB / 0.525 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.695e-05/0.4961, allocations: 19.59 kB / 0.525 GB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004559/0.4965, allocations: 286 kB / 0.5253 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.4965, allocations: 11.34 kB / 0.5253 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.4966, allocations: 11.22 kB / 0.5253 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003147/0.4969, allocations: 176.9 kB / 0.5255 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.4969, allocations: 0 / 0.5255 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.497, allocations: 11.48 kB / 0.5255 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.497, allocations: 3.844 kB / 0.5255 GB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.4973, allocations: 141 kB / 0.5256 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009097/0.4982, allocations: 0.542 MB / 0.5261 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005761/0.4988, allocations: 192.1 kB / 0.5263 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.4988, allocations: 1.312 kB / 0.5263 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.4991, allocations: 202.2 kB / 0.5265 GB, free: 11.39 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.744e-06/0.4991, allocations: 0 / 0.5265 GB, free: 11.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.001394/0.5005, allocations: 0.6369 MB / 0.5271 GB, free: 11.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.5006, allocations: 169.1 kB / 0.5273 GB, free: 10.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.5009, allocations: 189.7 kB / 0.5275 GB, free: 10.78 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.915e-05/0.5009, allocations: 25.7 kB / 0.5275 GB, free: 10.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.164e-05/0.5009, allocations: 127.6 kB / 0.5276 GB, free: 10.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.122e-05/0.501, allocations: 48.62 kB / 0.5277 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-06/0.501, allocations: 7.156 kB / 0.5277 GB, free: 10.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.012e-05/0.5011, allocations: 329.4 kB / 0.528 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.5012, allocations: 64.61 kB / 0.5281 GB, free: 10.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.5014, allocations: 89.69 kB / 0.5282 GB, free: 10.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.5016, allocations: 135.6 kB / 0.5283 GB, free: 10.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.5016, allocations: 0 / 0.5283 GB, free: 10.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003819/0.502, allocations: 282.6 kB / 0.5286 GB, free: 10.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.238e-05/0.502, allocations: 148.8 kB / 0.5287 GB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.502, allocations: 3.984 kB / 0.5287 GB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.5021, allocations: 9.609 kB / 0.5287 GB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.5022, allocations: 34.78 kB / 0.5287 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.5023, allocations: 0 / 0.5287 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.5025, allocations: 38.38 kB / 0.5288 GB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.606e-05/0.5025, allocations: 3.625 kB / 0.5288 GB, free: 9.852 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.664e-06/0.5025, allocations: 7.656 kB / 0.5288 GB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002827/0.5028, allocations: 232.7 kB / 0.529 GB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.5028, allocations: 3.953 kB / 0.529 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-06/0.5028, allocations: 0 / 0.529 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.5029, allocations: 27.02 kB / 0.529 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-06/0.503, allocations: 0 / 0.529 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001726/0.5031, allocations: 31.34 kB / 0.5291 GB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.227e-05/0.5032, allocations: 7.812 kB / 0.5291 GB, free: 9.734 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.TDO.tdo,TDO.tdo,$PRE.TDO.timeNextEv,TDO.timeNextEv) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001797/0.5033, allocations: 243 kB / 0.5293 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.5034, allocations: 19.34 kB / 0.5293 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.005e-05/0.5034, allocations: 32.62 kB / 0.5294 GB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.5035, allocations: 0 / 0.5294 GB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.5035, allocations: 4.719 kB / 0.5294 GB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.5035, allocations: 0 / 0.5294 GB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.5037, allocations: 265.2 kB / 0.5296 GB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.5037, allocations: 3.938 kB / 0.5296 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.5038, allocations: 15.36 kB / 0.5296 GB, free: 9.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003688/0.5042, allocations: 150 kB / 0.5298 GB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.5042, allocations: 8.703 kB / 0.5298 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007092/0.5049, allocations: 0.8321 MB / 0.5306 GB, free: 8.566 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5049, allocations: 3.984 kB / 0.5306 GB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007477/0.5057, allocations: 0.5105 MB / 0.5311 GB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.5057, allocations: 88.64 kB / 0.5312 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.5058, allocations: 11.66 kB / 0.5312 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.506, allocations: 30.94 kB / 0.5312 GB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.23e-05/0.5061, allocations: 11.67 kB / 0.5312 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.5061, allocations: 7.531 kB / 0.5312 GB, free: 8.254 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002378/0.5063, allocations: 172.6 kB / 0.5314 GB, free: 8.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5063, allocations: 0 / 0.5314 GB, free: 8.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000337/0.5067, allocations: 77.88 kB / 0.5315 GB, free: 8.129 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.FO.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,TDO.tdo,TDO.timeNextEv) * Number of discrete states: 4 ($whenCondition2,TDO.timeNextEv,TDO.tdo,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/0.5077, allocations: 1.061 MB / 0.5325 GB, free: 7.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005231/0.5083, allocations: 493.2 kB / 0.533 GB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.5083, allocations: 3.875 kB / 0.533 GB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.5087, allocations: 237.6 kB / 0.5332 GB, free: 7.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.5089, allocations: 27.67 kB / 0.5332 GB, free: 7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.5108, allocations: 1.276 MB / 0.5345 GB, free: 6.344 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.511, allocations: 0.7388 MB / 0.5352 GB, free: 5.617 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.5111, allocations: 44.16 kB / 0.5353 GB, free: 5.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.518e-05/0.5112, allocations: 53.3 kB / 0.5353 GB, free: 5.586 MB / 362.7 MB Notification: Performance of SimCode: time 4.599e-06/0.5112, allocations: 0 / 0.5353 GB, free: 5.586 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0154/0.5266, allocations: 4.191 MB / 0.5394 GB, free: 3.609 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001342/0.5268, allocations: 202.5 kB / 0.5396 GB, free: 3.375 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/2.171, allocations: 4 kB / 0.5396 GB, free: 3.371 MB / 362.7 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_TimeDivisionOutput.fmu > AES_AES.Coursework.Typical_actuation_schemes.TimeDivisionOutput.pipe 2>&1)