Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009336/0.0009378, allocations: 99.34 kB / 16.02 MB, free: 76 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.001242/0.001242, allocations: 186.8 kB / 16.92 MB, free: 6.75 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001747/0.001747, allocations: 271.2 kB / 292.3 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9247/0.9247, allocations: 169.5 MB / 0.501 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004585/0.0004588, allocations: 17.03 kB / 0.5993 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1947, allocations: 88.55 MB / 0.6858 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0008503/0.1956, allocations: 333.3 kB / 0.6861 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.1974, allocations: 1.283 MB / 0.6874 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.88e-05/0.1975, allocations: 0 / 0.6874 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.1975, allocations: 0 / 0.6874 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.655e-05/0.1975, allocations: 0 / 0.6874 GB, free: 13.44 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.1979, allocations: 59.25 kB / 0.6874 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.074e-05/0.1979, allocations: 27.86 kB / 0.6874 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.198, allocations: 3.984 kB / 0.6874 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.47e-05/0.198, allocations: 12 kB / 0.6875 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.12e-05/0.1981, allocations: 19.91 kB / 0.6875 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.1981, allocations: 0 / 0.6875 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.1983, allocations: 91.91 kB / 0.6876 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.081e-05/0.1984, allocations: 16.62 kB / 0.6876 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1984, allocations: 33.64 kB / 0.6876 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.1985, allocations: 48.38 kB / 0.6877 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1985, allocations: 0.625 kB / 0.6877 GB, free: 13.13 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1985, allocations: 0 / 0.6877 GB, free: 13.13 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1986, allocations: 0.5625 kB / 0.6877 GB, free: 13.13 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004441/0.199, allocations: 346.2 kB / 0.688 GB, free: 12.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1991, allocations: 8.031 kB / 0.688 GB, free: 12.74 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.242e-05/0.1991, allocations: 8.844 kB / 0.688 GB, free: 12.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.1992, allocations: 164.3 kB / 0.6882 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.392e-05/0.1992, allocations: 5.125 kB / 0.6882 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.1993, allocations: 4.375 kB / 0.6882 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.1994, allocations: 62.77 kB / 0.6882 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1994, allocations: 1.562 kB / 0.6882 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.1994, allocations: 4 kB / 0.6882 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.1995, allocations: 0 / 0.6882 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.956e-05/0.1995, allocations: 19.98 kB / 0.6883 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001952/0.1997, allocations: 170.2 kB / 0.6884 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.1998, allocations: 64.53 kB / 0.6885 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.002e-05/0.1999, allocations: 20.84 kB / 0.6885 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005183/0.2004, allocations: 0.5654 MB / 0.6891 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.2005, allocations: 34.5 kB / 0.6891 GB, free: 11.39 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.2005, allocations: 0 / 0.6891 GB, free: 11.39 MB / 494.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x 2: deltax Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.01882/0.2193, allocations: 4.291 MB / 0.6933 GB, free: 6.957 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.2194, allocations: 51.41 kB / 0.6933 GB, free: 6.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.191e-05/0.2194, allocations: 97.86 kB / 0.6934 GB, free: 6.789 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.356e-05/0.2195, allocations: 29.69 kB / 0.6934 GB, free: 6.754 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.769e-05/0.2196, allocations: 80.14 kB / 0.6935 GB, free: 6.672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.2197, allocations: 59.27 kB / 0.6936 GB, free: 6.613 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.497e-05/0.2198, allocations: 21.72 kB / 0.6936 GB, free: 6.586 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.2199, allocations: 322.8 kB / 0.6939 GB, free: 6.262 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.2204, allocations: 311.9 kB / 0.6942 GB, free: 5.957 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005197/0.2209, allocations: 314.3 kB / 0.6945 GB, free: 5.652 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.2225, allocations: 0.7701 MB / 0.6953 GB, free: 4.879 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.2225, allocations: 0 / 0.6953 GB, free: 4.879 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001524/0.224, allocations: 0.7963 MB / 0.696 GB, free: 4.078 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.224, allocations: 4 kB / 0.696 GB, free: 4.074 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2241, allocations: 0 / 0.696 GB, free: 4.074 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2241, allocations: 8 kB / 0.696 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008192/0.2249, allocations: 99.88 kB / 0.6961 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2249, allocations: 0 / 0.6961 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.2254, allocations: 4 kB / 0.6961 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.957e-05/0.2255, allocations: 35.97 kB / 0.6962 GB, free: 3.93 MB / 494.1 MB 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001985/0.2257, allocations: 123.1 kB / 0.6963 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.025e-05/0.2258, allocations: 7.906 kB / 0.6963 GB, free: 3.793 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00346/0.2293, allocations: 1.403 MB / 0.6977 GB, free: 2.379 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2293, allocations: 4 kB / 0.6977 GB, free: 2.375 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.2293, allocations: 0 / 0.6977 GB, free: 2.375 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.2293, allocations: 3.984 kB / 0.6977 GB, free: 2.371 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/0.2326, allocations: 1.813 MB / 0.6995 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.2327, allocations: 4.031 kB / 0.6995 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.2338, allocations: 111.9 kB / 0.6996 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.2339, allocations: 0 / 0.6996 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-05/0.2339, allocations: 31.94 kB / 0.6996 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.234, allocations: 0 / 0.6996 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.234, allocations: 3.984 kB / 0.6996 GB, free: 364 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.2365, allocations: 1.465 MB / 0.701 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.2366, allocations: 96.95 kB / 0.7011 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.059e-05/0.2367, allocations: 15.92 kB / 0.7011 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005905/0.2373, allocations: 12 kB / 0.7011 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.2375, allocations: 39.97 kB / 0.7012 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-05/0.2376, allocations: 36 kB / 0.7012 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.914e-05/0.2376, allocations: 75.28 kB / 0.7013 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2376, allocations: 3.938 kB / 0.7013 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006416/0.2383, allocations: 184 kB / 0.7015 GB, free: 14.4 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (y_comp) * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006307/0.2389, allocations: 227.1 kB / 0.7017 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001349/0.2403, allocations: 0.7223 MB / 0.7024 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2403, allocations: 0 / 0.7024 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.241, allocations: 451.8 kB / 0.7028 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.2413, allocations: 12 kB / 0.7028 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.2452, allocations: 0.8844 MB / 0.7037 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.2455, allocations: 0.7184 MB / 0.7044 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005367/0.2461, allocations: 95.41 kB / 0.7045 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.2461, allocations: 4 kB / 0.7045 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of Templates: time 0.01259/0.2587, allocations: 6.885 MB / 0.7112 GB, free: 4.434 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheckCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheckCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheckCalcHelperMain.o] Error 1