Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") translateModel(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009867/0.000987, allocations: 99.91 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 173.8 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 223.2 MB / 240.6 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2644/0.2644, allocations: 22.36 MB / 314.1 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004682, allocations: 12 kB / 382.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4123, allocations: 55.98 MB / 438.6 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload): time 0.002645/0.415, allocations: 2.913 MB / 441.5 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.4164, allocations: 0.9009 MB / 442.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.4166, allocations: 3.031 kB / 442.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.4168, allocations: 52.91 kB / 442.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002951/0.4171, allocations: 168.7 kB / 442.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.4175, allocations: 145.9 kB / 442.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006155/0.4182, allocations: 0.7309 MB / 443.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.4186, allocations: 349.8 kB / 443.8 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.4189, allocations: 271 kB / 444.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000373/0.4193, allocations: 360.2 kB / 444.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.796e-05/0.4193, allocations: 45.75 kB / 444.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.717e-05/0.4194, allocations: 44.66 kB / 444.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.4196, allocations: 170.9 kB / 444.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.4197, allocations: 131.3 kB / 444.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.4202, allocations: 0.5906 MB / 445.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4202, allocations: 0 / 445.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4202, allocations: 0 / 445.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.4202, allocations: 0 / 445.4 MB, free: 35.69 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001483/0.4217, allocations: 0.8093 MB / 446.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.001e-05/0.4218, allocations: 12.5 kB / 446.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.4219, allocations: 63.78 kB / 446.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.4224, allocations: 376.3 kB / 446.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001272/0.4225, allocations: 110.3 kB / 446.8 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-05/0.4226, allocations: 57.42 kB / 446.8 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.424, allocations: 0.7324 MB / 447.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.424, allocations: 0 / 447.5 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.089e-05/0.4241, allocations: 19.03 kB / 447.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.803e-05/0.4241, allocations: 13.72 kB / 447.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/0.4255, allocations: 0.6446 MB / 448.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004614/0.4301, allocations: 2.676 MB / 450.9 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.4313, allocations: 0.5795 MB / 451.5 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008058/0.4321, allocations: 446.3 kB / 451.9 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.671e-05/0.4321, allocations: 7.328 kB / 451.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.4322, allocations: 45.84 kB / 452 MB, free: 32.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 3.136e-06/0.4322, allocations: 0 / 452 MB, free: 32.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.005418/0.4376, allocations: 2.379 MB / 454.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.4377, allocations: 58.31 kB / 454.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.4381, allocations: 354.5 kB / 454.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.657e-05/0.4381, allocations: 33.7 kB / 454.8 MB, free: 31.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.4383, allocations: 236.3 kB / 455 MB, free: 30.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.4384, allocations: 185.3 kB / 455.2 MB, free: 30.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.4385, allocations: 6.031 kB / 455.2 MB, free: 30.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.4386, allocations: 356.4 kB / 455.5 MB, free: 30.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008869/0.4395, allocations: 406.5 kB / 455.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000929/0.4404, allocations: 452.4 kB / 456.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009104/0.4413, allocations: 385.2 kB / 456.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4414, allocations: 0.6875 kB / 456.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002203/0.4436, allocations: 0.9147 MB / 457.7 MB, free: 29.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.4436, allocations: 7.906 kB / 457.7 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.4436, allocations: 6.5 kB / 457.7 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.64e-05/0.4437, allocations: 3.094 kB / 457.7 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005862/0.4495, allocations: 1.207 MB / 458.9 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.994e-05/0.4496, allocations: 8.141 kB / 458.9 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006916/0.4503, allocations: 77.78 kB / 459 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/0.4504, allocations: 21.67 kB / 459 MB, free: 29.61 MB / 350.1 MB Warning: Assuming fixed start value for the following 5 variables: H.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Tfo:VARIABLE(min = 0.0 start = H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real stank.Tcold:VARIABLE(min = 0.0 start = stank.Tcoldstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.Thot:VARIABLE(min = 0.0 start = stank.Thotstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real stank.lcold:VARIABLE(start = stank.lcoldstart unit = "m" fixed = true stateSelect=StateSelect.prefer ) "cold height" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0004563/0.4508, allocations: 198.9 kB / 459.2 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001681/0.451, allocations: 40.78 kB / 459.2 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002185/0.4532, allocations: 0.8972 MB / 460.1 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4532, allocations: 5.922 kB / 460.1 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.4532, allocations: 7.953 kB / 460.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.4533, allocations: 4.625 kB / 460.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.4572, allocations: 1.841 MB / 462 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.4572, allocations: 0 / 462 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006048/0.4633, allocations: 1.192 MB / 463.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.269e-05/0.4633, allocations: 2.875 kB / 463.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.4634, allocations: 17.53 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4635, allocations: 1.344 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4635, allocations: 1.094 kB / 463.2 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/0.4666, allocations: 1.376 MB / 464.6 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001761/0.4668, allocations: 120 kB / 464.7 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.4669, allocations: 13.72 kB / 464.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.4674, allocations: 70.7 kB / 464.8 MB, free: 27.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.4676, allocations: 77.05 kB / 464.9 MB, free: 27.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.172e-05/0.4677, allocations: 13.59 kB / 464.9 MB, free: 27.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003821/0.4681, allocations: 257.5 kB / 465.1 MB, free: 27.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4681, allocations: 0 / 465.1 MB, free: 27.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006049/0.4687, allocations: 145.6 kB / 465.3 MB, free: 27.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (stank.lcold,stank.Thot,stank.Tcold,H.Tfo,H.Ec,tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * Number of discrete variables: 1 (H.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001823/0.4689, allocations: 119.1 kB / 465.4 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002085/0.471, allocations: 0.8577 MB / 466.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.471, allocations: 0 / 466.2 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.472, allocations: 454.6 kB / 466.7 MB, free: 26.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006337/0.4727, allocations: 105.7 kB / 466.8 MB, free: 26.69 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004208/0.4769, allocations: 2.164 MB / 469 MB, free: 25.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.4773, allocations: 0.8565 MB / 469.8 MB, free: 24.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.4777, allocations: 50.53 kB / 469.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4777, allocations: 0 / 469.9 MB, free: 24.75 MB / 350.1 MB Notification: Performance of Templates: time 0.01613/0.4938, allocations: 7.338 MB / 477.2 MB, free: 22.42 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unload.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppAES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unloadCalcHelperMain.o OMCppAES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unloadCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ThermSys_control_problems.Storage_management.Storage_tank_01_load_unloadCalcHelperMain.o] Error 1