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.005386/0.005386, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001379/0.001379, allocations: 189 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1882/0.1882, allocations: 22.36 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 65.52 kB / 436.6 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0736/0.07549, allocations: 54.97 MB / 491.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003447/0.07897, allocations: 2.967 MB / 494.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.08062, allocations: 1.013 MB / 495.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.08078, allocations: 8 kB / 495.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004059/0.08119, allocations: 126.9 kB / 495.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004944/0.08171, allocations: 190.8 kB / 495.9 MB, free: 13.25 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.0004342/0.08215, allocations: 263.6 kB / 496.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006606/0.08282, allocations: 0.6132 MB / 496.7 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.08316, allocations: 202.8 kB / 496.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002719/0.08344, allocations: 247 kB / 497.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003206/0.08377, allocations: 258.7 kB / 497.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.436e-05/0.08385, allocations: 48 kB / 497.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000152/0.08401, allocations: 75.95 kB / 497.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.08417, allocations: 131.6 kB / 497.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.08442, allocations: 250.6 kB / 497.9 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006034/0.08503, allocations: 0.5484 MB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.08504, allocations: 4 kB / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08505, allocations: 0 / 498.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.08506, allocations: 0 / 498.5 MB, free: 10.62 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.00182/0.08689, allocations: 0.8647 MB / 499.3 MB, free: 9.707 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.08693, allocations: 8.031 kB / 499.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.881e-05/0.08702, allocations: 78.7 kB / 499.4 MB, free: 9.613 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.08713, allocations: 64.55 kB / 499.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007772/0.08791, allocations: 463.7 kB / 499.9 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.975e-05/0.08796, allocations: 37.31 kB / 500 MB, free: 9.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.954e-05/0.08804, allocations: 52.38 kB / 0.4883 GB, free: 8.969 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007327/0.08878, allocations: 412.8 kB / 0.4887 GB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.08881, allocations: 0 / 0.4887 GB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.08885, allocations: 16 kB / 0.4887 GB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.08886, allocations: 8 kB / 0.4887 GB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006794/0.08955, allocations: 295.8 kB / 0.489 GB, free: 8.234 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.002153/0.09171, allocations: 1.709 MB / 0.4907 GB, free: 6.387 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004935/0.09222, allocations: 277.4 kB / 0.4909 GB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/0.09254, allocations: 160 kB / 0.4911 GB, free: 5.953 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.858e-05/0.09259, allocations: 4.328 kB / 0.4911 GB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.338e-05/0.09263, allocations: 38.89 kB / 0.4911 GB, free: 5.902 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.653e-06/0.09264, allocations: 3.938 kB / 0.4911 GB, free: 5.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009384/0.09358, allocations: 406.8 kB / 0.4915 GB, free: 5.496 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.09364, allocations: 59.39 kB / 0.4916 GB, free: 5.426 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007531/0.0944, allocations: 473.5 kB / 0.492 GB, free: 4.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.09445, allocations: 33.7 kB / 0.4921 GB, free: 4.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.09466, allocations: 264.5 kB / 0.4923 GB, free: 4.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.09478, allocations: 146.8 kB / 0.4925 GB, free: 4.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.09493, allocations: 98.2 kB / 0.4926 GB, free: 4.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.09511, allocations: 358.8 kB / 0.4929 GB, free: 4.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/0.09541, allocations: 117.1 kB / 0.493 GB, free: 3.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003838/0.0958, allocations: 248.5 kB / 0.4932 GB, free: 3.641 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.09816, allocations: 0.9175 MB / 0.4941 GB, free: 2.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.09817, allocations: 0 / 0.4941 GB, free: 2.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008773/0.09905, allocations: 459.5 kB / 0.4946 GB, free: 2.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.09908, allocations: 8 kB / 0.4946 GB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.09909, allocations: 4 kB / 0.4946 GB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.09911, allocations: 4 kB / 0.4946 GB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.09964, allocations: 120.3 kB / 0.4947 GB, free: 2.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.09968, allocations: 15.94 kB / 0.4947 GB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003668/0.1, allocations: 67.59 kB / 0.4948 GB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.1001, allocations: 20 kB / 0.4948 GB, free: 1.945 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.0002564/0.1004, allocations: 205 kB / 0.495 GB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.932e-05/0.1004, allocations: 43.72 kB / 0.495 GB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006864/0.1011, allocations: 370.8 kB / 0.4954 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.1012, allocations: 7.984 kB / 0.4954 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1012, allocations: 4 kB / 0.4954 GB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1012, allocations: 3.938 kB / 0.4954 GB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005552/0.1017, allocations: 477.1 kB / 0.4959 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1017, allocations: 0 / 0.4959 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005233/0.1023, allocations: 103.8 kB / 0.496 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1023, allocations: 0 / 0.496 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.68e-05/0.1023, allocations: 8 kB / 0.496 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1023, allocations: 0 / 0.496 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.1023, allocations: 4 kB / 0.496 GB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008749/0.1032, allocations: 0.5678 MB / 0.4965 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.1033, allocations: 132.7 kB / 0.4967 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.281e-05/0.1034, allocations: 8 kB / 0.4967 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.1037, allocations: 27.97 kB / 0.4967 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.864e-05/0.1038, allocations: 31.95 kB / 0.4967 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.1039, allocations: 12 kB / 0.4967 GB, free: 15.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005829/0.1044, allocations: 335.1 kB / 0.4971 GB, free: 15.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1045, allocations: 4 kB / 0.4971 GB, free: 15.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.1049, allocations: 107.9 kB / 0.4972 GB, free: 15.44 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.001206/0.1061, allocations: 1.128 MB / 0.4983 GB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000648/0.1067, allocations: 334.2 kB / 0.4986 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1067, allocations: 0 / 0.4986 GB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002662/0.107, allocations: 160.2 kB / 0.4987 GB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.1074, allocations: 53.33 kB / 0.4988 GB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006141/0.1136, allocations: 4.33 MB / 0.503 GB, free: 9.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004706/0.1141, allocations: 0.8509 MB / 0.5038 GB, free: 8.355 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001916/0.1143, allocations: 59.42 kB / 0.5039 GB, free: 8.297 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.1145, allocations: 175.3 kB / 0.5041 GB, free: 8.125 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1146, allocations: 0 / 0.5041 GB, free: 8.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4116/0.5262, allocations: 8.239 MB / 0.5121 GB, free: 44 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.9/9.426, allocations: 18.91 kB / 0.5121 GB, free: 28 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)