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.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008868/0.008868, allocations: 101.6 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002019/0.002019, allocations: 195.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2434/0.2434, allocations: 22.35 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 65.23 kB / 436.6 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08598/0.08732, allocations: 54.97 MB / 491.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003682/0.09103, allocations: 2.972 MB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.09297, allocations: 1.013 MB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004468/0.09344, allocations: 11.94 kB / 495.6 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006132/0.09407, allocations: 126.9 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006365/0.09474, allocations: 178.9 kB / 495.9 MB, free: 13.39 MB / 366.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.0005396/0.0953, allocations: 279.5 kB / 496.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007158/0.09602, allocations: 0.6054 MB / 496.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000328/0.09636, allocations: 202.8 kB / 496.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003468/0.09672, allocations: 247 kB / 497.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003647/0.09709, allocations: 262.7 kB / 497.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.0972, allocations: 48 kB / 497.5 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.09738, allocations: 75.97 kB / 497.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.09755, allocations: 135.6 kB / 497.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.09779, allocations: 246.5 kB / 497.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005764/0.09837, allocations: 0.5418 MB / 498.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.09839, allocations: 4 kB / 498.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.0984, allocations: 0 / 498.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.09842, allocations: 0 / 498.5 MB, free: 10.76 MB / 366.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.001957/0.1004, allocations: 0.869 MB / 499.3 MB, free: 9.844 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1004, allocations: 12.03 kB / 499.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.745e-05/0.1005, allocations: 78.66 kB / 499.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1007, allocations: 60.19 kB / 499.5 MB, free: 9.688 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007704/0.1015, allocations: 443.7 kB / 499.9 MB, free: 9.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.591e-05/0.1015, allocations: 37.38 kB / 500 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.585e-05/0.1016, allocations: 44.28 kB / 500 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007008/0.1023, allocations: 424.8 kB / 0.4887 GB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.79e-05/0.1023, allocations: 0 / 0.4887 GB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.1023, allocations: 16 kB / 0.4887 GB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1024, allocations: 8 kB / 0.4887 GB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006318/0.103, allocations: 291.8 kB / 0.489 GB, free: 8.391 MB / 366.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.002127/0.1051, allocations: 1.708 MB / 0.4907 GB, free: 6.543 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.1056, allocations: 276 kB / 0.4909 GB, free: 6.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.1059, allocations: 157.5 kB / 0.4911 GB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.1059, allocations: 4.328 kB / 0.4911 GB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.106, allocations: 38.89 kB / 0.4911 GB, free: 6.059 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.106, allocations: 0 / 0.4911 GB, free: 6.059 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.000921/0.1069, allocations: 402.5 kB / 0.4915 GB, free: 5.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.107, allocations: 55.41 kB / 0.4915 GB, free: 5.594 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007087/0.1077, allocations: 481.4 kB / 0.492 GB, free: 5.113 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.1077, allocations: 33.7 kB / 0.492 GB, free: 5.074 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.1079, allocations: 256.2 kB / 0.4923 GB, free: 4.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.108, allocations: 145.9 kB / 0.4924 GB, free: 4.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.1081, allocations: 98.23 kB / 0.4925 GB, free: 4.574 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.1083, allocations: 354.7 kB / 0.4929 GB, free: 4.219 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002671/0.1086, allocations: 117.1 kB / 0.493 GB, free: 4.102 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003516/0.1089, allocations: 248.5 kB / 0.4932 GB, free: 3.812 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002273/0.1112, allocations: 0.9174 MB / 0.4941 GB, free: 2.809 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.1112, allocations: 0 / 0.4941 GB, free: 2.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008279/0.112, allocations: 463.3 kB / 0.4945 GB, free: 2.348 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.1121, allocations: 4 kB / 0.4945 GB, free: 2.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.1121, allocations: 4 kB / 0.4945 GB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.507e-05/0.1121, allocations: 8 kB / 0.4946 GB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005592/0.1127, allocations: 119.8 kB / 0.4947 GB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.842e-05/0.1127, allocations: 8 kB / 0.4947 GB, free: 2.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004469/0.1132, allocations: 67.81 kB / 0.4947 GB, free: 2.141 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/0.1132, allocations: 20 kB / 0.4948 GB, free: 2.121 MB / 366.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.0003151/0.1136, allocations: 198.9 kB / 0.495 GB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.529e-05/0.1136, allocations: 43.44 kB / 0.495 GB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006351/0.1143, allocations: 378.7 kB / 0.4954 GB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.1143, allocations: 8 kB / 0.4954 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1143, allocations: 0 / 0.4954 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.1143, allocations: 0 / 0.4954 GB, free: 1.484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005134/0.1148, allocations: 469 kB / 0.4958 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1149, allocations: 8 kB / 0.4958 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/0.1154, allocations: 103.9 kB / 0.4959 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.1154, allocations: 0 / 0.4959 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.246e-05/0.1154, allocations: 12 kB / 0.4959 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.1154, allocations: 0 / 0.4959 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1154, allocations: 0 / 0.4959 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000808/0.1163, allocations: 0.5558 MB / 0.4965 GB, free: 292 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001296/0.1164, allocations: 144.4 kB / 0.4966 GB, free: 128 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.806e-05/0.1164, allocations: 4 kB / 0.4966 GB, free: 124 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003399/0.1168, allocations: 35.95 kB / 0.4966 GB, free: 88 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.409e-05/0.1169, allocations: 27.95 kB / 0.4967 GB, free: 60 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.1169, allocations: 8 kB / 0.4967 GB, free: 52 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005759/0.1175, allocations: 339.1 kB / 0.497 GB, free: 15.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1175, allocations: 0 / 0.497 GB, free: 15.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004492/0.118, allocations: 107.8 kB / 0.4971 GB, free: 15.62 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.001329/0.1193, allocations: 1.116 MB / 0.4982 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007005/0.12, allocations: 335.2 kB / 0.4985 GB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.12, allocations: 7.938 kB / 0.4985 GB, free: 14.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.1203, allocations: 156.2 kB / 0.4987 GB, free: 13.99 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.1208, allocations: 57.91 kB / 0.4987 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00648/0.1273, allocations: 4.304 MB / 0.5029 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/0.1277, allocations: 0.8509 MB / 0.5038 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002124/0.128, allocations: 63.42 kB / 0.5038 GB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.1282, allocations: 171.4 kB / 0.504 GB, free: 8.336 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1282, allocations: 0 / 0.504 GB, free: 8.336 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.1578, allocations: 8.414 MB / 0.5122 GB, free: 84 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.39/8.548, allocations: 24.33 kB / 0.5122 GB, free: 60 kB / 382.1 MB (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 --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)