Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.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_Transport.HE_simple_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001") translateModel(AES.Coursework.ThermSys_Transport.HE_simple_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001") [/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.09325/0.09325, allocations: 21.6 MB / 37.4 MB, free: 0.7617 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.001117/0.001117, allocations: 192.4 kB / 43.64 MB, free: 3.562 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.267/1.267, 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.0009772/0.0009769, allocations: 107.8 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.001081, allocations: 56.2 kB / 372.3 MB, free: 59.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07752/0.07862, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.HE_simple_case_001): time 0.002896/0.08155, allocations: 2.433 MB / 426.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004824/0.08206, allocations: 239.1 kB / 427 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001897/0.08226, allocations: 11.94 kB / 427 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.545e-05/0.08235, allocations: 27.78 kB / 427 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.08259, allocations: 87.31 kB / 427.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001305/0.08273, allocations: 31.95 kB / 427.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.08294, allocations: 282.5 kB / 427.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002023/0.08315, allocations: 108.2 kB / 427.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.08331, allocations: 119.3 kB / 427.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.08343, allocations: 99.48 kB / 427.7 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.08347, allocations: 8 kB / 427.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.585e-05/0.08351, allocations: 12 kB / 427.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.862e-05/0.08354, allocations: 27.86 kB / 427.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.619e-05/0.08363, allocations: 107.4 kB / 427.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.08379, allocations: 211.2 kB / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.0838, allocations: 0 / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.08381, allocations: 4 kB / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.08382, allocations: 0 / 428.1 MB, free: 10.7 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005765/0.0844, allocations: 0.5023 MB / 428.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.08444, allocations: 12.03 kB / 428.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.869e-05/0.08449, allocations: 20.66 kB / 428.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.08474, allocations: 260.8 kB / 428.9 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.29e-05/0.08476, allocations: 12.38 kB / 428.9 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.08479, allocations: 20.28 kB / 428.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.085, allocations: 170.5 kB / 429.1 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.08502, allocations: 0 / 429.1 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.08504, allocations: 4 kB / 429.1 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.08505, allocations: 7.938 kB / 429.1 MB, free: 9.586 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001593/0.08522, allocations: 91.89 kB / 429.2 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006178/0.08584, allocations: 0.8094 MB / 430 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001332/0.08599, allocations: 86.52 kB / 430.1 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.577e-05/0.08605, allocations: 36.84 kB / 430.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.08607, allocations: 4 kB / 430.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.08609, allocations: 38.44 kB / 430.1 MB, free: 8.438 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.923e-06/0.0861, allocations: 0 / 430.1 MB, free: 8.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002681/0.08637, allocations: 133.4 kB / 430.3 MB, free: 8.301 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.124e-05/0.0864, allocations: 51.41 kB / 430.3 MB, free: 8.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.0866, allocations: 271 kB / 430.6 MB, free: 7.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.08662, allocations: 25.7 kB / 430.6 MB, free: 7.934 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/0.08669, allocations: 143.9 kB / 430.8 MB, free: 7.789 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.08671, allocations: 31.55 kB / 430.8 MB, free: 7.758 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.876e-05/0.08676, allocations: 25.72 kB / 430.8 MB, free: 7.727 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.0868, allocations: 334.8 kB / 431.1 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.059e-05/0.08686, allocations: 31.98 kB / 431.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.215e-05/0.08692, allocations: 50.5 kB / 431.2 MB, free: 7.301 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004461/0.08737, allocations: 162.5 kB / 431.4 MB, free: 7.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.08738, allocations: 0 / 431.4 MB, free: 7.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001761/0.08756, allocations: 137.3 kB / 431.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.08759, allocations: 8 kB / 431.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.0876, allocations: 0 / 431.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.08761, allocations: 0 / 431.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.08777, allocations: 27.98 kB / 431.5 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.08779, allocations: 3.938 kB / 431.5 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.379e-05/0.08789, allocations: 19.81 kB / 431.6 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.08791, allocations: 8 kB / 431.6 MB, free: 6.926 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 14 * 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.0001739/0.08808, allocations: 131.6 kB / 431.7 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.914e-05/0.08813, allocations: 23.72 kB / 431.7 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.393e-05/0.08818, allocations: 25.73 kB / 431.8 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.08819, allocations: 12 kB / 431.8 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.0882, allocations: 3.938 kB / 431.8 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.08821, allocations: 0 / 431.8 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.08839, allocations: 241.7 kB / 432 MB, free: 6.434 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.0884, allocations: 3.938 kB / 432 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.08854, allocations: 19.98 kB / 432 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.08855, allocations: 0 / 432 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.08857, allocations: 4 kB / 432 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.08857, allocations: 0 / 432 MB, free: 6.406 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.08858, allocations: 3.938 kB / 432 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001185/0.08977, allocations: 1.392 MB / 433.4 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.08982, allocations: 92.86 kB / 433.5 MB, free: 4.766 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.45e-05/0.08985, allocations: 4 kB / 433.5 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.769e-05/0.08995, allocations: 11.91 kB / 433.5 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.357e-05/0.08998, allocations: 7.938 kB / 433.5 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.09, allocations: 4 kB / 433.5 MB, free: 4.738 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001228/0.09012, allocations: 190 kB / 433.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09013, allocations: 0 / 433.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003049/0.09044, allocations: 68 kB / 433.8 MB, free: 4.488 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (8): * Single equations (assignments): 8 * 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 6.43e-05/0.09051, allocations: 103.2 kB / 433.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.09066, allocations: 71.97 kB / 434 MB, free: 4.309 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.09067, allocations: 3.938 kB / 434 MB, free: 4.305 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.277e-05/0.09072, allocations: 27.98 kB / 434 MB, free: 4.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.09105, allocations: 53.69 kB / 434.1 MB, free: 4.227 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007119/0.09177, allocations: 0.6691 MB / 434.7 MB, free: 3.512 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001208/0.0919, allocations: 0.7326 MB / 435.5 MB, free: 2.754 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.09204, allocations: 34.27 kB / 435.5 MB, free: 2.719 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.448e-05/0.0921, allocations: 19.44 kB / 435.5 MB, free: 2.699 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.0921, allocations: 7.875 kB / 435.5 MB, free: 2.691 MB / 298.7 MB Notification: Performance of Templates: time 0.00447/0.09657, allocations: 2.445 MB / 438 MB, free: 252 kB / 298.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.sim & ./AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_Transport.HE_simple_case_001.pipe 2>&1)