Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_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_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009192/0.0009191, allocations: 101.7 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.0009898/0.00099, allocations: 178.4 kB / 16.58 MB, free: 6.125 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.568/1.568, allocations: 223.3 MB / 240.6 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2449/0.2449, allocations: 22.35 MB / 314.1 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003496/0.0003496, allocations: 8 kB / 382.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.4076, allocations: 55.98 MB / 438.6 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.003492/0.4111, allocations: 3.34 MB / 441.9 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002537/0.4137, allocations: 1.097 MB / 443 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.414, allocations: 5.969 kB / 443 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.4142, allocations: 56.78 kB / 443.1 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005764/0.4148, allocations: 233 kB / 443.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.4155, allocations: 168 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009154/0.4164, allocations: 0.8871 MB / 444.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007602/0.4172, allocations: 0.5512 MB / 444.9 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004301/0.4176, allocations: 378.9 kB / 445.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006896/0.4183, allocations: 0.5623 MB / 445.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.4184, allocations: 66.75 kB / 445.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002116/0.4186, allocations: 100.5 kB / 446 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002292/0.4189, allocations: 240.4 kB / 446.2 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.419, allocations: 152.5 kB / 446.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008466/0.4199, allocations: 0.7828 MB / 447.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/0.4199, allocations: 0 / 447.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4199, allocations: 0 / 447.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.4199, allocations: 4 kB / 447.2 MB, free: 34.35 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00241/0.4224, allocations: 1.028 MB / 448.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.4224, allocations: 11.44 kB / 448.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.4226, allocations: 76 kB / 448.3 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.4233, allocations: 472.4 kB / 448.7 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.809e-05/0.4233, allocations: 42.59 kB / 448.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.4235, allocations: 54.66 kB / 448.8 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.4247, allocations: 0.7551 MB / 449.6 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.4248, allocations: 4 kB / 449.6 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-05/0.4248, allocations: 25.94 kB / 449.6 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/0.4249, allocations: 11.56 kB / 449.6 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.4262, allocations: 0.8172 MB / 450.4 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003778/0.43, allocations: 2.077 MB / 452.5 MB, free: 31.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.4311, allocations: 0.6683 MB / 453.2 MB, free: 31.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006107/0.4317, allocations: 412.3 kB / 453.6 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.072e-05/0.4318, allocations: 20.5 kB / 453.6 MB, free: 31.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.4318, allocations: 45.7 kB / 453.7 MB, free: 31.17 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005415/0.4324, allocations: 145.5 kB / 453.8 MB, free: 31.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 3.336e-06/0.4324, allocations: 0 / 453.8 MB, free: 31.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.008761/0.4412, allocations: 2.515 MB / 456.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.4413, allocations: 66.3 kB / 456.4 MB, free: 30.15 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.442, allocations: 497.4 kB / 456.9 MB, free: 29.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.369e-05/0.442, allocations: 36.36 kB / 456.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.4422, allocations: 291 kB / 457.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.4425, allocations: 242.2 kB / 457.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.4425, allocations: 16.02 kB / 457.4 MB, free: 29.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.4427, allocations: 377.5 kB / 457.8 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007454/0.4434, allocations: 361.1 kB / 458.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008212/0.4443, allocations: 494.6 kB / 458.6 MB, free: 28.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008476/0.4451, allocations: 427.8 kB / 459.1 MB, free: 28.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.4451, allocations: 1.344 kB / 459.1 MB, free: 28.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005602/0.4507, allocations: 1.631 MB / 460.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.4508, allocations: 8.812 kB / 460.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.4508, allocations: 3 kB / 460.7 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/0.4547, allocations: 0.6748 MB / 461.4 MB, free: 27.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/0.4563, allocations: 260.2 kB / 461.6 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005814/0.4622, allocations: 3.884 MB / 465.5 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009813/0.4632, allocations: 35.05 kB / 465.5 MB, free: 24.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.686e-05/0.4633, allocations: 46.42 kB / 465.6 MB, free: 24.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (78): * Single equations (assignments): 75 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.00037/0.4637, allocations: 204.2 kB / 465.8 MB, free: 24.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.4638, allocations: 60 kB / 465.9 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003713/0.4675, allocations: 1.401 MB / 467.3 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.4676, allocations: 8.375 kB / 467.3 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.4676, allocations: 3.5 kB / 467.3 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.287e-05/0.4676, allocations: 4.688 kB / 467.3 MB, free: 24.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.4689, allocations: 0.8017 MB / 468.1 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.4689, allocations: 0.8438 kB / 468.1 MB, free: 23.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.47, allocations: 218.8 kB / 468.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/0.472, allocations: 451.9 kB / 468.7 MB, free: 23.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.114e-05/0.4721, allocations: 29 kB / 468.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003443/0.4756, allocations: 3.243 MB / 472 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4756, allocations: 0 / 472 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004122/0.4797, allocations: 1.783 MB / 473.8 MB, free: 19.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.48, allocations: 147.1 kB / 473.9 MB, free: 19.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.4801, allocations: 24.91 kB / 473.9 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004954/0.4806, allocations: 35.73 kB / 474 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.4808, allocations: 67.08 kB / 474 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.665e-05/0.4809, allocations: 25.16 kB / 474.1 MB, free: 19.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004734/0.4813, allocations: 343.1 kB / 474.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4814, allocations: 0 / 474.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00101/0.4824, allocations: 242.4 kB / 474.6 MB, free: 19.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * 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 (67): * Single equations (assignments): 64 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002465/0.4826, allocations: 138.7 kB / 474.8 MB, free: 19.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002681/0.4853, allocations: 1.171 MB / 476 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4853, allocations: 0 / 476 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.4868, allocations: 0.6861 MB / 476.6 MB, free: 18.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006939/0.4875, allocations: 133.1 kB / 476.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.492, allocations: 2.551 MB / 479.3 MB, free: 17.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005533/0.4926, allocations: 0.9382 MB / 480.3 MB, free: 16.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003419/0.4929, allocations: 68.67 kB / 480.3 MB, free: 16.33 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4929, allocations: 0 / 480.3 MB, free: 16.33 MB / 350.1 MB Notification: Performance of Templates: time 0.01994/0.5129, allocations: 16.24 MB / 496.6 MB, free: 2.453 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_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_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002CalcHelperMain.o OMCppAES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002CalcHelperMain.o] Error 1