Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_004,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009463/0.0009466, allocations: 100.5 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.001531/0.001531, allocations: 175.4 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.504/1.504, allocations: 223.2 MB / 240.6 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3046/0.3046, allocations: 22.35 MB / 314.1 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003295, allocations: 8 kB / 382.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3584, allocations: 55.97 MB / 438.5 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_Generation.Heater_control_case_004): time 0.003481/0.362, allocations: 3.969 MB / 442.5 MB, free: 36.35 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.3638, allocations: 1.252 MB / 443.8 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.364, allocations: 17.44 kB / 443.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.3643, allocations: 113.7 kB / 443.9 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005404/0.3648, allocations: 417.1 kB / 444.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005309/0.3654, allocations: 205.4 kB / 444.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001671/0.367, allocations: 2.267 MB / 446.8 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.3682, allocations: 1.117 MB / 447.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006125/0.3688, allocations: 0.639 MB / 448.5 MB, free: 33.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009824/0.3698, allocations: 0.9027 MB / 449.4 MB, free: 33.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.37, allocations: 89.16 kB / 449.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.3702, allocations: 88.47 kB / 449.6 MB, free: 33.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.3706, allocations: 0.5502 MB / 450.1 MB, free: 33.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002677/0.3709, allocations: 310.9 kB / 450.5 MB, free: 32.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001402/0.3723, allocations: 2.037 MB / 452.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3723, allocations: 0 / 452.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3723, allocations: 0 / 452.5 MB, free: 32.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.3724, allocations: 0 / 452.5 MB, free: 32.49 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003405/0.3758, allocations: 1.786 MB / 454.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.3758, allocations: 11.02 kB / 454.3 MB, free: 31.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.3761, allocations: 151 kB / 454.4 MB, free: 31.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.3772, allocations: 0.84 MB / 455.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.3773, allocations: 122 kB / 455.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002291/0.3776, allocations: 139.5 kB / 455.5 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002737/0.3803, allocations: 1.576 MB / 457.1 MB, free: 30.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.3804, allocations: 5.25 kB / 457.1 MB, free: 30.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.3805, allocations: 45.66 kB / 457.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.318e-05/0.3805, allocations: 28.31 kB / 457.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002513/0.3831, allocations: 1.407 MB / 458.6 MB, free: 29.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.3935, allocations: 7.173 MB / 465.8 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004891/0.3985, allocations: 1.869 MB / 467.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/0.3997, allocations: 0.7351 MB / 468.4 MB, free: 24.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.922e-05/0.3998, allocations: 14.73 kB / 468.4 MB, free: 24.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.3998, allocations: 47.95 kB / 468.4 MB, free: 24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=103): time 3.917e-06/0.3998, allocations: 1.156 kB / 468.4 MB, free: 24 MB / 350.1 MB Notification: Performance of matching and sorting (n=103): time 0.007063/0.4069, allocations: 3.985 MB / 472.4 MB, free: 21.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.407, allocations: 62.91 kB / 472.5 MB, free: 21.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.4082, allocations: 0.6725 MB / 473.1 MB, free: 21.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.256e-05/0.4083, allocations: 45.45 kB / 473.2 MB, free: 21.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003845/0.4086, allocations: 0.5125 MB / 473.7 MB, free: 20.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004639/0.4091, allocations: 419.7 kB / 474.1 MB, free: 20.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.852e-05/0.4092, allocations: 28.94 kB / 474.1 MB, free: 20.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.4094, allocations: 414.2 kB / 474.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.4108, allocations: 0.8372 MB / 475.4 MB, free: 19.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.4122, allocations: 0.9928 MB / 476.4 MB, free: 19.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.4138, allocations: 0.954 MB / 477.3 MB, free: 18.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.4138, allocations: 6.125 kB / 477.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.004781/0.4186, allocations: 2.471 MB / 479.8 MB, free: 17.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.4186, allocations: 17.41 kB / 479.8 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.4186, allocations: 4.281 kB / 479.8 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/0.4203, allocations: 0.5503 MB / 480.4 MB, free: 17.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.4221, allocations: 396.7 kB / 480.8 MB, free: 17.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/0.4353, allocations: 21.44 MB / 0.4904 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.4369, allocations: 154.6 kB / 0.4906 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.4371, allocations: 51.98 kB / 0.4906 GB, free: 10.18 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (160): * Single equations (assignments): 145 * 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: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001241/0.4383, allocations: 440.1 kB / 0.4911 GB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002525/0.4386, allocations: 86.97 kB / 0.4911 GB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003652/0.4422, allocations: 1.994 MB / 0.4931 GB, free: 7.605 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.4423, allocations: 11.95 kB / 0.4931 GB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.4423, allocations: 4 kB / 0.4931 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.4423, allocations: 11.92 kB / 0.4931 GB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007011/0.4493, allocations: 3.696 MB / 0.4967 GB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.4494, allocations: 0 / 0.4967 GB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.4512, allocations: 347.9 kB / 0.4971 GB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.4525, allocations: 484.4 kB / 0.4975 GB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001705/0.4527, allocations: 67.95 kB / 0.4976 GB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0173/0.47, allocations: 20.57 MB / 0.5177 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.47, allocations: 4.219 kB / 0.5177 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/0.4754, allocations: 2.715 MB / 0.5203 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.476, allocations: 195.8 kB / 0.5205 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/0.4762, allocations: 63.97 kB / 0.5206 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007511/0.477, allocations: 75.72 kB / 0.5206 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003073/0.4773, allocations: 104.7 kB / 0.5207 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.081e-05/0.4774, allocations: 31.98 kB / 0.5208 GB, free: 8.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007351/0.4781, allocations: 471 kB / 0.5212 GB, free: 8.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4781, allocations: 0 / 0.5212 GB, free: 8.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002008/0.4801, allocations: 0.5029 MB / 0.5217 GB, free: 8 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 43 (CH.Tfo,CH.Ec,CH.xpi,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.wall.wall.T[5,3]) * 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 (92): * Single equations (assignments): 77 * 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: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003167/0.4805, allocations: 176.3 kB / 0.5219 GB, free: 7.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00503/0.4855, allocations: 3.421 MB / 0.5252 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.4855, allocations: 0 / 0.5252 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003455/0.489, allocations: 2.472 MB / 0.5276 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.4903, allocations: 317 kB / 0.5279 GB, free: 1.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01155/0.5019, allocations: 6.644 MB / 0.5344 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001329/0.5032, allocations: 1.268 MB / 0.5357 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006491/0.5039, allocations: 83.42 kB / 0.5357 GB, free: 9.156 MB / 414.1 MB Notification: Performance of SimCode: time 2.254e-06/0.5039, allocations: 0 / 0.5357 GB, free: 9.156 MB / 414.1 MB Notification: Performance of Templates: time 0.3349/0.8388, allocations: 81.54 MB / 0.6154 GB, free: 128.9 MB / 462.1 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.makefile make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_004.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_Generation.Heater_control_case_004CalcHelperMain.o OMCppAES_AES.Coursework.ThermSys_Generation.Heater_control_case_004CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ThermSys_Generation.Heater_control_case_004CalcHelperMain.o] Error 1