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.008889/0.008889, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001969/0.001969, allocations: 195.8 kB / 16.68 MB, free: 5.934 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1957/0.1957, allocations: 22.35 MB / 312.9 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 65.48 kB / 436.6 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09082/0.09204, allocations: 54.97 MB / 491.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop): time 0.002473/0.09454, allocations: 2.095 MB / 493.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003107/0.09487, allocations: 159.4 kB / 493.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.387e-05/0.09494, allocations: 4 kB / 493.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 6.515e-05/0.09502, allocations: 27.72 kB / 493.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001415/0.09517, allocations: 59.48 kB / 493.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001302/0.09531, allocations: 35.95 kB / 493.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.0955, allocations: 195 kB / 494.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.09572, allocations: 99.67 kB / 494.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.111e-05/0.09579, allocations: 71.72 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.09592, allocations: 87.67 kB / 494.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.622e-05/0.09595, allocations: 16 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.532e-05/0.09598, allocations: 16 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.394e-05/0.09602, allocations: 31.86 kB / 494.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.469e-05/0.09611, allocations: 91.66 kB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.09632, allocations: 195.5 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.09633, allocations: 0 / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.09634, allocations: 0 / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.09635, allocations: 0 / 494.7 MB, free: 14.53 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005656/0.09692, allocations: 458.8 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.09696, allocations: 12.03 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.781e-05/0.09702, allocations: 50.73 kB / 495.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.09706, allocations: 16.84 kB / 495.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.09721, allocations: 188.1 kB / 495.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.09724, allocations: 20.31 kB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.09729, allocations: 16.38 kB / 495.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.09761, allocations: 158.8 kB / 495.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.09763, allocations: 3.938 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.09766, allocations: 12 kB / 495.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.09767, allocations: 15.97 kB / 495.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.0979, allocations: 99.95 kB / 495.8 MB, free: 13.4 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.0009395/0.09885, allocations: 0.86 MB / 496.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.09911, allocations: 126.5 kB / 496.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.09925, allocations: 83.36 kB / 496.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.09928, allocations: 0 / 496.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.09932, allocations: 38.5 kB / 496.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=16): time 9.91e-07/0.09932, allocations: 0 / 496.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003793/0.09971, allocations: 165.8 kB / 497 MB, free: 11.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.09976, allocations: 55.41 kB / 497.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.632e-05/0.09986, allocations: 121.8 kB / 497.2 MB, free: 11.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.09988, allocations: 25.7 kB / 497.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.109e-05/0.09996, allocations: 132.3 kB / 497.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.309e-05/0.1, allocations: 63.47 kB / 497.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/0.1001, allocations: 41.66 kB / 497.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.1002, allocations: 322.8 kB / 497.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.568e-05/0.1003, allocations: 35.98 kB / 497.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.1004, allocations: 84.2 kB / 497.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.101, allocations: 222.9 kB / 498.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.101, allocations: 4 kB / 498.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00026/0.1012, allocations: 165.4 kB / 498.3 MB, free: 10.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.1013, allocations: 7.984 kB / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1013, allocations: 128 / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1013, allocations: 8 kB / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.1015, allocations: 39.98 kB / 498.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1015, allocations: 7.938 kB / 498.3 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.918e-05/0.1016, allocations: 15.89 kB / 498.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.1016, allocations: 4 kB / 498.3 MB, free: 10.57 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 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001783/0.1018, allocations: 144.8 kB / 498.5 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.18e-05/0.1018, allocations: 7.953 kB / 498.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.797e-05/0.1019, allocations: 20.84 kB / 498.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1019, allocations: 0 / 498.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1019, allocations: 3.938 kB / 498.5 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1019, allocations: 7.938 kB / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002433/0.1021, allocations: 249.5 kB / 498.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1022, allocations: 0 / 498.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001852/0.1023, allocations: 39.92 kB / 498.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.1024, allocations: 4 kB / 498.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.1024, allocations: 0 / 498.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1024, allocations: 0 / 498.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1024, allocations: 3.938 kB / 498.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.1027, allocations: 291.3 kB / 499.1 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.1028, allocations: 89.03 kB / 499.2 MB, free: 9.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.1028, allocations: 4 kB / 499.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.486e-05/0.1029, allocations: 64 / 499.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.541e-05/0.103, allocations: 19.92 kB / 499.2 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.103, allocations: 4 kB / 499.2 MB, free: 9.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.113e-05/0.103, allocations: 99.2 kB / 499.3 MB, free: 9.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.103, allocations: 0 / 499.3 MB, free: 9.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.1033, allocations: 43.89 kB / 499.4 MB, free: 9.469 MB / 366.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 (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.0006127/0.1039, allocations: 0.8128 MB / 0.4884 GB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002356/0.1042, allocations: 115.8 kB / 0.4886 GB, free: 8.516 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1042, allocations: 0 / 0.4886 GB, free: 8.516 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.558e-05/0.1043, allocations: 55.91 kB / 0.4886 GB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.1046, allocations: 26.91 kB / 0.4886 GB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.1065, allocations: 1.877 MB / 0.4905 GB, free: 6.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.1067, allocations: 0.7123 MB / 0.4912 GB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.415e-05/0.1068, allocations: 16.64 kB / 0.4912 GB, free: 5.707 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.785e-05/0.1069, allocations: 39.42 kB / 0.4912 GB, free: 5.668 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1069, allocations: 0 / 0.4912 GB, free: 5.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.1267, allocations: 2.685 MB / 0.4938 GB, free: 3.164 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.521/7.648, allocations: 2.625 kB / 0.4938 GB, free: 3.164 MB / 366.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 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)