Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") translateModel(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001166, allocations: 103.1 kB / 15.71 MB, free: 448 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.001411/0.001411, allocations: 180.1 kB / 16.58 MB, free: 6.875 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.54/1.54, allocations: 223.3 MB / 240.6 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2547/0.2547, allocations: 22.36 MB / 314.1 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003198, allocations: 8 kB / 382.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3914/0.3918, allocations: 55.97 MB / 438.6 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002): time 0.003684/0.3955, allocations: 3.902 MB / 442.5 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002153/0.3977, allocations: 1.176 MB / 443.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000281/0.398, allocations: 7.688 kB / 443.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002412/0.3983, allocations: 85.39 kB / 443.7 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004783/0.3988, allocations: 270.8 kB / 444 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006445/0.3994, allocations: 222 kB / 444.2 MB, free: 35.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.4005, allocations: 1.171 MB / 445.4 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007156/0.4012, allocations: 0.5456 MB / 445.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004037/0.4016, allocations: 412.1 kB / 446.3 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006034/0.4022, allocations: 0.5541 MB / 446.9 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001158/0.4023, allocations: 72.91 kB / 446.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.4025, allocations: 69.22 kB / 447 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002324/0.4027, allocations: 270.2 kB / 447.3 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.4029, allocations: 184.7 kB / 447.5 MB, free: 33.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006831/0.4036, allocations: 0.9171 MB / 448.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.4036, allocations: 0 / 448.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4036, allocations: 3.938 kB / 448.4 MB, free: 33.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.4036, allocations: 4 kB / 448.4 MB, free: 33.56 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002253/0.4059, allocations: 1.108 MB / 449.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.406, allocations: 12.75 kB / 449.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001799/0.4061, allocations: 100.7 kB / 449.6 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006691/0.4068, allocations: 0.4952 MB / 450.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001531/0.407, allocations: 159.9 kB / 450.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.4071, allocations: 83.91 kB / 450.3 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.4092, allocations: 1.051 MB / 451.4 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.4093, allocations: 0 / 451.4 MB, free: 31.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.473e-05/0.4094, allocations: 36.72 kB / 451.4 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.4094, allocations: 20.41 kB / 451.4 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.4112, allocations: 0.9382 MB / 452.4 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006217/0.4174, allocations: 3.667 MB / 456 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.4193, allocations: 0.9398 MB / 457 MB, free: 29.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001288/0.4206, allocations: 0.6593 MB / 457.6 MB, free: 29.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.966e-05/0.4206, allocations: 16.03 kB / 457.7 MB, free: 29.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.4207, allocations: 43.59 kB / 457.7 MB, free: 29.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 3.196e-06/0.4207, allocations: 0 / 457.7 MB, free: 29.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=83): time 0.007589/0.4283, allocations: 3.203 MB / 460.9 MB, free: 27.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.288e-05/0.4284, allocations: 61.72 kB / 461 MB, free: 27.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007337/0.4291, allocations: 0.5102 MB / 461.5 MB, free: 27.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.277e-05/0.4292, allocations: 37.84 kB / 461.5 MB, free: 27.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002144/0.4294, allocations: 325.9 kB / 461.8 MB, free: 27.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000252/0.4297, allocations: 307.6 kB / 462.1 MB, free: 27.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.932e-05/0.4297, allocations: 15.44 kB / 462.2 MB, free: 27.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4299, allocations: 382.5 kB / 462.5 MB, free: 26.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.4311, allocations: 0.5628 MB / 463.1 MB, free: 26.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.4324, allocations: 0.6341 MB / 463.7 MB, free: 26.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.4337, allocations: 0.5676 MB / 464.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4337, allocations: 0.9688 kB / 464.3 MB, free: 25.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002952/0.4366, allocations: 1.339 MB / 465.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.4367, allocations: 7.734 kB / 465.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.4367, allocations: 1.656 kB / 465.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.808e-05/0.4367, allocations: 6.5 kB / 465.6 MB, free: 25.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006818/0.4435, allocations: 1.322 MB / 467 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.297e-05/0.4436, allocations: 7.844 kB / 467 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009323/0.4445, allocations: 92.88 kB / 467.1 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.948e-05/0.4446, allocations: 31.17 kB / 467.1 MB, free: 25.38 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: HnoTank.Ec:VARIABLE(flow=false fixed = true ) type: Real H.Ec:VARIABLE(flow=false fixed = true ) type: Real HnoTank.Tfo:VARIABLE(min = 0.0 start = HnoTank.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" 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: 10 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 112 * 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.0005939/0.4452, allocations: 256.4 kB / 467.3 MB, free: 25.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002018/0.4455, allocations: 69.7 kB / 467.4 MB, free: 25.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.4484, allocations: 1.273 MB / 468.7 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/0.4484, allocations: 8.75 kB / 468.7 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4484, allocations: 0.8438 kB / 468.7 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.4484, allocations: 4.078 kB / 468.7 MB, free: 24.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005413/0.4538, allocations: 2.466 MB / 471.2 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.4539, allocations: 2.625 kB / 471.2 MB, free: 23.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00693/0.4608, allocations: 1.3 MB / 472.5 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.91e-05/0.4609, allocations: 5.688 kB / 472.5 MB, free: 23.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001973/0.4611, allocations: 27.5 kB / 472.5 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.148e-05/0.4611, allocations: 4.312 kB / 472.5 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4611, allocations: 1.719 kB / 472.5 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004271/0.4654, allocations: 1.931 MB / 474.4 MB, free: 22.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000336/0.4657, allocations: 144.8 kB / 474.6 MB, free: 22.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.4659, allocations: 23.44 kB / 474.6 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007163/0.4666, allocations: 87.72 kB / 474.7 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002893/0.4669, allocations: 108.3 kB / 474.8 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.209e-05/0.467, allocations: 24.3 kB / 474.8 MB, free: 22.44 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005696/0.4676, allocations: 365.3 kB / 475.2 MB, free: 22.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4676, allocations: 0 / 475.2 MB, free: 22.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008845/0.4685, allocations: 234.8 kB / 475.4 MB, free: 22.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 17 (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],tubeNoTank.T[1],tubeNoTank.T[2],tubeNoTank.T[3],tubeNoTank.T[4],tubeNoTank.T[5],HnoTank.Tfo,HnoTank.Ec) * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 85 * 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.0002248/0.4687, allocations: 138 kB / 475.5 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002946/0.4717, allocations: 1.214 MB / 476.8 MB, free: 21.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/0.4717, allocations: 1.609 kB / 476.8 MB, free: 21.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.4731, allocations: 0.6085 MB / 477.4 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008815/0.474, allocations: 170.1 kB / 477.5 MB, free: 21.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006085/0.48, allocations: 3.313 MB / 480.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.4805, allocations: 0.9624 MB / 481.8 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004714/0.4809, allocations: 75.39 kB / 481.9 MB, free: 17.44 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.481, allocations: 0 / 481.9 MB, free: 17.44 MB / 350.1 MB Notification: Performance of Templates: time 0.01437/0.4953, allocations: 11.26 MB / 493.1 MB, free: 6.211 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.makefile make -j1 -f AES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002.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_Transport.Stratified_storage_tank_case_002CalcHelperMain.o OMCppAES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ThermSys_Transport.Stratified_storage_tank_case_002CalcHelperMain.o] Error 1