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.00105/0.00105, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001087/0.001087, allocations: 192.1 kB / 16.13 MB, free: 6.668 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.283/1.283, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001991/0.001991, allocations: 282.5 kB / 290.2 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9134/0.9134, allocations: 169.2 MB / 0.4977 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 97.16 kB / 0.5945 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1457, allocations: 86.98 MB / 0.6795 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.00159/0.1473, allocations: 0.6691 MB / 0.6801 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.1487, allocations: 1.289 MB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.284e-05/0.1487, allocations: 0 / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.1487, allocations: 3.125 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 1.935e-05/0.1488, allocations: 0 / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.1491, allocations: 63.8 kB / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.366e-05/0.1491, allocations: 19.97 kB / 0.6814 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.1492, allocations: 4 kB / 0.6815 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.087e-05/0.1492, allocations: 7.984 kB / 0.6815 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.66e-05/0.1492, allocations: 15.92 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.1493, allocations: 5.406 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.1495, allocations: 99.83 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.1495, allocations: 4 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.544e-05/0.1495, allocations: 16.58 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.1497, allocations: 67.84 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1497, allocations: 1.719 kB / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1497, allocations: 0 / 0.6817 GB, free: 14.92 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.1497, allocations: 0 / 0.6817 GB, free: 14.92 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.0004075/0.1501, allocations: 354.4 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.1501, allocations: 11.97 kB / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.416e-05/0.1502, allocations: 9.562 kB / 0.682 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.1503, allocations: 161.9 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1503, allocations: 4.375 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.1503, allocations: 4.359 kB / 0.6822 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.1504, allocations: 57.94 kB / 0.6822 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.1505, allocations: 0.5312 kB / 0.6822 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.198e-06/0.1505, allocations: 4.625 kB / 0.6822 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.1505, allocations: 0 / 0.6822 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.9e-05/0.1506, allocations: 27.97 kB / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.1507, allocations: 161.7 kB / 0.6824 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001014/0.1508, allocations: 62.5 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.081e-05/0.1509, allocations: 28.84 kB / 0.6825 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004614/0.1513, allocations: 0.5583 MB / 0.6831 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.1514, allocations: 42.73 kB / 0.6831 GB, free: 13.16 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.103e-06/0.1514, allocations: 0 / 0.6831 GB, free: 13.16 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.02918/0.1806, allocations: 4.384 MB / 0.6874 GB, free: 8.637 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.1807, allocations: 55.34 kB / 0.6874 GB, free: 8.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.481e-05/0.1808, allocations: 93.86 kB / 0.6875 GB, free: 8.469 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.1809, allocations: 29.7 kB / 0.6875 GB, free: 8.434 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.204e-05/0.1809, allocations: 80.14 kB / 0.6876 GB, free: 8.352 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.1811, allocations: 55.25 kB / 0.6877 GB, free: 8.297 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003858/0.1815, allocations: 85.67 kB / 0.6878 GB, free: 8.207 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.1817, allocations: 326.9 kB / 0.6881 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008904/0.1826, allocations: 307.9 kB / 0.6884 GB, free: 7.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008739/0.1835, allocations: 317.5 kB / 0.6887 GB, free: 7.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.1861, allocations: 0.7723 MB / 0.6894 GB, free: 6.496 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1861, allocations: 4 kB / 0.6894 GB, free: 6.492 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002622/0.1887, allocations: 0.7942 MB / 0.6902 GB, free: 5.691 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.1888, allocations: 8 kB / 0.6902 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1888, allocations: 0 / 0.6902 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.1888, allocations: 0 / 0.6902 GB, free: 5.684 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.19, allocations: 91.94 kB / 0.6903 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1901, allocations: 0 / 0.6903 GB, free: 5.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006498/0.1907, allocations: 16 kB / 0.6903 GB, free: 5.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.1909, allocations: 31.98 kB / 0.6903 GB, free: 5.547 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.0002906/0.1912, allocations: 127 kB / 0.6905 GB, free: 5.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.1913, allocations: 7.906 kB / 0.6905 GB, free: 5.406 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00526/0.1966, allocations: 1.399 MB / 0.6918 GB, free: 4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1966, allocations: 7.984 kB / 0.6918 GB, free: 3.992 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1966, allocations: 7.938 kB / 0.6919 GB, free: 3.984 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.091e-05/0.1967, allocations: 3.984 kB / 0.6919 GB, free: 3.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004313/0.201, allocations: 1.817 MB / 0.6936 GB, free: 2.109 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.201, allocations: 0 / 0.6936 GB, free: 2.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.2021, allocations: 107.9 kB / 0.6937 GB, free: 2.004 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.2022, allocations: 4 kB / 0.6937 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.2023, allocations: 27.94 kB / 0.6938 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.2023, allocations: 0 / 0.6938 GB, free: 1.973 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.2023, allocations: 4.312 kB / 0.6938 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003461/0.2058, allocations: 1.469 MB / 0.6952 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.238e-05/0.2058, allocations: 92.89 kB / 0.6953 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.2059, allocations: 11.94 kB / 0.6953 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004799/0.2064, allocations: 11.98 kB / 0.6953 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.2066, allocations: 47.91 kB / 0.6954 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001241/0.2068, allocations: 28 kB / 0.6954 GB, free: 280 kB / 494.1 MB Notification: Performance of sorting global known variables: time 4.475e-05/0.2068, allocations: 83.34 kB / 0.6955 GB, free: 196 kB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2068, allocations: 0 / 0.6955 GB, free: 196 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0009052/0.2078, allocations: 180 kB / 0.6956 GB, free: 16 kB / 494.1 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.0006945/0.2085, allocations: 223 kB / 0.6958 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001927/0.2104, allocations: 0.7184 MB / 0.6965 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2104, allocations: 3.938 kB / 0.6966 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.2115, allocations: 451.8 kB / 0.697 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.212, allocations: 15.94 kB / 0.697 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004743/0.2167, allocations: 0.8677 MB / 0.6978 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.2171, allocations: 0.7184 MB / 0.6985 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002639/0.2198, allocations: 297.5 kB / 0.6988 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009233/0.2207, allocations: 95.41 kB / 0.6989 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.2208, allocations: 0 / 0.6989 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of Templates: time 0.02379/0.2446, allocations: 10.74 MB / 0.7094 GB, free: 1.938 MB / 0.4981 GB 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)