Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 108.3 kB / 19.73 MB, free: 1.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 207.7 kB / 23.01 MB, free: 4.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1085/0.1085, allocations: 24.04 MB / 337.2 MB, free: 11.32 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002242/0.002242, allocations: 71.89 kB / 473.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3442, allocations: 59.57 MB / 0.5209 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.004243/0.3484, allocations: 2.759 MB / 0.5236 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002191/0.3506, allocations: 1.017 MB / 0.5246 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005254/0.3512, allocations: 15.44 kB / 0.5246 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006197/0.3518, allocations: 128.1 kB / 0.5247 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008609/0.3526, allocations: 195.1 kB / 0.5249 GB, free: 7.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007394/0.3534, allocations: 293.5 kB / 0.5252 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009188/0.3543, allocations: 0.6178 MB / 0.5258 GB, free: 6.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003136/0.3546, allocations: 137.1 kB / 0.5259 GB, free: 6.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004105/0.355, allocations: 252.3 kB / 0.5262 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004855/0.3555, allocations: 249.9 kB / 0.5264 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001615/0.3557, allocations: 46.25 kB / 0.5265 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000295/0.356, allocations: 86.22 kB / 0.5265 GB, free: 6.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000238/0.3562, allocations: 147 kB / 0.5267 GB, free: 6.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003134/0.3565, allocations: 196.6 kB / 0.5269 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007833/0.3573, allocations: 0.5504 MB / 0.5274 GB, free: 6.156 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3573, allocations: 0 / 0.5274 GB, free: 6.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3573, allocations: 0 / 0.5274 GB, free: 6.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.3573, allocations: 1.125 kB / 0.5274 GB, free: 6.156 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001784/0.3591, allocations: 0.8097 MB / 0.5282 GB, free: 5.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3591, allocations: 10.64 kB / 0.5282 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.294e-05/0.3592, allocations: 77.61 kB / 0.5283 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.3593, allocations: 65.25 kB / 0.5284 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007503/0.3601, allocations: 389.3 kB / 0.5287 GB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.3601, allocations: 44.73 kB / 0.5288 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.455e-05/0.3602, allocations: 41.62 kB / 0.5288 GB, free: 5.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.3609, allocations: 417.2 kB / 0.5292 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.3609, allocations: 9.109 kB / 0.5292 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.177e-05/0.3609, allocations: 19.44 kB / 0.5292 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.3609, allocations: 10.56 kB / 0.5292 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006146/0.3616, allocations: 286 kB / 0.5295 GB, free: 4.898 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.3634, allocations: 1.27 MB / 0.5308 GB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/0.3639, allocations: 251.5 kB / 0.531 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.3642, allocations: 147.9 kB / 0.5311 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.069e-05/0.3642, allocations: 5.203 kB / 0.5311 GB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.3642, allocations: 33.3 kB / 0.5312 GB, free: 3.809 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.384e-06/0.3642, allocations: 1.344 kB / 0.5312 GB, free: 3.809 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009336/0.3652, allocations: 409.4 kB / 0.5316 GB, free: 3.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.3652, allocations: 59.88 kB / 0.5316 GB, free: 3.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000754/0.3659, allocations: 486.1 kB / 0.5321 GB, free: 3.352 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.366, allocations: 31.64 kB / 0.5321 GB, free: 3.316 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.3661, allocations: 265.7 kB / 0.5324 GB, free: 3.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.13e-05/0.3662, allocations: 149 kB / 0.5325 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.3664, allocations: 102.7 kB / 0.5326 GB, free: 2.922 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.3665, allocations: 357.1 kB / 0.5329 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.3668, allocations: 115.3 kB / 0.5331 GB, free: 2.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003486/0.3671, allocations: 245 kB / 0.5333 GB, free: 2.363 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002079/0.3692, allocations: 0.7589 MB / 0.534 GB, free: 1.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.3692, allocations: 5.094 kB / 0.534 GB, free: 1.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008434/0.3701, allocations: 462.1 kB / 0.5345 GB, free: 1.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3701, allocations: 6.906 kB / 0.5345 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3701, allocations: 3.531 kB / 0.5345 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.3701, allocations: 7.406 kB / 0.5345 GB, free: 1.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005163/0.3706, allocations: 120.2 kB / 0.5346 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.3706, allocations: 8.016 kB / 0.5346 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003882/0.371, allocations: 71.59 kB / 0.5347 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.3711, allocations: 20.38 kB / 0.5347 GB, free: 1.738 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Cz1.T:VARIABLE(min = 0.0 start = 293.15 unit = \"K\" fixed = true nominal = 300.0 ) \"Temperature of element\" type: Real Cz2.T:VARIABLE(min = 0.0 start = 293.15 unit = \"K\" fixed = true nominal = 300.0 ) \"Temperature of element\" type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0003067/0.3714, allocations: 203.1 kB / 0.5349 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-05/0.3714, allocations: 47.41 kB / 0.5349 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006004/0.372, allocations: 369.8 kB / 0.5353 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.3721, allocations: 4.531 kB / 0.5353 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.3721, allocations: 1.156 kB / 0.5353 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3721, allocations: 2.719 kB / 0.5353 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.3726, allocations: 386.3 kB / 0.5357 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3726, allocations: 0 / 0.5357 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004937/0.373, allocations: 106.9 kB / 0.5358 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3731, allocations: 1.188 kB / 0.5358 GB, free: 1.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.3731, allocations: 8.797 kB / 0.5358 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3731, allocations: 2.312 kB / 0.5358 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3731, allocations: 0 / 0.5358 GB, free: 1.094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007762/0.3739, allocations: 0.5736 MB / 0.5363 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.353e-05/0.374, allocations: 56.02 kB / 0.5364 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.433e-05/0.374, allocations: 16.02 kB / 0.5364 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.3743, allocations: 28.97 kB / 0.5364 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.907e-05/0.3744, allocations: 32.78 kB / 0.5365 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.3744, allocations: 12.81 kB / 0.5365 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005563/0.375, allocations: 340.1 kB / 0.5368 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.375, allocations: 0 / 0.5368 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004594/0.3754, allocations: 110.9 kB / 0.5369 GB, free: 0.5273 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Cz1.T,Cz2.T,C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * 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 0.001112/0.3766, allocations: 1.122 MB / 0.538 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006685/0.3772, allocations: 311.9 kB / 0.5383 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3772, allocations: 0 / 0.5383 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002809/0.3775, allocations: 160.2 kB / 0.5385 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.378, allocations: 63.94 kB / 0.5385 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006829/0.3848, allocations: 4.305 MB / 0.5427 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000307/0.3851, allocations: 252.4 kB / 0.543 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.3853, allocations: 60.53 kB / 0.543 GB, free: 12.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3856, allocations: 170.8 kB / 0.5432 GB, free: 12.66 MB / 398.1 MB Notification: Performance of SimCode: time 1.784e-06/0.3856, allocations: 1.438 kB / 0.5432 GB, free: 12.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03993/0.4256, allocations: 8.904 MB / 0.5519 GB, free: 8.719 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.1, allocations: 11.78 kB / 0.5519 GB, free: 8.711 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_fmu --startTime=0 --stopTime=7200 --stepSize=1 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.914743251632899] Failed to read output from testmodel.py, exit status != 0: 12.220248407684267 12.239760928 11.878035066 Calling exit ...