Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control",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.1156/0.1156, allocations: 21.62 MB / 36.56 MB, free: 1.051 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.001202/0.001202, allocations: 183.3 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.364/1.364, allocations: 223.2 MB / 272.1 MB, free: 1.785 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.0008853/0.0008851, allocations: 95 kB / 328.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.0003557, allocations: 8 kB / 397.1 MB, free: 46.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08382, allocations: 55.81 MB / 452.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3159/0.3998, allocations: 84.71 MB / 0.525 GB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.4001, allocations: 79.42 kB / 0.5251 GB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01577/0.4158, allocations: 6.694 MB / 0.5317 GB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4159, allocations: 0 / 0.5317 GB, free: 10.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.4159, allocations: 7.844 kB / 0.5317 GB, free: 10.55 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008206/0.4167, allocations: 0.6405 MB / 0.5323 GB, free: 10.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.4168, allocations: 11.53 kB / 0.5323 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.166e-05/0.4169, allocations: 72.31 kB / 0.5324 GB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.861e-05/0.417, allocations: 42.75 kB / 0.5324 GB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003886/0.4174, allocations: 323.4 kB / 0.5327 GB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.4174, allocations: 27.66 kB / 0.5327 GB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.087e-05/0.4174, allocations: 34.7 kB / 0.5328 GB, free: 9.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.418, allocations: 369.8 kB / 0.5331 GB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.418, allocations: 3.906 kB / 0.5331 GB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.4181, allocations: 15.53 kB / 0.5332 GB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.4181, allocations: 7.719 kB / 0.5332 GB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004449/0.4185, allocations: 267.4 kB / 0.5334 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001617/0.4202, allocations: 1.277 MB / 0.5347 GB, free: 8.672 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006335/0.4208, allocations: 310.4 kB / 0.535 GB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.4208, allocations: 240 / 0.535 GB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.4209, allocations: 37.95 kB / 0.535 GB, free: 8.559 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 1.082e-06/0.4209, allocations: 0 / 0.535 GB, free: 8.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.000674/0.4216, allocations: 343.4 kB / 0.5353 GB, free: 8.469 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.4216, allocations: 84.52 kB / 0.5354 GB, free: 8.375 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001986/0.4218, allocations: 231.9 kB / 0.5356 GB, free: 8.258 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.4219, allocations: 29.36 kB / 0.5357 GB, free: 8.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.422, allocations: 214.1 kB / 0.5359 GB, free: 8.082 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.293e-05/0.4221, allocations: 102.5 kB / 0.536 GB, free: 8.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.282e-05/0.4221, allocations: 3.125 kB / 0.536 GB, free: 8.008 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.2e-05/0.4222, allocations: 347 kB / 0.5363 GB, free: 7.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.4223, allocations: 82.09 kB / 0.5364 GB, free: 7.672 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.4225, allocations: 148.8 kB / 0.5365 GB, free: 7.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.4227, allocations: 100.7 kB / 0.5366 GB, free: 7.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.4227, allocations: 3.844 kB / 0.5366 GB, free: 7.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004278/0.4231, allocations: 304.8 kB / 0.5369 GB, free: 7.492 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001354/0.4233, allocations: 0.6193 MB / 0.5375 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.4233, allocations: 3.812 kB / 0.5375 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.4233, allocations: 3.844 kB / 0.5375 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.4236, allocations: 64.91 kB / 0.5376 GB, free: 6.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.719e-06/0.4236, allocations: 7.656 kB / 0.5376 GB, free: 6.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.4238, allocations: 37.05 kB / 0.5376 GB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.4238, allocations: 11.53 kB / 0.5376 GB, free: 6.812 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.715e-06/0.4238, allocations: 3.844 kB / 0.5376 GB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003382/0.4242, allocations: 218.6 kB / 0.5378 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-06/0.4242, allocations: 3.844 kB / 0.5378 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.718e-06/0.4242, allocations: 3.844 kB / 0.5378 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.4245, allocations: 65.22 kB / 0.5379 GB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.4245, allocations: 7.781 kB / 0.5379 GB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.4246, allocations: 31.55 kB / 0.5379 GB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.4247, allocations: 15.44 kB / 0.538 GB, free: 6.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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.0001511/0.4248, allocations: 229.2 kB / 0.5382 GB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.197e-05/0.4249, allocations: 34.77 kB / 0.5382 GB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005233/0.4254, allocations: 281 kB / 0.5385 GB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.4254, allocations: 3.844 kB / 0.5385 GB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.4254, allocations: 0 / 0.5385 GB, free: 6.449 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.4254, allocations: 3.984 kB / 0.5385 GB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003584/0.4258, allocations: 401.6 kB / 0.5389 GB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.4258, allocations: 3.938 kB / 0.5389 GB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.4261, allocations: 61.72 kB / 0.5389 GB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.4261, allocations: 3.844 kB / 0.5389 GB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.4261, allocations: 7.188 kB / 0.5389 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.4261, allocations: 3.844 kB / 0.5389 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4261, allocations: 0 / 0.5389 GB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005972/0.4268, allocations: 491.2 kB / 0.5394 GB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.4269, allocations: 129.3 kB / 0.5395 GB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.4269, allocations: 3.188 kB / 0.5395 GB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.4271, allocations: 22.73 kB / 0.5396 GB, free: 5.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.4272, allocations: 11.67 kB / 0.5396 GB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.4272, allocations: 6.656 kB / 0.5396 GB, free: 5.828 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.4273, allocations: 193 kB / 0.5398 GB, free: 5.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4273, allocations: 3.781 kB / 0.5398 GB, free: 5.723 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004265/0.4278, allocations: 159 kB / 0.5399 GB, free: 5.684 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,Ccont.T) * 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.0007789/0.4285, allocations: 1.012 MB / 0.5409 GB, free: 4.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000537/0.4291, allocations: 358.6 kB / 0.5413 GB, free: 4.902 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4291, allocations: 0 / 0.5413 GB, free: 4.902 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001689/0.4293, allocations: 114.6 kB / 0.5414 GB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000437/0.4297, allocations: 62.86 kB / 0.5414 GB, free: 4.871 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00248/0.4322, allocations: 2.881 MB / 0.5442 GB, free: 2.871 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.4325, allocations: 0.7985 MB / 0.545 GB, free: 2.121 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.4327, allocations: 46.06 kB / 0.5451 GB, free: 2.094 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.4328, allocations: 125 kB / 0.5452 GB, free: 2.074 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.4328, allocations: 0 / 0.5452 GB, free: 2.074 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.45, allocations: 5.807 MB / 0.5508 GB, free: 15.38 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/0.4503, allocations: 178.3 kB / 0.551 GB, free: 15.15 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.351, allocations: 1.266 kB / 0.551 GB, free: 15.15 MB / 378.7 MB (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control_fmu --startTime=0 --stopTime=2000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_MSL_electrical_thermal_control.fmu > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)