Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Containment_elements.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_component_models.Containment_elements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Containment_elements") translateModel(AES.Coursework.ThermSys_component_models.Containment_elements,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Containment_elements") [/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.0923/0.0923, allocations: 21.61 MB / 37.41 MB, free: 0.7344 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 184.5 kB / 43.63 MB, free: 3.574 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 254.8 MB, free: 14.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009255/0.0009255, allocations: 103.5 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009653/0.0009652, allocations: 50.67 kB / 372.3 MB, free: 59.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07851/0.07949, allocations: 51.98 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Containment_elements): time 0.002383/0.08191, allocations: 1.98 MB / 426.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004459/0.08237, allocations: 243.3 kB / 426.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.385e-05/0.08243, allocations: 0 / 426.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001548/0.0826, allocations: 15.86 kB / 426.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.08289, allocations: 103.5 kB / 426.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.482e-05/0.08297, allocations: 43.89 kB / 426.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.08321, allocations: 366.9 kB / 427 MB, free: 11.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.08332, allocations: 64.78 kB / 427.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.424e-05/0.08339, allocations: 79.77 kB / 427.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001476/0.08355, allocations: 127.6 kB / 427.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.08358, allocations: 15.94 kB / 427.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001099/0.0837, allocations: 55.95 kB / 427.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.014e-05/0.08377, allocations: 71.83 kB / 427.5 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.524e-05/0.08385, allocations: 95.52 kB / 427.5 MB, free: 11.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001917/0.08405, allocations: 267.2 kB / 427.8 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.08406, allocations: 0 / 427.8 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.82e-07/0.08407, allocations: 0 / 427.8 MB, free: 11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.08408, allocations: 0 / 427.8 MB, free: 11 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008411/0.08492, allocations: 0.5492 MB / 428.4 MB, free: 10.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.08496, allocations: 16.02 kB / 428.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.08502, allocations: 16.75 kB / 428.4 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.08528, allocations: 319.8 kB / 428.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.0853, allocations: 12.38 kB / 428.7 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.08534, allocations: 12.38 kB / 428.7 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001849/0.08553, allocations: 142.2 kB / 428.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.08554, allocations: 192 / 428.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.08556, allocations: 7.938 kB / 428.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.08557, allocations: 4 kB / 428.9 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001486/0.08572, allocations: 103.9 kB / 429 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007217/0.08645, allocations: 0.6629 MB / 429.6 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006818/0.08715, allocations: 266.3 kB / 429.9 MB, free: 8.727 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.08727, allocations: 81.08 kB / 430 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.77e-05/0.08729, allocations: 8 kB / 430 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.296e-05/0.08731, allocations: 38.55 kB / 430 MB, free: 8.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.08731, allocations: 0 / 430 MB, free: 8.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008941/0.08821, allocations: 497.1 kB / 430.5 MB, free: 8.055 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.08825, allocations: 51.41 kB / 430.6 MB, free: 7.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.08849, allocations: 323.7 kB / 430.9 MB, free: 7.668 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/0.08851, allocations: 25.7 kB / 430.9 MB, free: 7.637 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.17e-05/0.08856, allocations: 124 kB / 431 MB, free: 7.512 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.0886, allocations: 59.19 kB / 431.1 MB, free: 7.453 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.08866, allocations: 29.72 kB / 431.1 MB, free: 7.418 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.08872, allocations: 330.8 kB / 431.4 MB, free: 7.086 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.5e-05/0.08881, allocations: 75.95 kB / 431.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.29e-05/0.08891, allocations: 89.61 kB / 431.6 MB, free: 6.918 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.09019, allocations: 486.9 kB / 432.1 MB, free: 6.438 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.0902, allocations: 0 / 432.1 MB, free: 6.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004272/0.09063, allocations: 303 kB / 432.4 MB, free: 6.129 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/0.09066, allocations: 10.5 kB / 432.4 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.09067, allocations: 0 / 432.4 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001965/0.09087, allocations: 49.62 kB / 432.4 MB, free: 6.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002104/0.09109, allocations: 59.89 kB / 432.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.09243, allocations: 2.619 MB / 435.1 MB, free: 3.117 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.0926, allocations: 19.86 kB / 435.1 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.09262, allocations: 12 kB / 435.1 MB, free: 3.086 MB / 298.7 MB Warning: Assuming fixed start value for the following 7 variables: homogeneous.T[1]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[2]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[3]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] homogeneous.T[4]:VARIABLE(min = 0.0 start = homogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [4] nonhomogeneous.T[1]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[2]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] nonhomogeneous.T[3]:VARIABLE(min = 0.0 start = nonhomogeneous.Tstart unit = "K" fixed = true nominal = 300.0 ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001869/0.09281, allocations: 172.6 kB / 435.3 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/0.09286, allocations: 15.81 kB / 435.3 MB, free: 2.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.09292, allocations: 29.53 kB / 435.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.09293, allocations: 0 / 435.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.09294, allocations: 0 / 435.3 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.09295, allocations: 3.984 kB / 435.3 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.09318, allocations: 301.3 kB / 435.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.09319, allocations: 3.938 kB / 435.6 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.09348, allocations: 55.89 kB / 435.7 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001605/0.09365, allocations: 45.69 kB / 435.7 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.09369, allocations: 8 kB / 435.8 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001275/0.09497, allocations: 2.615 MB / 438.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.09499, allocations: 0 / 438.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/0.09998, allocations: 4.978 MB / 443.3 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.865e-05/0.1001, allocations: 104.8 kB / 443.4 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1001, allocations: 8 kB / 443.5 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.1003, allocations: 11.92 kB / 443.5 MB, free: 9.973 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.1003, allocations: 11.92 kB / 443.5 MB, free: 9.961 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1003, allocations: 8 kB / 443.5 MB, free: 9.953 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002024/0.1006, allocations: 237.5 kB / 443.7 MB, free: 9.723 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1006, allocations: 0 / 443.7 MB, free: 9.723 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000446/0.101, allocations: 108 kB / 443.8 MB, free: 9.617 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (homogeneous.T[1],homogeneous.T[2],homogeneous.T[3],homogeneous.T[4],nonhomogeneous.T[1],nonhomogeneous.T[2],nonhomogeneous.T[3]) * 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 (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001533/0.1012, allocations: 112.3 kB / 443.9 MB, free: 9.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005783/0.1018, allocations: 433.3 kB / 444.4 MB, free: 9.051 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1018, allocations: 0 / 444.4 MB, free: 9.051 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.1021, allocations: 321.3 kB / 444.7 MB, free: 8.711 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.1025, allocations: 43.97 kB / 444.7 MB, free: 8.668 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.1041, allocations: 1.3 MB / 446 MB, free: 7.301 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.1043, allocations: 0.7557 MB / 446.8 MB, free: 6.516 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000136/0.1045, allocations: 37.53 kB / 446.8 MB, free: 6.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.745e-05/0.1046, allocations: 23.42 kB / 446.8 MB, free: 6.457 MB / 314.7 MB Notification: Performance of SimCode: time 2.8e-07/0.1046, allocations: 4 kB / 446.8 MB, free: 6.453 MB / 314.7 MB Notification: Performance of Templates: time 0.00743/0.112, allocations: 4.866 MB / 451.7 MB, free: 1.59 MB / 314.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Containment_elements.sim & ./AES_AES.Coursework.ThermSys_component_models.Containment_elements -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Containment_elements.pipe 2>&1)