Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.0009496/0.0009498, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009469/0.000947, allocations: 191.4 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.139/1.139, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.464/1.464, allocations: 292.3 MB / 0.5485 GB, free: 13.58 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 64.39 kB / 0.671 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1669, allocations: 114.5 MB / 0.7829 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001693/0.1686, allocations: 0.6811 MB / 0.7835 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.1699, allocations: 1.312 MB / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.605e-05/0.17, allocations: 0 / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.201e-05/0.17, allocations: 0 / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 2.035e-05/0.17, allocations: 0 / 0.7848 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003127/0.1703, allocations: 63.81 kB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 4.171e-05/0.1704, allocations: 19.98 kB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 2.899e-05/0.1704, allocations: 3.984 kB / 0.7849 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 1.772e-05/0.1704, allocations: 15.94 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.705e-05/0.1705, allocations: 15.97 kB / 0.7849 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.1705, allocations: 0 / 0.7849 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.1707, allocations: 103.8 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.1707, allocations: 7.984 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.162e-05/0.1707, allocations: 15.92 kB / 0.785 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001099/0.1708, allocations: 63.86 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1708, allocations: 0 / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.332e-06/0.1709, allocations: 0 / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.1709, allocations: 0 / 0.7851 GB, free: 11.56 MB / 0.6075 GB 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.0003553/0.1712, allocations: 351.8 kB / 0.7854 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.814e-05/0.1713, allocations: 8.031 kB / 0.7854 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.937e-05/0.1713, allocations: 8.844 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.08e-05/0.1714, allocations: 160.4 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.1714, allocations: 4.375 kB / 0.7856 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.1714, allocations: 4.375 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.998e-05/0.1715, allocations: 61.92 kB / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.1716, allocations: 0 / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.1716, allocations: 0 / 0.7857 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.88e-06/0.1716, allocations: 8 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.494e-05/0.1716, allocations: 19.98 kB / 0.7857 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.1718, allocations: 177.5 kB / 0.7859 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.096e-05/0.1719, allocations: 54.56 kB / 0.7859 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.543e-05/0.1719, allocations: 24.86 kB / 0.7859 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003871/0.1723, allocations: 0.5622 MB / 0.7865 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.1723, allocations: 38.44 kB / 0.7865 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.1723, allocations: 0 / 0.7865 GB, free: 9.809 MB / 0.6075 GB 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.01783/0.1902, allocations: 4.308 MB / 0.7907 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/0.1902, allocations: 51.41 kB / 0.7908 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.276e-05/0.1903, allocations: 93.86 kB / 0.7909 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.892e-05/0.1904, allocations: 29.7 kB / 0.7909 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.356e-05/0.1904, allocations: 80.14 kB / 0.791 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.881e-05/0.1905, allocations: 59.19 kB / 0.791 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.1907, allocations: 85.67 kB / 0.7911 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.211e-05/0.1908, allocations: 330.9 kB / 0.7914 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000437/0.1912, allocations: 303.9 kB / 0.7917 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004439/0.1917, allocations: 314.8 kB / 0.792 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.1929, allocations: 0.7546 MB / 0.7928 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.193, allocations: 0 / 0.7928 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001312/0.1943, allocations: 0.7941 MB / 0.7935 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1943, allocations: 10.19 kB / 0.7935 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1943, allocations: 0 / 0.7935 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.1943, allocations: 3.938 kB / 0.7936 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007038/0.195, allocations: 95.94 kB / 0.7936 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.199e-06/0.195, allocations: 0 / 0.7936 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004373/0.1955, allocations: 12 kB / 0.7937 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.528e-05/0.1956, allocations: 35.97 kB / 0.7937 GB, free: 2.273 MB / 0.6075 GB 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.0001695/0.1958, allocations: 125.7 kB / 0.7938 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.532e-05/0.1958, allocations: 0 / 0.7938 GB, free: 2.141 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002931/0.1988, allocations: 1.385 MB / 0.7952 GB, free: 0.7461 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1988, allocations: 8 kB / 0.7952 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1988, allocations: 0 / 0.7952 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.1988, allocations: 11.92 kB / 0.7952 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002386/0.2012, allocations: 1.802 MB / 0.7969 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2012, allocations: 0 / 0.7969 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006872/0.2019, allocations: 111.9 kB / 0.797 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.2019, allocations: 0 / 0.797 GB, free: 14.75 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.936e-05/0.202, allocations: 27.94 kB / 0.7971 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.202, allocations: 4 kB / 0.7971 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.202, allocations: 0 / 0.7971 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.204, allocations: 1.461 MB / 0.7985 GB, free: 13.24 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 3.764e-05/0.204, allocations: 88.98 kB / 0.7986 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-05/0.2041, allocations: 15.94 kB / 0.7986 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004296/0.2046, allocations: 11.98 kB / 0.7986 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.2047, allocations: 47.91 kB / 0.7987 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.606e-05/0.2048, allocations: 28 kB / 0.7987 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 2.545e-05/0.2048, allocations: 79.34 kB / 0.7988 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of sort global known variables: time 9.1e-08/0.2048, allocations: 0 / 0.7988 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005013/0.2053, allocations: 176 kB / 0.7989 GB, free: 12.79 MB / 0.6231 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.0004264/0.2058, allocations: 219.3 kB / 0.7991 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001109/0.2069, allocations: 0.7456 MB / 0.7999 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2069, allocations: 0 / 0.7999 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0005527/0.2074, allocations: 451.7 kB / 0.8003 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.2077, allocations: 23.23 kB / 0.8003 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002845/0.2106, allocations: 0.8553 MB / 0.8012 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.2108, allocations: 0.7219 MB / 0.8019 GB, free: 9.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001325/0.2121, allocations: 297.5 kB / 0.8021 GB, free: 9.441 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004955/0.2126, allocations: 91.41 kB / 0.8022 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of SimCode: time 4.31e-07/0.2126, allocations: 0 / 0.8022 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of Templates: time 0.01379/0.2264, allocations: 11.19 MB / 0.8132 GB, free: 14.21 MB / 0.6387 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.sim & ./Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck.pipe 2>&1)