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_openLoop.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_openLoop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop",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.0009986/0.0009986, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001044/0.001044, allocations: 168.7 kB / 15.95 MB, free: 204 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.391/1.391, allocations: 223.2 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2182/0.2182, allocations: 22.35 MB / 313.4 MB, free: 13.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003312/0.0003313, allocations: 8 kB / 382.1 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2882/0.2886, allocations: 55.98 MB / 438 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop): time 0.00175/0.2904, allocations: 1.749 MB / 439.8 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002952/0.2907, allocations: 150.8 kB / 439.9 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.639e-05/0.2908, allocations: 5.344 kB / 439.9 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.068e-05/0.2908, allocations: 21.48 kB / 440 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.291, allocations: 47.03 kB / 440 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.2911, allocations: 28.19 kB / 440 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000166/0.2913, allocations: 185.3 kB / 440.2 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.2915, allocations: 64.86 kB / 440.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.135e-05/0.2915, allocations: 56.12 kB / 440.3 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.2916, allocations: 68.95 kB / 440.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.248e-05/0.2917, allocations: 8.031 kB / 440.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.603e-05/0.2917, allocations: 8.031 kB / 440.4 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.428e-05/0.2917, allocations: 28.2 kB / 440.4 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.244e-05/0.2918, allocations: 58.36 kB / 440.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.2919, allocations: 144.9 kB / 440.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.2919, allocations: 0 / 440.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.292, allocations: 0 / 440.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.292, allocations: 0 / 440.6 MB, free: 37.66 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000471/0.2924, allocations: 427.4 kB / 441.1 MB, free: 37.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2925, allocations: 14 kB / 441.1 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.298e-05/0.2925, allocations: 50.75 kB / 441.1 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.546e-05/0.2926, allocations: 16.22 kB / 441.1 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.803e-05/0.2927, allocations: 176.5 kB / 441.3 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.2927, allocations: 16.62 kB / 441.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.2928, allocations: 17.91 kB / 441.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.293, allocations: 155.5 kB / 441.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.2931, allocations: 10.86 kB / 441.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.2931, allocations: 11.98 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.2931, allocations: 9.531 kB / 441.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002197/0.2933, allocations: 108.4 kB / 441.6 MB, free: 36.84 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.0008034/0.2941, allocations: 0.8571 MB / 442.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001903/0.2943, allocations: 117.8 kB / 442.6 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001128/0.2945, allocations: 80.41 kB / 442.7 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2945, allocations: 2.531 kB / 442.7 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.2945, allocations: 37.75 kB / 442.7 MB, free: 35.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.252e-06/0.2945, allocations: 0 / 442.7 MB, free: 35.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003261/0.2949, allocations: 162.9 kB / 442.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.163e-05/0.2949, allocations: 53.97 kB / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.645e-05/0.295, allocations: 119.8 kB / 443 MB, free: 35.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.295, allocations: 29.7 kB / 443.1 MB, free: 35.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.295, allocations: 132 kB / 443.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.98e-05/0.2951, allocations: 56.55 kB / 443.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.2951, allocations: 4 kB / 443.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.312e-05/0.2951, allocations: 321.3 kB / 443.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.636e-05/0.2952, allocations: 41.58 kB / 443.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.471e-05/0.2953, allocations: 76.12 kB / 443.7 MB, free: 35.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.919e-05/0.2954, allocations: 56.16 kB / 443.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2954, allocations: 0 / 443.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000236/0.2957, allocations: 165.6 kB / 443.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2957, allocations: 5.625 kB / 443.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2957, allocations: 3.938 kB / 443.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.2957, allocations: 2.906 kB / 443.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001809/0.2959, allocations: 49.02 kB / 444 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.941e-05/0.2959, allocations: 2.562 kB / 444 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.416e-05/0.296, allocations: 21.47 kB / 444 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.296, allocations: 9.281 kB / 444 MB, free: 34.93 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: Cz2.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Cz1.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 prepare postOptimizeDAE: time 0.000207/0.2963, allocations: 173.2 kB / 444.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.91e-05/0.2963, allocations: 7.562 kB / 444.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.916e-05/0.2963, allocations: 19.72 kB / 444.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.2964, allocations: 0 / 444.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.2964, allocations: 3.234 kB / 444.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.2964, allocations: 2.719 kB / 444.2 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002283/0.2966, allocations: 251 kB / 444.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2966, allocations: 3.938 kB / 444.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.2968, allocations: 34.72 kB / 444.5 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2968, allocations: 2.844 kB / 444.5 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.2968, allocations: 8 kB / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2968, allocations: 0 / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2968, allocations: 0 / 444.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003377/0.2972, allocations: 276.9 kB / 444.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.26e-05/0.2972, allocations: 95.69 kB / 444.9 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.326e-05/0.2973, allocations: 7.188 kB / 444.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.2974, allocations: 6.969 kB / 444.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.2974, allocations: 12.84 kB / 444.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.2974, allocations: 2.938 kB / 444.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.582e-05/0.2975, allocations: 96.77 kB / 445 MB, free: 34.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2975, allocations: 0 / 445 MB, free: 34.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002619/0.2977, allocations: 42.91 kB / 445 MB, free: 34.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cz1.T,Cz2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0005111/0.2983, allocations: 0.8179 MB / 445.8 MB, free: 33.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002269/0.2985, allocations: 115 kB / 446 MB, free: 33.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.2985, allocations: 3 kB / 446 MB, free: 33.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.429e-05/0.2986, allocations: 60.47 kB / 446 MB, free: 33.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/0.2989, allocations: 9.938 kB / 446 MB, free: 33.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.3001, allocations: 0.9882 MB / 447 MB, free: 32.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.3002, allocations: 0.7137 MB / 447.7 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.994e-05/0.3003, allocations: 11 kB / 447.7 MB, free: 31.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.101e-05/0.3003, allocations: 43.23 kB / 447.8 MB, free: 31.91 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3004, allocations: 0 / 447.8 MB, free: 31.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.3157, allocations: 2.335 MB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002688/0.316, allocations: 228.1 kB / 450.3 MB, free: 31.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.989, allocations: 4 kB / 450.3 MB, free: 31.49 MB / 350.1 MB (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.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_openLoop_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_openLoop.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe 2>&1) Environment - environmentSimulation: