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.001359/0.001359, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001536/0.001536, allocations: 214.1 kB / 22.25 MB, free: 5.082 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.503/1.503, allocations: 230.6 MB / 256 MB, free: 7.992 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.1116/0.1116, allocations: 24.12 MB / 336.6 MB, free: 11.45 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.002468/0.002468, allocations: 63.91 kB / 473.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3313, allocations: 59.6 MB / 0.5204 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00428/0.3355, allocations: 3.022 MB / 0.5234 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.3373, allocations: 1.061 MB / 0.5244 GB, free: 7.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000222/0.3375, allocations: 10.53 kB / 0.5244 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004399/0.338, allocations: 132.7 kB / 0.5245 GB, free: 7.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005266/0.3385, allocations: 192.6 kB / 0.5247 GB, free: 7.109 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0005657/0.3391, allocations: 300.8 kB / 0.525 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006509/0.3397, allocations: 0.6186 MB / 0.5256 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.34, allocations: 154.4 kB / 0.5258 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.3403, allocations: 248.7 kB / 0.526 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003268/0.3406, allocations: 273.1 kB / 0.5263 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.939e-05/0.3407, allocations: 47.78 kB / 0.5263 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.3409, allocations: 91.47 kB / 0.5264 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.3411, allocations: 147.2 kB / 0.5265 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.3413, allocations: 248.6 kB / 0.5268 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006406/0.3419, allocations: 0.5434 MB / 0.5273 GB, free: 5.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3419, allocations: 1.094 kB / 0.5273 GB, free: 5.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3419, allocations: 0 / 0.5273 GB, free: 5.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.3419, allocations: 4 kB / 0.5273 GB, free: 5.805 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.001706/0.3436, allocations: 0.8 MB / 0.5281 GB, free: 5.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3437, allocations: 10.23 kB / 0.5281 GB, free: 5.27 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.23e-05/0.3437, allocations: 85.59 kB / 0.5282 GB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.94e-05/0.3438, allocations: 62.12 kB / 0.5282 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007238/0.3446, allocations: 388.9 kB / 0.5286 GB, free: 4.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.3446, allocations: 36 kB / 0.5287 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.768e-05/0.3447, allocations: 41.62 kB / 0.5287 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006688/0.3453, allocations: 423.5 kB / 0.5291 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3453, allocations: 5.172 kB / 0.5291 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.276e-05/0.3454, allocations: 16.03 kB / 0.5291 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3454, allocations: 10.03 kB / 0.5291 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006266/0.346, allocations: 289.5 kB / 0.5294 GB, free: 4.562 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.0018/0.3478, allocations: 1.664 MB / 0.531 GB, free: 3.277 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.3483, allocations: 255.3 kB / 0.5313 GB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.3485, allocations: 144.1 kB / 0.5314 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.603e-05/0.3486, allocations: 5.406 kB / 0.5314 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.3486, allocations: 41.95 kB / 0.5315 GB, free: 3.062 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.713e-06/0.3486, allocations: 0 / 0.5315 GB, free: 3.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008895/0.3495, allocations: 406 kB / 0.5318 GB, free: 2.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.169e-05/0.3495, allocations: 58.78 kB / 0.5319 GB, free: 2.828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007364/0.3503, allocations: 469.4 kB / 0.5323 GB, free: 2.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.3503, allocations: 36.17 kB / 0.5324 GB, free: 2.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.3504, allocations: 274.2 kB / 0.5326 GB, free: 2.359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.293e-05/0.3505, allocations: 148.2 kB / 0.5328 GB, free: 2.242 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.3506, allocations: 99.34 kB / 0.5329 GB, free: 2.188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.135e-05/0.3507, allocations: 355.5 kB / 0.5332 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003032/0.351, allocations: 118.3 kB / 0.5333 GB, free: 1.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003435/0.3514, allocations: 247.8 kB / 0.5336 GB, free: 1.621 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/0.3535, allocations: 0.7547 MB / 0.5343 GB, free: 1.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3535, allocations: 1.031 kB / 0.5343 GB, free: 1.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007849/0.3543, allocations: 463.3 kB / 0.5347 GB, free: 1.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.3543, allocations: 7.062 kB / 0.5347 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.3543, allocations: 3.375 kB / 0.5348 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.243e-05/0.3543, allocations: 7.188 kB / 0.5348 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.3548, allocations: 119.8 kB / 0.5349 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.3548, allocations: 10.36 kB / 0.5349 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.3552, allocations: 68.97 kB / 0.5349 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.3552, allocations: 20.38 kB / 0.535 GB, free: 1 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.0002588/0.3555, allocations: 209.1 kB / 0.5352 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.306e-05/0.3556, allocations: 44.91 kB / 0.5352 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006183/0.3562, allocations: 359.9 kB / 0.5356 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3562, allocations: 8.438 kB / 0.5356 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3562, allocations: 8.828 kB / 0.5356 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.786e-05/0.3562, allocations: 3.062 kB / 0.5356 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004913/0.3567, allocations: 446.3 kB / 0.536 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3567, allocations: 5.062 kB / 0.536 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005128/0.3572, allocations: 97.61 kB / 0.5361 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3572, allocations: 2.156 kB / 0.5361 GB, free: 340 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.3573, allocations: 8.688 kB / 0.5361 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.3573, allocations: 1.156 kB / 0.5361 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3573, allocations: 1.094 kB / 0.5361 GB, free: 336 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007412/0.358, allocations: 0.5685 MB / 0.5367 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.3581, allocations: 55.92 kB / 0.5367 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.814e-05/0.3582, allocations: 11.17 kB / 0.5367 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003422/0.3585, allocations: 26.38 kB / 0.5368 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.3586, allocations: 31.42 kB / 0.5368 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.3586, allocations: 13.45 kB / 0.5368 GB, free: 15.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00064/0.3593, allocations: 339.6 kB / 0.5371 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3593, allocations: 192 / 0.5371 GB, free: 15.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.3597, allocations: 107 kB / 0.5372 GB, free: 15.78 MB / 398.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.001287/0.361, allocations: 1.128 MB / 0.5383 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006818/0.3617, allocations: 315.8 kB / 0.5386 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3617, allocations: 0 / 0.5386 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002597/0.362, allocations: 156.5 kB / 0.5388 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004505/0.3624, allocations: 57.33 kB / 0.5388 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006717/0.3691, allocations: 4.316 MB / 0.543 GB, free: 12.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005598/0.3697, allocations: 0.852 MB / 0.5439 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002464/0.3699, allocations: 64.45 kB / 0.5439 GB, free: 11.4 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002694/0.3702, allocations: 173 kB / 0.5441 GB, free: 11.27 MB / 398.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3702, allocations: 0 / 0.5441 GB, free: 11.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04234/0.4126, allocations: 8.684 MB / 0.5526 GB, free: 7.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.34, allocations: 21.33 kB / 0.5526 GB, free: 7.582 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: 15.264809485990554] Failed to read output from testmodel.py, exit status != 0: 12.449997315881774 12.464837764 12.119561489 Calling exit ...