Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Modelling_principles.M1_TimeDomain.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.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") translateModel(AES.Coursework.Modelling_principles.M1_TimeDomain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Modelling_principles.M1_TimeDomain") [/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.09721/0.09721, allocations: 21.6 MB / 37.4 MB, free: 0.7539 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.00119/0.00119, allocations: 188.5 kB / 43.63 MB, free: 3.559 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.271/1.271, allocations: 205.1 MB / 254.8 MB, free: 14.24 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.0008675/0.0008675, allocations: 112.3 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 54.75 kB / 372.3 MB, free: 59.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07338/0.07452, allocations: 51.96 MB / 424.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Modelling_principles.M1_TimeDomain): time 0.001574/0.07615, allocations: 0.6547 MB / 425 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001833/0.07635, allocations: 71.89 kB / 425 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.719e-05/0.07639, allocations: 0 / 425 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.801e-05/0.07642, allocations: 3.938 kB / 425 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.303e-05/0.0765, allocations: 3.984 kB / 425 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001549/0.07666, allocations: 15.92 kB / 425 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.365e-05/0.07673, allocations: 39.84 kB / 425.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.727e-05/0.07679, allocations: 16.11 kB / 425.1 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.564e-05/0.07682, allocations: 11.94 kB / 425.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.093e-05/0.0769, allocations: 27.84 kB / 425.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.07692, allocations: 8 kB / 425.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.07694, allocations: 4 kB / 425.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.07696, allocations: 7.922 kB / 425.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.07699, allocations: 27.86 kB / 425.2 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.368e-05/0.07705, allocations: 23.84 kB / 425.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.07706, allocations: 0 / 425.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.07707, allocations: 0 / 425.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.07708, allocations: 0 / 425.2 MB, free: 13.59 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0003489/0.07743, allocations: 375.3 kB / 425.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.883e-05/0.07746, allocations: 8.031 kB / 425.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.0775, allocations: 8.844 kB / 425.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.901e-05/0.07757, allocations: 176.2 kB / 425.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.736e-06/0.07758, allocations: 4.375 kB / 425.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.07761, allocations: 4.375 kB / 425.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.07775, allocations: 77.66 kB / 425.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.597e-06/0.07777, allocations: 4 kB / 425.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.07778, allocations: 0 / 425.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.196e-06/0.0778, allocations: 4 kB / 425.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.677e-05/0.07787, allocations: 31.98 kB / 425.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003389/0.07821, allocations: 308.6 kB / 426.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.07844, allocations: 94.55 kB / 426.3 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.919e-05/0.0785, allocations: 32.84 kB / 426.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.07852, allocations: 8 kB / 426.3 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.293e-05/0.07854, allocations: 30.56 kB / 426.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.07855, allocations: 0 / 426.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001932/0.07874, allocations: 101.8 kB / 426.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.413e-05/0.07878, allocations: 55.41 kB / 426.5 MB, free: 12.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.665e-05/0.07884, allocations: 117.8 kB / 426.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-06/0.07885, allocations: 25.7 kB / 426.6 MB, free: 11.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.155e-05/0.07889, allocations: 96.03 kB / 426.7 MB, free: 11.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.07891, allocations: 43.45 kB / 426.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.07895, allocations: 21.72 kB / 426.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.079, allocations: 323.5 kB / 427.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.452e-05/0.07904, allocations: 23.98 kB / 427.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.258e-05/0.07909, allocations: 45.12 kB / 427.2 MB, free: 11.4 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.07943, allocations: 121.5 kB / 427.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.07944, allocations: 4 kB / 427.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001161/0.07956, allocations: 101.6 kB / 427.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.367e-06/0.07958, allocations: 4 kB / 427.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.07959, allocations: 0 / 427.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.07961, allocations: 8 kB / 427.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.07975, allocations: 35.92 kB / 427.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.07977, allocations: 0 / 427.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.949e-05/0.07981, allocations: 11.94 kB / 427.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.633e-06/0.07982, allocations: 384 / 427.5 MB, free: 11.11 MB / 298.7 MB Warning: Assuming fixed start value for the following 3 variables: I:VARIABLE(start = 0.0 fixed = true ) type: Real Ta:VARIABLE(start = 10.0 fixed = true ) type: Real Tw:VARIABLE(start = 10.0 fixed = true ) type: Real 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 (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.0001254/0.07996, allocations: 128.2 kB / 427.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.07999, allocations: 7.906 kB / 427.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001542/0.08015, allocations: 102 kB / 427.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.08016, allocations: 19.86 kB / 427.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.08017, allocations: 3.984 kB / 427.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.08017, allocations: 0 / 427.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.0803, allocations: 189.5 kB / 427.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.08031, allocations: 0 / 427.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001453/0.08046, allocations: 31.98 kB / 427.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.08047, allocations: 0 / 427.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.08049, allocations: 4 kB / 427.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.08049, allocations: 0 / 427.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.0805, allocations: 0 / 427.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.08158, allocations: 1.347 MB / 429.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.08162, allocations: 88.95 kB / 429.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.708e-06/0.08163, allocations: 4 kB / 429.4 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.289e-05/0.0817, allocations: 4 kB / 429.4 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.284e-05/0.08173, allocations: 11.97 kB / 429.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.08174, allocations: 4 kB / 429.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.984e-05/0.08177, allocations: 92.03 kB / 429.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.08178, allocations: 0 / 429.5 MB, free: 8.863 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002765/0.08206, allocations: 20 kB / 429.5 MB, free: 8.844 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (I,Ta,Tw) * 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 (11): * Single equations (assignments): 11 * 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.806e-05/0.08215, allocations: 99.25 kB / 429.6 MB, free: 8.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001431/0.0823, allocations: 59.92 kB / 429.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.08231, allocations: 4 kB / 429.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.233e-05/0.08236, allocations: 36.25 kB / 429.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.08257, allocations: 12.16 kB / 429.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.08301, allocations: 387.6 kB / 430.1 MB, free: 8.203 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001115/0.08313, allocations: 0.6926 MB / 430.8 MB, free: 7.484 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.951e-05/0.08318, allocations: 12.66 kB / 430.8 MB, free: 7.469 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.385e-05/0.08322, allocations: 15.44 kB / 430.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08322, allocations: 192 / 430.8 MB, free: 7.453 MB / 298.7 MB Notification: Performance of Templates: time 0.002217/0.08545, allocations: 0.8096 MB / 431.6 MB, free: 6.645 MB / 298.7 MB make -j1 -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.makefile (rm -f AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; mkfifo AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe ; head -c 1048576 < AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe >> ../files/AES_AES.Coursework.Modelling_principles.M1_TimeDomain.sim & ./AES_AES.Coursework.Modelling_principles.M1_TimeDomain -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Modelling_principles.M1_TimeDomain.pipe 2>&1)