Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7923/0.7923, allocations: 143.8 MB / 159.1 MB, free: 6.531 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 183.3 kB / 192 MB, free: 6.727 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.7 MB / 450.4 MB, free: 4.992 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007926/0.0007926, allocations: 103.5 kB / 0.5211 GB, free: 1.645 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001756/0.001756, allocations: 279 kB / 0.6025 GB, free: 49.3 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005806/0.0005807, allocations: 17.31 kB / 0.6948 GB, free: 59.25 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.1699, allocations: 82.46 MB / 0.7753 GB, free: 14.35 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.0006883/0.1707, allocations: 336.9 kB / 0.7757 GB, free: 14.02 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001666/0.1723, allocations: 1.395 MB / 0.777 GB, free: 12.57 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.745e-05/0.1724, allocations: 0 / 0.777 GB, free: 12.57 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 1.42e-05/0.1724, allocations: 0 / 0.777 GB, free: 12.57 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 1.722e-05/0.1724, allocations: 0 / 0.777 GB, free: 12.57 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.1727, allocations: 55.86 kB / 0.7771 GB, free: 12.52 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 4.855e-05/0.1728, allocations: 23.92 kB / 0.7771 GB, free: 12.5 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.689e-05/0.1728, allocations: 0 / 0.7771 GB, free: 12.5 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.24e-05/0.1729, allocations: 15.94 kB / 0.7771 GB, free: 12.48 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.781e-05/0.1729, allocations: 15.97 kB / 0.7771 GB, free: 12.46 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.011e-05/0.173, allocations: 0 / 0.7771 GB, free: 12.46 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.1732, allocations: 91.91 kB / 0.7772 GB, free: 12.38 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.698e-05/0.1732, allocations: 15.91 kB / 0.7772 GB, free: 12.36 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 3.63e-05/0.1732, allocations: 33.64 kB / 0.7773 GB, free: 12.32 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.1734, allocations: 67.86 kB / 0.7773 GB, free: 12.25 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1734, allocations: 4 kB / 0.7773 GB, free: 12.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1734, allocations: 0 / 0.7773 GB, free: 12.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1734, allocations: 0 / 0.7773 GB, free: 12.25 MB / 458.7 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.0003615/0.1738, allocations: 342.2 kB / 0.7777 GB, free: 11.87 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1738, allocations: 8.031 kB / 0.7777 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.438e-05/0.1738, allocations: 12.84 kB / 0.7777 GB, free: 11.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.174, allocations: 160.4 kB / 0.7778 GB, free: 11.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.174, allocations: 8.312 kB / 0.7778 GB, free: 11.65 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.174, allocations: 4.375 kB / 0.7778 GB, free: 11.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.1741, allocations: 57.98 kB / 0.7779 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.447e-06/0.1742, allocations: 0 / 0.7779 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.1742, allocations: 0 / 0.7779 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1742, allocations: 4 kB / 0.7779 GB, free: 11.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.998e-05/0.1742, allocations: 19.98 kB / 0.7779 GB, free: 11.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001682/0.1744, allocations: 169.6 kB / 0.7781 GB, free: 11.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001107/0.1745, allocations: 70.47 kB / 0.7781 GB, free: 11.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.867e-05/0.1746, allocations: 28.8 kB / 0.7782 GB, free: 11.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004406/0.175, allocations: 0.5583 MB / 0.7787 GB, free: 10.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1751, allocations: 34.5 kB / 0.7787 GB, free: 10.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.1751, allocations: 0 / 0.7787 GB, free: 10.5 MB / 458.7 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.01796/0.193, allocations: 4.214 MB / 0.7829 GB, free: 6.141 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.1931, allocations: 55.41 kB / 0.7829 GB, free: 6.074 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.981e-05/0.1932, allocations: 93.84 kB / 0.783 GB, free: 5.973 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.45e-05/0.1933, allocations: 29.7 kB / 0.783 GB, free: 5.938 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.1933, allocations: 84.14 kB / 0.7831 GB, free: 5.852 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.668e-05/0.1934, allocations: 51.33 kB / 0.7832 GB, free: 5.801 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.624e-05/0.1935, allocations: 4 kB / 0.7832 GB, free: 5.797 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1936, allocations: 322.8 kB / 0.7835 GB, free: 5.473 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005433/0.1941, allocations: 307.9 kB / 0.7838 GB, free: 5.172 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005204/0.1947, allocations: 315.8 kB / 0.7841 GB, free: 4.863 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.1961, allocations: 0.7588 MB / 0.7848 GB, free: 4.102 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-06/0.1961, allocations: 0 / 0.7848 GB, free: 4.102 MB / 458.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001487/0.1976, allocations: 0.7826 MB / 0.7856 GB, free: 3.312 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.1976, allocations: 4 kB / 0.7856 GB, free: 3.309 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1976, allocations: 0 / 0.7856 GB, free: 3.309 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.1977, allocations: 4 kB / 0.7856 GB, free: 3.305 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.1984, allocations: 95.88 kB / 0.7857 GB, free: 3.211 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1984, allocations: 4 kB / 0.7857 GB, free: 3.207 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.1989, allocations: 8 kB / 0.7857 GB, free: 3.199 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.992e-05/0.199, allocations: 31.98 kB / 0.7857 GB, free: 3.168 MB / 458.7 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.0001761/0.1991, allocations: 125.8 kB / 0.7858 GB, free: 3.035 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.1992, allocations: 7.906 kB / 0.7858 GB, free: 3.027 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00331/0.2025, allocations: 1.388 MB / 0.7872 GB, free: 1.629 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.776e-06/0.2025, allocations: 4 kB / 0.7872 GB, free: 1.625 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.2026, allocations: 4 kB / 0.7872 GB, free: 1.621 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.2026, allocations: 3.938 kB / 0.7872 GB, free: 1.617 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.2055, allocations: 1.802 MB / 0.789 GB, free: 15.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2056, allocations: 8.016 kB / 0.789 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007419/0.2063, allocations: 111.9 kB / 0.7891 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2063, allocations: 0 / 0.7891 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.051e-05/0.2064, allocations: 31.94 kB / 0.7891 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.2064, allocations: 0 / 0.7891 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.2064, allocations: 0 / 0.7891 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.2087, allocations: 1.449 MB / 0.7905 GB, free: 14.14 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.257e-05/0.2088, allocations: 101 kB / 0.7906 GB, free: 14.02 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.509e-05/0.2089, allocations: 11.94 kB / 0.7906 GB, free: 14.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004213/0.2093, allocations: 8 kB / 0.7906 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.2095, allocations: 51.89 kB / 0.7907 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.877e-05/0.2095, allocations: 28 kB / 0.7907 GB, free: 13.93 MB / 474.7 MB Notification: Performance of sorting global known variables: time 3.547e-05/0.2096, allocations: 79.28 kB / 0.7908 GB, free: 13.85 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2096, allocations: 0 / 0.7908 GB, free: 13.85 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000668/0.2102, allocations: 172 kB / 0.791 GB, free: 13.68 MB / 474.7 MB 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.0004526/0.2107, allocations: 233.7 kB / 0.7912 GB, free: 13.45 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.2119, allocations: 0.719 MB / 0.7919 GB, free: 12.73 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2119, allocations: 0 / 0.7919 GB, free: 12.73 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006298/0.2126, allocations: 455.7 kB / 0.7923 GB, free: 12.28 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.2129, allocations: 13.69 kB / 0.7923 GB, free: 12.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.2158, allocations: 0.8584 MB / 0.7932 GB, free: 11.38 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.216, allocations: 0.7145 MB / 0.7939 GB, free: 10.64 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001422/0.2174, allocations: 297.5 kB / 0.7942 GB, free: 10.34 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005344/0.218, allocations: 91.41 kB / 0.7942 GB, free: 10.26 MB / 474.7 MB Notification: Performance of SimCode: time 2.7e-07/0.218, allocations: 0 / 0.7942 GB, free: 10.26 MB / 474.7 MB Notification: Performance of Templates: time 0.01437/0.2324, allocations: 10.63 MB / 0.8046 GB, free: 15.65 MB / 490.7 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)