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_004_LTI.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_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000928/0.0009279, allocations: 100.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.001356/0.001357, allocations: 177.2 kB / 16.59 MB, free: 6.859 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.606/1.606, allocations: 223.3 MB / 240.6 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2562/0.2562, allocations: 22.35 MB / 314.1 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004803, allocations: 12 kB / 382.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4273/0.4278, allocations: 55.98 MB / 438.6 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.001264/0.4291, allocations: 0.6692 MB / 439.3 MB, free: 38.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.4306, allocations: 1.187 MB / 440.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.349e-05/0.4307, allocations: 0 / 440.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003467/0.4311, allocations: 21.97 kB / 440.5 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.4312, allocations: 43.33 kB / 440.5 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001628/0.4314, allocations: 55.48 kB / 440.6 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.4316, allocations: 169 kB / 440.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.4318, allocations: 27.27 kB / 440.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.4319, allocations: 84.45 kB / 440.8 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.4321, allocations: 78.7 kB / 440.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/0.4321, allocations: 6.594 kB / 440.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.466e-05/0.4322, allocations: 5.812 kB / 440.9 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.96e-05/0.4322, allocations: 40.59 kB / 441 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.905e-05/0.4323, allocations: 36.33 kB / 441 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001473/0.4324, allocations: 86.45 kB / 441.1 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.157e-05/0.4325, allocations: 0 / 441.1 MB, free: 37.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.4325, allocations: 2.969 kB / 441.1 MB, free: 37.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.4325, allocations: 0 / 441.1 MB, free: 37.38 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001122/0.4336, allocations: 481.6 kB / 441.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.4337, allocations: 10.25 kB / 441.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.4337, allocations: 13.94 kB / 441.6 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004637/0.4342, allocations: 281.4 kB / 441.9 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.4342, allocations: 11.88 kB / 441.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.4342, allocations: 6.188 kB / 441.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.4344, allocations: 92.25 kB / 442 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.4345, allocations: 0 / 442 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.4345, allocations: 7.953 kB / 442 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.4345, allocations: 2.938 kB / 442 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001574/0.4347, allocations: 87.48 kB / 442.1 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006341/0.4353, allocations: 418.2 kB / 442.5 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.4357, allocations: 161.6 kB / 442.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.588e-05/0.4358, allocations: 44.97 kB / 442.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.4358, allocations: 3.5 kB / 442.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.4358, allocations: 34.56 kB / 442.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.4358, allocations: 0 / 442.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.002086/0.4379, allocations: 494.3 kB / 443.2 MB, free: 35.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.438, allocations: 57.73 kB / 443.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003761/0.4383, allocations: 229.9 kB / 443.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.4384, allocations: 29.7 kB / 443.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.4384, allocations: 111.7 kB / 443.6 MB, free: 35.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.4385, allocations: 32.67 kB / 443.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.4385, allocations: 4 kB / 443.6 MB, free: 35.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.123e-05/0.4386, allocations: 324.3 kB / 444 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.799e-05/0.4386, allocations: 35.22 kB / 444 MB, free: 35.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.256e-05/0.4387, allocations: 31.91 kB / 444 MB, free: 35.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.165e-05/0.4388, allocations: 46.16 kB / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4388, allocations: 0 / 444.1 MB, free: 35.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0007578/0.4396, allocations: 256.9 kB / 444.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4396, allocations: 5.094 kB / 444.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.4396, allocations: 480 / 444.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007762/0.4404, allocations: 111.8 kB / 444.4 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.625e-05/0.4405, allocations: 19.83 kB / 444.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.4432, allocations: 1.752 MB / 446.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.4434, allocations: 28.06 kB / 446.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.4434, allocations: 7.641 kB / 446.2 MB, free: 33.67 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.4436, allocations: 130.4 kB / 446.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.4436, allocations: 21.61 kB / 446.4 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007018/0.4443, allocations: 256.8 kB / 446.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.4443, allocations: 6.625 kB / 446.6 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.4443, allocations: 7.953 kB / 446.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4444, allocations: 0 / 446.7 MB, free: 33.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.4446, allocations: 236.4 kB / 446.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.4446, allocations: 0 / 446.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.629e-05/0.4447, allocations: 16.09 kB / 446.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005112/0.4452, allocations: 113.6 kB / 447 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.4452, allocations: 4 kB / 447 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.4472, allocations: 1.682 MB / 448.7 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4472, allocations: 3.953 kB / 448.7 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007767/0.448, allocations: 402.2 kB / 449.1 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.516e-05/0.4481, allocations: 93.45 kB / 449.2 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.4481, allocations: 7.281 kB / 449.2 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.4483, allocations: 25.78 kB / 449.2 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.728e-05/0.4484, allocations: 16.25 kB / 449.2 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.4484, allocations: 2.875 kB / 449.2 MB, free: 31.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003239/0.4487, allocations: 190.3 kB / 449.4 MB, free: 31.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4487, allocations: 0 / 449.4 MB, free: 31.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.4491, allocations: 32.5 kB / 449.5 MB, free: 31.29 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001645/0.4492, allocations: 105.5 kB / 449.6 MB, free: 31.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004872/0.4497, allocations: 243.4 kB / 449.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4497, allocations: 0 / 449.8 MB, free: 31.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.45, allocations: 194 kB / 450 MB, free: 30.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.4503, allocations: 24.25 kB / 450 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.4509, allocations: 387.4 kB / 450.4 MB, free: 30.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/0.4511, allocations: 0.7256 MB / 451.1 MB, free: 29.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.88e-05/0.4512, allocations: 14.34 kB / 451.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4512, allocations: 0 / 451.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of Templates: time 0.004189/0.4554, allocations: 2.37 MB / 453.5 MB, free: 29.79 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.makefile make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.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_004_LTICalcHelperMain.o OMCppAES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTICalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTICalcHelperMain.o] Error 1