Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.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.Tuning_brushup.MSL_electrical_thermal_OpenLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop") [/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.09435/0.09435, allocations: 21.61 MB / 37.4 MB, free: 0.7422 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.001057/0.001057, allocations: 192.4 kB / 43.63 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.303/1.303, 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.0008971/0.0008972, allocations: 104.3 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001213, allocations: 52.41 kB / 372.3 MB, free: 59.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07287, allocations: 51.97 MB / 424.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.002714/0.07561, allocations: 2.299 MB / 426.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006899/0.07633, allocations: 0.5463 MB / 427.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000129/0.07647, allocations: 7.938 kB / 427.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.0766, allocations: 23.83 kB / 427.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.07673, allocations: 51.61 kB / 427.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001325/0.07687, allocations: 39.95 kB / 427.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.07706, allocations: 214.9 kB / 427.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.07722, allocations: 84.59 kB / 427.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.898e-05/0.0773, allocations: 71.72 kB / 427.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.419e-05/0.0774, allocations: 83.62 kB / 427.7 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.07743, allocations: 19.94 kB / 427.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.915e-05/0.07746, allocations: 12 kB / 427.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.0775, allocations: 31.91 kB / 427.8 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.629e-05/0.07757, allocations: 107.5 kB / 427.9 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001462/0.07772, allocations: 203.3 kB / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.07773, allocations: 0 / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.07774, allocations: 0 / 428.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.07774, 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0004729/0.07822, allocations: 479.4 kB / 428.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.07826, allocations: 8.031 kB / 428.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.07831, allocations: 24.75 kB / 428.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.07846, allocations: 208.1 kB / 428.8 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.07848, allocations: 16.81 kB / 428.8 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.07852, allocations: 16.38 kB / 428.8 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.07877, allocations: 183.5 kB / 429 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.07879, allocations: 3.938 kB / 429 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.07881, allocations: 8 kB / 429 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.07882, allocations: 4 kB / 429 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.07904, allocations: 125.7 kB / 429.1 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007132/0.07976, allocations: 0.6757 MB / 429.8 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.08, allocations: 130.5 kB / 429.9 MB, free: 8.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.08011, allocations: 72.77 kB / 430 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.08013, allocations: 7.938 kB / 430 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.08015, allocations: 38.56 kB / 430.1 MB, free: 8.551 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.193e-06/0.08016, allocations: 0 / 430.1 MB, free: 8.551 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003261/0.08049, allocations: 167 kB / 430.2 MB, free: 8.383 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.68e-05/0.08052, allocations: 55.34 kB / 430.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.985e-05/0.08058, allocations: 133.1 kB / 430.4 MB, free: 8.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.053e-05/0.0806, allocations: 29.7 kB / 430.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.08064, allocations: 132.1 kB / 430.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.08067, allocations: 63.16 kB / 430.6 MB, free: 7.949 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.011e-05/0.08072, allocations: 33.7 kB / 430.7 MB, free: 7.91 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.567e-05/0.08076, allocations: 322.8 kB / 431 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.08084, allocations: 43.92 kB / 431 MB, free: 7.543 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.514e-05/0.08093, allocations: 71.34 kB / 431.1 MB, free: 7.461 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.08112, allocations: 125.8 kB / 431.2 MB, free: 7.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.08112, allocations: 0 / 431.2 MB, free: 7.328 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002094/0.08134, allocations: 161.3 kB / 431.4 MB, free: 7.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.08136, allocations: 8 kB / 431.4 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.08137, allocations: 0 / 431.4 MB, free: 7.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.08138, allocations: 8.094 kB / 431.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001442/0.08153, allocations: 43.92 kB / 431.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.08154, allocations: 0 / 431.4 MB, free: 7.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.648e-05/0.08163, allocations: 15.89 kB / 431.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.016e-06/0.08164, allocations: 8 kB / 431.4 MB, free: 7.082 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * 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 6.097e-05/0.08171, allocations: 125.8 kB / 431.6 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.881e-05/0.08174, allocations: 15.78 kB / 431.6 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.08179, allocations: 24.84 kB / 431.6 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.08179, allocations: 0 / 431.6 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.0818, allocations: 4 kB / 431.6 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.08181, allocations: 7.984 kB / 431.6 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001757/0.08199, allocations: 249.5 kB / 431.9 MB, free: 6.605 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.082, allocations: 3.938 kB / 431.9 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.08216, allocations: 39.92 kB / 431.9 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.08217, allocations: 0 / 431.9 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.08218, allocations: 7.984 kB / 431.9 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.08219, allocations: 0 / 431.9 MB, free: 6.555 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.0822, allocations: 4 kB / 431.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.08379, allocations: 1.719 MB / 433.6 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.117e-05/0.08383, allocations: 88.98 kB / 433.7 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.08384, allocations: 8.062 kB / 433.7 MB, free: 4.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.08395, allocations: 11.98 kB / 433.7 MB, free: 4.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.096e-05/0.08399, allocations: 11.98 kB / 433.8 MB, free: 4.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.665e-06/0.08401, allocations: 4 kB / 433.8 MB, free: 4.555 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.197e-05/0.08404, allocations: 99.2 kB / 433.9 MB, free: 4.457 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.08405, allocations: 0 / 433.9 MB, free: 4.457 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000313/0.08437, allocations: 63.84 kB / 433.9 MB, free: 4.395 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,Ccont.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 6.09e-05/0.08443, allocations: 103.2 kB / 434 MB, free: 4.285 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001976/0.08464, allocations: 110.2 kB / 434.1 MB, free: 4.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.08465, allocations: 0 / 434.1 MB, free: 4.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.233e-05/0.08473, allocations: 59.92 kB / 434.2 MB, free: 4.121 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.08503, allocations: 15.98 kB / 434.2 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007117/0.08575, allocations: 0.6929 MB / 434.9 MB, free: 3.375 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.08588, allocations: 0.7244 MB / 435.6 MB, free: 2.625 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.25e-05/0.08595, allocations: 20.58 kB / 435.6 MB, free: 2.602 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.086, allocations: 19.44 kB / 435.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.086, allocations: 0 / 435.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of Templates: time 0.002956/0.08896, allocations: 1.443 MB / 437.1 MB, free: 1.145 MB / 298.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1)