Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.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.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 102.6 kB / 15.71 MB, free: 460 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.001342/0.001343, allocations: 177.4 kB / 16.58 MB, free: 6.402 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.518/1.518, allocations: 223.3 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.2358/0.2358, allocations: 22.35 MB / 314.1 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003799, allocations: 19.92 kB / 382.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.39/0.3904, allocations: 55.97 MB / 438.6 MB, free: 39.09 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop): time 0.002735/0.3932, allocations: 2.89 MB / 441.5 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.3947, allocations: 0.9076 MB / 442.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.3949, allocations: 9.562 kB / 442.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.3951, allocations: 63.08 kB / 442.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003419/0.3954, allocations: 212.6 kB / 442.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005069/0.3959, allocations: 155.2 kB / 442.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007821/0.3967, allocations: 0.9518 MB / 443.7 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005219/0.3972, allocations: 445.7 kB / 444.2 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000347/0.3976, allocations: 324 kB / 444.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005205/0.3981, allocations: 456.5 kB / 444.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.921e-05/0.3982, allocations: 43.53 kB / 445 MB, free: 35.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.3983, allocations: 51.41 kB / 445 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.3985, allocations: 249.5 kB / 445.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.3987, allocations: 152.5 kB / 445.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000487/0.3992, allocations: 0.7162 MB / 446.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.3992, allocations: 3.938 kB / 446.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3992, allocations: 0 / 446.1 MB, free: 34.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.3992, allocations: 0 / 446.1 MB, free: 34.93 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.001691/0.4009, allocations: 0.9387 MB / 447.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.401, allocations: 8.281 kB / 447.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.4011, allocations: 77.84 kB / 447.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.4017, allocations: 437.4 kB / 447.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.033e-05/0.4018, allocations: 73.48 kB / 447.7 MB, free: 33.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.993e-05/0.4019, allocations: 61.22 kB / 447.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.403, allocations: 0.7136 MB / 448.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.403, allocations: 0 / 448.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.889e-05/0.4031, allocations: 26.06 kB / 448.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.4031, allocations: 14.72 kB / 448.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000996/0.4041, allocations: 0.6505 MB / 449.1 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003916/0.4081, allocations: 2.807 MB / 451.9 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.4097, allocations: 0.6405 MB / 452.6 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006023/0.4103, allocations: 403.7 kB / 453 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.895e-05/0.4104, allocations: 17.72 kB / 453 MB, free: 31.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.4104, allocations: 37.62 kB / 453 MB, free: 31.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.304e-06/0.4104, allocations: 0 / 453 MB, free: 31.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.002518/0.4129, allocations: 1.523 MB / 454.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.413, allocations: 58.5 kB / 454.6 MB, free: 30.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004162/0.4134, allocations: 427.2 kB / 455 MB, free: 30.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.433e-05/0.4134, allocations: 36.64 kB / 455.1 MB, free: 30.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.4136, allocations: 295.1 kB / 455.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.4137, allocations: 198.8 kB / 455.5 MB, free: 29.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.4138, allocations: 11.16 kB / 455.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.828e-05/0.4138, allocations: 366.1 kB / 455.9 MB, free: 29.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.4143, allocations: 335.9 kB / 456.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.4148, allocations: 386.9 kB / 456.6 MB, free: 28.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005717/0.4154, allocations: 351.1 kB / 457 MB, free: 28.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.4154, allocations: 1.281 kB / 457 MB, free: 28.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001854/0.4173, allocations: 0.9742 MB / 457.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.4173, allocations: 5.625 kB / 457.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.4173, allocations: 2.25 kB / 457.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006738/0.418, allocations: 173.9 kB / 458.1 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001181/0.4192, allocations: 231.5 kB / 458.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004277/0.4235, allocations: 7.076 MB / 465.4 MB, free: 21.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007029/0.4242, allocations: 72.31 kB / 465.5 MB, free: 21.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.958e-05/0.4243, allocations: 23.66 kB / 465.5 MB, free: 21.34 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.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: 6 * 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 (78): * Single equations (assignments): 73 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(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.0004354/0.4247, allocations: 235.9 kB / 465.7 MB, free: 21.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.4249, allocations: 48.19 kB / 465.8 MB, free: 21.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.4264, allocations: 0.8284 MB / 466.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4265, allocations: 5.344 kB / 466.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.4265, allocations: 5.984 kB / 466.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.4265, allocations: 3.234 kB / 466.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003078/0.4296, allocations: 1.693 MB / 468.3 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.4296, allocations: 2.188 kB / 468.3 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.4307, allocations: 182.1 kB / 468.5 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004881/0.4312, allocations: 148.1 kB / 468.6 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.746e-05/0.4313, allocations: 19.67 kB / 468.7 MB, free: 19.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00381/0.4351, allocations: 6.69 MB / 475.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4351, allocations: 1.875 kB / 475.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002283/0.4374, allocations: 1.254 MB / 476.6 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.4376, allocations: 138.6 kB / 476.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.195e-05/0.4377, allocations: 23.59 kB / 476.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.4381, allocations: 26.81 kB / 476.8 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.4382, allocations: 62.11 kB / 476.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.455e-05/0.4383, allocations: 19.27 kB / 476.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003751/0.4387, allocations: 293.8 kB / 477.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4387, allocations: 0 / 477.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009115/0.4396, allocations: 231.8 kB / 477.4 MB, free: 12.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 13 (stream_loss.T[1],stream_loss.T[2],stream_loss.T[3],stream_loss.T[4],stream_loss.T[5],stream_load.T[1],stream_load.T[2],stream_load.T[3],stream_load.T[4],stream_load.T[5],heater.Tfo,heater.Ec,heater.xpi) * 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 (51): * Single equations (assignments): 46 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(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.0001668/0.4398, allocations: 129 kB / 477.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.4418, allocations: 1.285 MB / 478.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.4418, allocations: 0 / 478.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009634/0.4428, allocations: 0.8902 MB / 479.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006848/0.4435, allocations: 128.5 kB / 479.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003757/0.4473, allocations: 2.382 MB / 482.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005133/0.4478, allocations: 0.9324 MB / 483.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/0.4481, allocations: 55.33 kB / 483.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4481, allocations: 0 / 483.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of Templates: time 0.02514/0.4732, allocations: 18.74 MB / 0.4902 GB, free: 11.7 MB / 366.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.makefile make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.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.Temperature_flow_control.Temperature_flow_control_01_open_loopCalcHelperMain.o OMCppAES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loopCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loopCalcHelperMain.o] Error 1