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.002306/0.002306, 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.002419/0.002419, allocations: 213.1 kB / 23.01 MB, free: 4.992 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.544/1.544, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.1091/0.1091, allocations: 24.03 MB / 337.2 MB, free: 11.35 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.002398/0.002398, allocations: 67.88 kB / 473.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3597, allocations: 59.57 MB / 0.5209 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003928/0.3637, allocations: 2.762 MB / 0.5236 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.3654, allocations: 1.018 MB / 0.5246 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.3656, allocations: 14.28 kB / 0.5246 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004171/0.366, allocations: 128.5 kB / 0.5247 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005349/0.3666, allocations: 195 kB / 0.5249 GB, free: 7.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.3671, allocations: 287.9 kB / 0.5252 GB, free: 7.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006342/0.3677, allocations: 0.6182 MB / 0.5258 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003/0.368, allocations: 146.4 kB / 0.5259 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.3683, allocations: 244.9 kB / 0.5262 GB, free: 6.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003162/0.3686, allocations: 249.8 kB / 0.5264 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.3687, allocations: 47.12 kB / 0.5265 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001921/0.3689, allocations: 83.61 kB / 0.5265 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.3691, allocations: 147.2 kB / 0.5267 GB, free: 6.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.3693, allocations: 200.9 kB / 0.5269 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000593/0.3699, allocations: 0.5481 MB / 0.5274 GB, free: 6.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3699, allocations: 1.25 kB / 0.5274 GB, free: 6.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3699, allocations: 0 / 0.5274 GB, free: 6.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3699, allocations: 0.8438 kB / 0.5274 GB, free: 6.125 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.001694/0.3716, allocations: 0.8072 MB / 0.5282 GB, free: 5.582 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.3716, allocations: 11.11 kB / 0.5282 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.503e-05/0.3717, allocations: 82.2 kB / 0.5283 GB, free: 5.516 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.045e-05/0.3718, allocations: 64.22 kB / 0.5284 GB, free: 5.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007098/0.3725, allocations: 386 kB / 0.5287 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.601e-05/0.3725, allocations: 40.41 kB / 0.5288 GB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.3726, allocations: 45.66 kB / 0.5288 GB, free: 5.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006781/0.3733, allocations: 412.9 kB / 0.5292 GB, free: 4.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.3733, allocations: 5.422 kB / 0.5292 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.27e-05/0.3733, allocations: 15.47 kB / 0.5292 GB, free: 4.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.3733, allocations: 13.88 kB / 0.5292 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006223/0.3739, allocations: 287.2 kB / 0.5295 GB, free: 4.879 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.001723/0.3757, allocations: 1.27 MB / 0.5307 GB, free: 3.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/0.3761, allocations: 255.4 kB / 0.531 GB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002697/0.3764, allocations: 150.6 kB / 0.5311 GB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.3764, allocations: 6.047 kB / 0.5311 GB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.3764, allocations: 41.45 kB / 0.5312 GB, free: 3.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.964e-06/0.3764, allocations: 3.938 kB / 0.5312 GB, free: 3.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008404/0.3773, allocations: 402.4 kB / 0.5316 GB, free: 3.609 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.54e-05/0.3773, allocations: 59.81 kB / 0.5316 GB, free: 3.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000695/0.378, allocations: 486.2 kB / 0.5321 GB, free: 3.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.378, allocations: 34.98 kB / 0.5321 GB, free: 3.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3781, allocations: 258.4 kB / 0.5324 GB, free: 3.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.016e-05/0.3782, allocations: 157.8 kB / 0.5325 GB, free: 2.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.3783, allocations: 97.94 kB / 0.5326 GB, free: 2.895 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.691e-05/0.3784, allocations: 356.4 kB / 0.5329 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002932/0.3787, allocations: 114.6 kB / 0.5331 GB, free: 2.527 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.3791, allocations: 246.3 kB / 0.5333 GB, free: 2.336 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.00205/0.3811, allocations: 0.7563 MB / 0.534 GB, free: 1.973 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.3811, allocations: 4.969 kB / 0.534 GB, free: 1.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007722/0.3819, allocations: 460.8 kB / 0.5345 GB, free: 1.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3819, allocations: 6.562 kB / 0.5345 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3819, allocations: 3.938 kB / 0.5345 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.3819, allocations: 6.562 kB / 0.5345 GB, free: 1.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005014/0.3824, allocations: 121.2 kB / 0.5346 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.3824, allocations: 7.281 kB / 0.5346 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003548/0.3828, allocations: 71.38 kB / 0.5347 GB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.3828, allocations: 21.59 kB / 0.5347 GB, free: 1.715 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.0002325/0.3831, allocations: 205.2 kB / 0.5349 GB, free: 1.543 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-05/0.3831, allocations: 45.31 kB / 0.5349 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005937/0.3837, allocations: 369.4 kB / 0.5353 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3837, allocations: 4.75 kB / 0.5353 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3837, allocations: 0 / 0.5353 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.3837, allocations: 2.641 kB / 0.5353 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004433/0.3842, allocations: 390.7 kB / 0.5357 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3842, allocations: 0 / 0.5357 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005023/0.3847, allocations: 102 kB / 0.5358 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.3847, allocations: 2.125 kB / 0.5358 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.3847, allocations: 12.55 kB / 0.5358 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3847, allocations: 5.953 kB / 0.5358 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3847, allocations: 0.8438 kB / 0.5358 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007431/0.3855, allocations: 0.5733 MB / 0.5364 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.091e-05/0.3856, allocations: 60.53 kB / 0.5364 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.3856, allocations: 6.562 kB / 0.5364 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003288/0.3859, allocations: 30.55 kB / 0.5364 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.386, allocations: 32.2 kB / 0.5365 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.386, allocations: 12.25 kB / 0.5365 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005317/0.3866, allocations: 339.8 kB / 0.5368 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3866, allocations: 0 / 0.5368 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.387, allocations: 110.6 kB / 0.5369 GB, free: 0.5 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.001081/0.3881, allocations: 1.123 MB / 0.538 GB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000635/0.3887, allocations: 313.9 kB / 0.5383 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3887, allocations: 1.312 kB / 0.5383 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.389, allocations: 155.8 kB / 0.5385 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.3894, allocations: 64.73 kB / 0.5385 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006572/0.396, allocations: 4.299 MB / 0.5427 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.3963, allocations: 251.5 kB / 0.543 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002351/0.3965, allocations: 56.52 kB / 0.543 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002591/0.3968, allocations: 176.1 kB / 0.5432 GB, free: 12.63 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3968, allocations: 2 kB / 0.5432 GB, free: 12.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04753/0.4443, allocations: 8.902 MB / 0.5519 GB, free: 8.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.22, allocations: 9.594 kB / 0.5519 GB, free: 8.703 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 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: 15.370669672265649] Failed to read output from testmodel.py, exit status != 0: 12.33716967701912 12.353287097 11.980337888 Calling exit ...