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: translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop") translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 109.3 kB / 15.99 MB, free: 6.359 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.001316/0.001316, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.209/1.209, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08838/0.08838, allocations: 22.32 MB / 313.1 MB, free: 9.043 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001299, allocations: 66.83 kB / 380.9 MB, free: 41.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07902/0.08033, allocations: 54.96 MB / 435.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop): time 0.00344/0.08381, allocations: 2.148 MB / 438 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004586/0.0843, allocations: 155.4 kB / 438.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.08444, allocations: 4 kB / 438.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.08455, allocations: 15.84 kB / 438.2 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001845/0.08477, allocations: 43.62 kB / 438.2 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001405/0.08492, allocations: 31.97 kB / 438.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002154/0.08515, allocations: 195.1 kB / 438.5 MB, free: 10.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.08537, allocations: 107.6 kB / 438.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.08549, allocations: 71.78 kB / 438.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.08563, allocations: 83.62 kB / 438.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.08e-05/0.08567, allocations: 16 kB / 438.7 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.3e-05/0.08571, allocations: 16 kB / 438.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.604e-05/0.08575, allocations: 35.84 kB / 438.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.001e-05/0.08584, allocations: 87.61 kB / 438.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.08602, allocations: 151.9 kB / 439 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.08603, allocations: 4 kB / 439 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.08603, allocations: 0 / 439 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.08605, allocations: 3.938 kB / 439 MB, free: 10.27 MB / 318.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.0005513/0.08661, allocations: 455 kB / 439.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.08666, allocations: 12.03 kB / 439.5 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.587e-05/0.08671, allocations: 20.75 kB / 439.5 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.08685, allocations: 184.1 kB / 439.7 MB, free: 9.523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.08688, allocations: 16.38 kB / 439.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.08692, allocations: 16.38 kB / 439.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.08721, allocations: 158.8 kB / 439.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.08724, allocations: 192 / 439.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.08726, allocations: 15.94 kB / 439.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.08728, allocations: 7.938 kB / 439.9 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.08749, allocations: 103.9 kB / 440 MB, free: 9.207 MB / 318.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.0008531/0.08835, allocations: 0.8561 MB / 440.9 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002002/0.08856, allocations: 130.4 kB / 441 MB, free: 8.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.08869, allocations: 76.84 kB / 441.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.08871, allocations: 0 / 441.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.08873, allocations: 34.56 kB / 441.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 9.12e-07/0.08874, allocations: 0 / 441.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0003418/0.08909, allocations: 172.4 kB / 441.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.894e-05/0.08913, allocations: 59.33 kB / 441.3 MB, free: 7.723 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.724e-05/0.08922, allocations: 126.1 kB / 441.4 MB, free: 7.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.08924, allocations: 25.7 kB / 441.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.619e-05/0.08931, allocations: 128.2 kB / 441.6 MB, free: 7.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.08936, allocations: 63.09 kB / 441.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.143e-05/0.08941, allocations: 37.7 kB / 441.7 MB, free: 7.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.0895, allocations: 318.8 kB / 442 MB, free: 7.004 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.315e-05/0.0896, allocations: 43.97 kB / 442 MB, free: 6.961 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.806e-05/0.0897, allocations: 76.28 kB / 442.1 MB, free: 6.871 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005575/0.09026, allocations: 226.3 kB / 442.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.09028, allocations: 0 / 442.3 MB, free: 6.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002518/0.09053, allocations: 172.2 kB / 442.5 MB, free: 6.465 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.09055, allocations: 4 kB / 442.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.09056, allocations: 0 / 442.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.09058, allocations: 4 kB / 442.5 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/0.09078, allocations: 43.91 kB / 442.6 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.0908, allocations: 4 kB / 442.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.893e-05/0.09089, allocations: 19.78 kB / 442.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.09091, allocations: 8.125 kB / 442.6 MB, free: 6.383 MB / 318.1 MB Warning: Assuming fixed start value for the following 2 variables: 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 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 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.000219/0.09113, allocations: 165.2 kB / 442.7 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.113e-05/0.09117, allocations: 11.81 kB / 442.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.09122, allocations: 16.84 kB / 442.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.09123, allocations: 4 kB / 442.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.09124, allocations: 0 / 442.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.09124, allocations: 3.938 kB / 442.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.09149, allocations: 253.5 kB / 443 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.0915, allocations: 0 / 443 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.09168, allocations: 43.91 kB / 443.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.09169, allocations: 4 kB / 443.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.09171, allocations: 0 / 443.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.09172, allocations: 0 / 443.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.09172, allocations: 0 / 443.1 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003552/0.09208, allocations: 295.2 kB / 443.4 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.09213, allocations: 92.97 kB / 443.5 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.09215, allocations: 0 / 443.5 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.524e-05/0.09225, allocations: 8 kB / 443.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.0923, allocations: 11.92 kB / 443.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.09231, allocations: 4 kB / 443.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.564e-05/0.09236, allocations: 95.27 kB / 443.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09237, allocations: 4.062 kB / 443.6 MB, free: 5.305 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002512/0.09262, allocations: 43.84 kB / 443.6 MB, free: 5.262 MB / 318.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 8.609e-05/0.09271, allocations: 103.2 kB / 443.7 MB, free: 5.148 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.09296, allocations: 123.8 kB / 443.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.592e-06/0.09297, allocations: 0 / 443.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.902e-05/0.09307, allocations: 55.08 kB / 443.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.09332, allocations: 22.67 kB / 443.9 MB, free: 4.957 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/0.09409, allocations: 0.5127 MB / 444.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.09432, allocations: 0.7201 MB / 445.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.494e-05/0.09437, allocations: 15.44 kB / 445.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09437, allocations: 0 / 445.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of Templates: time 0.002796/0.09718, allocations: 1.666 MB / 446.8 MB, free: 1.984 MB / 318.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe 2>&1)