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.001214/0.001214, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001517/0.001518, allocations: 177.3 kB / 15.95 MB, free: 216 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.47/1.47, allocations: 223.2 MB / 239.9 MB, free: 5.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2404/0.2404, allocations: 22.35 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002903/0.0002906, allocations: 8 kB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3162, allocations: 55.97 MB / 437.9 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.002564/0.3188, allocations: 2.431 MB / 440.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001538/0.3204, allocations: 0.9714 MB / 441.3 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002179/0.3206, allocations: 13.25 kB / 441.3 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003856/0.321, allocations: 91.8 kB / 441.4 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000387/0.3214, allocations: 176.3 kB / 441.6 MB, free: 36.6 MB / 350.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.0003456/0.3218, allocations: 184.3 kB / 441.8 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.3222, allocations: 392.8 kB / 442.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3224, allocations: 149 kB / 442.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.3226, allocations: 193 kB / 442.5 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001897/0.3228, allocations: 210.8 kB / 442.7 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.3228, allocations: 17.84 kB / 442.7 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.3229, allocations: 45.89 kB / 442.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.379e-05/0.323, allocations: 104.1 kB / 442.8 MB, free: 36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.805e-05/0.3231, allocations: 101.3 kB / 442.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.3234, allocations: 403.3 kB / 443.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.3234, allocations: 0 / 443.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3234, allocations: 0 / 443.3 MB, free: 35.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3234, allocations: 0 / 443.3 MB, free: 35.83 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.001418/0.3248, allocations: 0.7767 MB / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3249, allocations: 9.5 kB / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.036e-05/0.3249, allocations: 77.41 kB / 444.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.759e-05/0.325, allocations: 56.31 kB / 444.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000625/0.3257, allocations: 442.3 kB / 444.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.3257, allocations: 29.72 kB / 444.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.3258, allocations: 47 kB / 444.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.3264, allocations: 402 kB / 445.1 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.3264, allocations: 7.891 kB / 445.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.3264, allocations: 15.78 kB / 445.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.3264, allocations: 9.906 kB / 445.2 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005561/0.327, allocations: 282.6 kB / 445.5 MB, free: 34.53 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.002205/0.3292, allocations: 1.837 MB / 447.3 MB, free: 33.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003882/0.3296, allocations: 245.6 kB / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.3297, allocations: 10.14 kB / 447.5 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.3297, allocations: 37.38 kB / 447.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.653e-06/0.3297, allocations: 0 / 447.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008115/0.3305, allocations: 381.2 kB / 448 MB, free: 32.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.3306, allocations: 64.92 kB / 448 MB, free: 32.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006617/0.3312, allocations: 485.5 kB / 448.5 MB, free: 32.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.3313, allocations: 32.48 kB / 448.5 MB, free: 32.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.3314, allocations: 264.2 kB / 448.8 MB, free: 32.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.867e-05/0.3315, allocations: 145.6 kB / 448.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.3316, allocations: 8 kB / 448.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.3316, allocations: 355.7 kB / 449.3 MB, free: 31.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002189/0.3319, allocations: 109.1 kB / 449.4 MB, free: 31.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002678/0.3321, allocations: 249.2 kB / 449.6 MB, free: 31.63 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.001759/0.3339, allocations: 0.6 MB / 450.2 MB, free: 31.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3339, allocations: 3.156 kB / 450.2 MB, free: 31.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007672/0.3347, allocations: 462.1 kB / 450.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3347, allocations: 5.469 kB / 450.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3347, allocations: 10.61 kB / 450.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.3348, allocations: 8.062 kB / 450.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006704/0.3355, allocations: 178.9 kB / 450.9 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.3366, allocations: 1.458 MB / 452.3 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003975/0.3371, allocations: 86.17 kB / 452.4 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.354e-05/0.3371, allocations: 22.22 kB / 452.4 MB, free: 29.74 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.0002455/0.3373, allocations: 191.1 kB / 452.6 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.3374, allocations: 47.78 kB / 452.7 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005137/0.3379, allocations: 351.5 kB / 453 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.338, allocations: 6.766 kB / 453 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.338, allocations: 2.531 kB / 453 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.338, allocations: 7.375 kB / 453 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005672/0.3385, allocations: 481.1 kB / 453.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3386, allocations: 0 / 453.5 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004543/0.339, allocations: 94.41 kB / 453.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.339, allocations: 2.688 kB / 453.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.3391, allocations: 9.625 kB / 453.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3391, allocations: 2.938 kB / 453.6 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3391, allocations: 3.953 kB / 453.6 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.3397, allocations: 0.5344 MB / 454.2 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.853e-05/0.3398, allocations: 133.7 kB / 454.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.746e-05/0.3399, allocations: 6.625 kB / 454.3 MB, free: 28.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003138/0.3402, allocations: 42.33 kB / 454.3 MB, free: 28.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.265e-05/0.3403, allocations: 27.11 kB / 454.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.3403, allocations: 15.83 kB / 454.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004837/0.3408, allocations: 342 kB / 454.7 MB, free: 28.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3408, allocations: 3.938 kB / 454.7 MB, free: 28.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004558/0.3413, allocations: 107.9 kB / 454.8 MB, free: 28.42 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.0008652/0.3422, allocations: 1.098 MB / 455.9 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007859/0.343, allocations: 366.9 kB / 456.3 MB, free: 27.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.343, allocations: 0 / 456.3 MB, free: 27.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002019/0.3432, allocations: 150 kB / 456.4 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.3435, allocations: 50.17 kB / 456.5 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005115/0.3487, allocations: 5.759 MB / 462.2 MB, free: 23.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.349, allocations: 0.8642 MB / 463.1 MB, free: 22.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002394/0.3492, allocations: 54.42 kB / 463.1 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001911/0.3494, allocations: 171.4 kB / 463.3 MB, free: 22.21 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3494, allocations: 0 / 463.3 MB, free: 22.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.3766, allocations: 7.846 MB / 471.2 MB, free: 21.74 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002109/0.3769, allocations: 246.9 kB / 471.4 MB, free: 21.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.287, allocations: 0 / 471.4 MB, free: 21.5 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: