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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01") translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09754/0.09754, allocations: 21.61 MB / 36.56 MB, free: 1.059 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 182.4 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.2 MB / 272.1 MB, free: 1.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.0008054, allocations: 95 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003249, allocations: 8 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07962/0.07997, allocations: 55.83 MB / 452.9 MB, free: 6.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2717/0.3517, allocations: 82.66 MB / 0.523 GB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.3519, allocations: 91.58 kB / 0.5231 GB, free: 13.07 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:49:3-49:23:writable] Warning: Connecting two signal sources while connecting iBias to Bias. Notification: Performance of FrontEnd - DAE generated: time 0.01978/0.3717, allocations: 8.012 MB / 0.5309 GB, free: 10.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3717, allocations: 0 / 0.5309 GB, free: 10.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.958e-05/0.3717, allocations: 19.59 kB / 0.5309 GB, free: 10.63 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001056/0.3728, allocations: 0.7523 MB / 0.5316 GB, free: 10.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.3728, allocations: 7.688 kB / 0.5316 GB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.86e-05/0.3729, allocations: 55.09 kB / 0.5317 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000677/0.3736, allocations: 481.5 kB / 0.5322 GB, free: 9.684 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.3737, allocations: 37.06 kB / 0.5322 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.411e-05/0.3737, allocations: 53.52 kB / 0.5322 GB, free: 9.668 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.3743, allocations: 405 kB / 0.5326 GB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3743, allocations: 3.953 kB / 0.5326 GB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.3743, allocations: 16.78 kB / 0.5326 GB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3743, allocations: 11.53 kB / 0.5327 GB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004768/0.3748, allocations: 278.5 kB / 0.5329 GB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001397/0.3762, allocations: 1.375 MB / 0.5343 GB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.3766, allocations: 263.5 kB / 0.5345 GB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.3766, allocations: 14.81 kB / 0.5345 GB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.548e-05/0.3766, allocations: 38.3 kB / 0.5346 GB, free: 8.465 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.493e-06/0.3766, allocations: 0 / 0.5346 GB, free: 8.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.000691/0.3773, allocations: 400.8 kB / 0.535 GB, free: 8.367 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.3774, allocations: 63.06 kB / 0.535 GB, free: 8.297 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003674/0.3777, allocations: 361.3 kB / 0.5354 GB, free: 8.145 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.3778, allocations: 36.11 kB / 0.5354 GB, free: 8.113 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.3779, allocations: 256.8 kB / 0.5356 GB, free: 7.945 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.902e-05/0.3779, allocations: 138.6 kB / 0.5358 GB, free: 7.848 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.378, allocations: 10.75 kB / 0.5358 GB, free: 7.848 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.006e-05/0.378, allocations: 354.8 kB / 0.5361 GB, free: 7.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.3782, allocations: 110.1 kB / 0.5362 GB, free: 7.504 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002284/0.3785, allocations: 253 kB / 0.5365 GB, free: 7.328 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.38, allocations: 0.6003 MB / 0.537 GB, free: 7.223 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.38, allocations: 3.938 kB / 0.5371 GB, free: 7.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005907/0.3806, allocations: 454.6 kB / 0.5375 GB, free: 7.102 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.3806, allocations: 7.781 kB / 0.5375 GB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3807, allocations: 4.406 kB / 0.5375 GB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.3807, allocations: 11.62 kB / 0.5375 GB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004514/0.3811, allocations: 123.3 kB / 0.5376 GB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.3812, allocations: 11.62 kB / 0.5376 GB, free: 7.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002885/0.3814, allocations: 65.36 kB / 0.5377 GB, free: 7.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.3815, allocations: 26.38 kB / 0.5377 GB, free: 7.031 MB / 362.7 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: D.Fcs1.y = D.Fcs1.y_start D.Fcs2.y = D.Fcs2.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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): 66 * 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.0002005/0.3817, allocations: 188.5 kB / 0.5379 GB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.416e-05/0.3817, allocations: 42.7 kB / 0.5379 GB, free: 6.875 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005128/0.3823, allocations: 373.3 kB / 0.5383 GB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.3823, allocations: 3.688 kB / 0.5383 GB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3823, allocations: 7.875 kB / 0.5383 GB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3823, allocations: 0 / 0.5383 GB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.3827, allocations: 455.3 kB / 0.5387 GB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3827, allocations: 0 / 0.5387 GB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004502/0.3831, allocations: 96.02 kB / 0.5388 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3832, allocations: 3.844 kB / 0.5388 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3832, allocations: 6.562 kB / 0.5388 GB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3832, allocations: 7.812 kB / 0.5389 GB, free: 6.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3832, allocations: 0 / 0.5389 GB, free: 6.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.3838, allocations: 0.5591 MB / 0.5394 GB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.798e-05/0.3839, allocations: 131.8 kB / 0.5395 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/0.3839, allocations: 3.875 kB / 0.5395 GB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.3842, allocations: 27.08 kB / 0.5396 GB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.3842, allocations: 31.3 kB / 0.5396 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.3843, allocations: 11.59 kB / 0.5396 GB, free: 6.105 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002942/0.3846, allocations: 284.4 kB / 0.5399 GB, free: 5.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3846, allocations: 0 / 0.5399 GB, free: 5.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003575/0.3849, allocations: 100.2 kB / 0.54 GB, free: 5.969 MB / 362.7 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 (43): * Single equations (assignments): 43 * 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.0001096/0.385, allocations: 129.5 kB / 0.5401 GB, free: 5.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004711/0.3855, allocations: 328.2 kB / 0.5404 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.3855, allocations: 1 kB / 0.5404 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.3857, allocations: 149.9 kB / 0.5405 GB, free: 5.785 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.386, allocations: 63.44 kB / 0.5406 GB, free: 5.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.3871, allocations: 1.191 MB / 0.5418 GB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.3874, allocations: 0.8718 MB / 0.5426 GB, free: 4.195 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002088/0.3876, allocations: 58.38 kB / 0.5427 GB, free: 4.164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.301e-05/0.3877, allocations: 34.44 kB / 0.5427 GB, free: 4.156 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3877, allocations: 192 / 0.5427 GB, free: 4.156 MB / 362.7 MB Notification: Performance of Templates: time 0.005434/0.3931, allocations: 3.069 MB / 0.5457 GB, free: 2.711 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)