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.0009503/0.0009504, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008422/0.0008425, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2253/0.2253, allocations: 22.35 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002846/0.0002847, allocations: 8 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2887, allocations: 55.98 MB / 438 MB, free: 39.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.002376/0.2911, allocations: 2.494 MB / 440.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.2927, allocations: 0.9726 MB / 441.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.2929, allocations: 2.75 kB / 441.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.2933, allocations: 96.95 kB / 441.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003597/0.2936, allocations: 150.1 kB / 441.7 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003046/0.294, allocations: 196.8 kB / 441.9 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004243/0.2944, allocations: 0.5387 MB / 442.5 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002181/0.2946, allocations: 137.5 kB / 442.6 MB, free: 36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.2948, allocations: 196 kB / 442.8 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.295, allocations: 214 kB / 443 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.295, allocations: 22.44 kB / 443 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.2952, allocations: 42.55 kB / 443.1 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.816e-05/0.2953, allocations: 101.3 kB / 443.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.99e-05/0.2953, allocations: 107.2 kB / 443.3 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.2956, allocations: 392.4 kB / 443.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2956, allocations: 2.75 kB / 443.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2956, allocations: 0 / 443.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2956, allocations: 0 / 443.7 MB, free: 35.6 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001302/0.2969, allocations: 0.7793 MB / 444.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.297, allocations: 8.375 kB / 444.5 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.608e-05/0.2971, allocations: 81.25 kB / 444.5 MB, free: 34.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.894e-05/0.2971, allocations: 54.97 kB / 444.6 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005627/0.2977, allocations: 436.1 kB / 445 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.2977, allocations: 33.84 kB / 445 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.2978, allocations: 42.31 kB / 445.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005644/0.2984, allocations: 407.8 kB / 445.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.2984, allocations: 7.953 kB / 445.5 MB, free: 34.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.2984, allocations: 19.84 kB / 445.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.2984, allocations: 13.58 kB / 445.5 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005228/0.299, allocations: 287.6 kB / 445.8 MB, free: 34.29 MB / 350.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.001925/0.3009, allocations: 1.841 MB / 447.6 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.3013, allocations: 236.9 kB / 447.9 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.3015, allocations: 142.5 kB / 448 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.3016, allocations: 2.969 kB / 448 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.435e-05/0.3016, allocations: 37.41 kB / 448.1 MB, free: 32.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.413e-06/0.3016, allocations: 4 kB / 448.1 MB, free: 32.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007055/0.3023, allocations: 392.9 kB / 448.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.223e-05/0.3023, allocations: 58.45 kB / 448.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005515/0.3029, allocations: 485.2 kB / 449 MB, free: 32.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.3029, allocations: 32.73 kB / 449 MB, free: 32.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.303, allocations: 253.5 kB / 449.3 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.05e-05/0.3031, allocations: 140.7 kB / 449.4 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.3031, allocations: 10.66 kB / 449.4 MB, free: 31.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.264e-05/0.3032, allocations: 357.7 kB / 449.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.3034, allocations: 112.5 kB / 449.9 MB, free: 31.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.3037, allocations: 252.5 kB / 450.1 MB, free: 31.32 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.3053, allocations: 0.6 MB / 450.7 MB, free: 31.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3053, allocations: 0 / 450.7 MB, free: 31.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006641/0.306, allocations: 458.2 kB / 451.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.306, allocations: 5.781 kB / 451.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.3061, allocations: 13.66 kB / 451.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.3061, allocations: 16.02 kB / 451.2 MB, free: 30.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/0.3067, allocations: 168.3 kB / 451.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009613/0.3077, allocations: 1.447 MB / 452.8 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.308, allocations: 84.5 kB / 452.9 MB, free: 29.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.3081, allocations: 24.27 kB / 452.9 MB, free: 29.44 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: C2.u = C2.CSstart D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 10 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,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): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.3083, allocations: 186 kB / 453.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.3083, allocations: 43.09 kB / 453.1 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004895/0.3088, allocations: 358 kB / 453.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3088, allocations: 10.52 kB / 453.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.3089, allocations: 2.625 kB / 453.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3089, allocations: 0 / 453.5 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005215/0.3094, allocations: 482 kB / 454 MB, free: 28.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3094, allocations: 3.984 kB / 454 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004247/0.3098, allocations: 98.06 kB / 454.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3098, allocations: 0 / 454.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.3099, allocations: 14.09 kB / 454.1 MB, free: 28.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3099, allocations: 6.625 kB / 454.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3099, allocations: 3.953 kB / 454.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.3105, allocations: 0.5241 MB / 454.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.34e-05/0.3106, allocations: 130.7 kB / 454.7 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.382e-05/0.3106, allocations: 10.69 kB / 454.7 MB, free: 28.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.3109, allocations: 38.3 kB / 454.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.311, allocations: 33.66 kB / 454.8 MB, free: 28.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.311, allocations: 17.25 kB / 454.8 MB, free: 28.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000427/0.3115, allocations: 339.7 kB / 455.2 MB, free: 28.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3115, allocations: 0 / 455.2 MB, free: 28.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003903/0.3119, allocations: 107.3 kB / 455.3 MB, free: 28.12 MB / 350.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 (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008244/0.3127, allocations: 1.083 MB / 456.4 MB, free: 27.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000656/0.3134, allocations: 364 kB / 456.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3134, allocations: 2.625 kB / 456.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000191/0.3136, allocations: 148 kB / 456.9 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.314, allocations: 61.3 kB / 456.9 MB, free: 27.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.3182, allocations: 3.078 MB / 460 MB, free: 25.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.3185, allocations: 0.8609 MB / 460.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002131/0.3188, allocations: 63.19 kB / 460.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001915/0.3189, allocations: 168.6 kB / 461.1 MB, free: 24.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.319, allocations: 0 / 461.1 MB, free: 24.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.341, allocations: 7.867 MB / 469 MB, free: 24.14 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/0.3412, allocations: 253.8 kB / 469.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.27, allocations: 1.062 kB / 469.2 MB, free: 23.88 MB / 350.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/linux/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) Environment - environmentSimulation: