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.001235/0.001235, allocations: 108 kB / 15.6 MB, free: 132 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.001106/0.001106, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.295/1.295, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001998/0.001998, allocations: 282.6 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9201/0.9201, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 97.83 kB / 0.5952 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1599, allocations: 86.98 MB / 0.6802 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunctionDerivativeCheck): time 0.001931/0.1619, allocations: 0.6096 MB / 0.6808 GB, free: 92 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.1637, allocations: 1.283 MB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.1637, allocations: 0 / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.186e-05/0.1637, allocations: 0 / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.156e-05/0.1638, allocations: 3.938 kB / 0.682 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000393/0.1642, allocations: 75.73 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.05e-05/0.1642, allocations: 27.86 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.829e-05/0.1643, allocations: 0 / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.268e-05/0.1643, allocations: 11.98 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.845e-05/0.1644, allocations: 19.92 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.1644, allocations: 0 / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002208/0.1646, allocations: 103.9 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.1646, allocations: 4 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.047e-05/0.1647, allocations: 15.92 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.1648, allocations: 67.84 kB / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1649, allocations: 4 kB / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1649, allocations: 0 / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1649, allocations: 0 / 0.6824 GB, free: 14.46 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.000454/0.1653, allocations: 355.8 kB / 0.6827 GB, free: 14.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.1654, allocations: 8.031 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.606e-05/0.1654, allocations: 8.844 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.1656, allocations: 168.3 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.1656, allocations: 384 / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.1656, allocations: 8.375 kB / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.1658, allocations: 53.98 kB / 0.6829 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1658, allocations: 0 / 0.6829 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.1658, allocations: 4 kB / 0.6829 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1658, allocations: 8 kB / 0.6829 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.71e-05/0.1659, allocations: 19.98 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.1661, allocations: 161.7 kB / 0.6831 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001063/0.1662, allocations: 62.48 kB / 0.6832 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.834e-05/0.1662, allocations: 20.86 kB / 0.6832 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004659/0.1667, allocations: 0.5622 MB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.1667, allocations: 38.5 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.1667, allocations: 0 / 0.6838 GB, free: 12.71 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.02079/0.1875, allocations: 4.387 MB / 0.6881 GB, free: 8.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.1876, allocations: 55.41 kB / 0.6881 GB, free: 8.113 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.666e-05/0.1877, allocations: 93.86 kB / 0.6882 GB, free: 8.012 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 7.005e-05/0.1878, allocations: 29.64 kB / 0.6882 GB, free: 7.977 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.9e-05/0.1878, allocations: 88.12 kB / 0.6883 GB, free: 7.887 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.188, allocations: 51.2 kB / 0.6884 GB, free: 7.836 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002483/0.1882, allocations: 97.66 kB / 0.6885 GB, free: 7.734 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.75e-05/0.1883, allocations: 318.9 kB / 0.6888 GB, free: 7.414 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005187/0.1888, allocations: 319.8 kB / 0.6891 GB, free: 7.102 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005129/0.1894, allocations: 313.7 kB / 0.6894 GB, free: 6.797 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.1909, allocations: 0.7684 MB / 0.6901 GB, free: 6.027 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1909, allocations: 0 / 0.6901 GB, free: 6.027 MB / 494.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001569/0.1925, allocations: 0.7943 MB / 0.6909 GB, free: 5.227 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.1925, allocations: 4 kB / 0.6909 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1925, allocations: 0 / 0.6909 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.1926, allocations: 4 kB / 0.6909 GB, free: 5.219 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008692/0.1934, allocations: 103.9 kB / 0.691 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.1935, allocations: 0 / 0.691 GB, free: 5.117 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005703/0.194, allocations: 4 kB / 0.691 GB, free: 5.113 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.908e-05/0.1941, allocations: 35.98 kB / 0.691 GB, free: 5.078 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.0001996/0.1943, allocations: 119.1 kB / 0.6912 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.209e-05/0.1944, allocations: 7.906 kB / 0.6912 GB, free: 4.945 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003303/0.1977, allocations: 1.403 MB / 0.6925 GB, free: 3.535 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.1978, allocations: 8 kB / 0.6925 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.1978, allocations: 0 / 0.6925 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1978, allocations: 0 / 0.6925 GB, free: 3.527 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002904/0.2007, allocations: 1.817 MB / 0.6943 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.2008, allocations: 0 / 0.6943 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008536/0.2016, allocations: 119.9 kB / 0.6944 GB, free: 1.539 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.2016, allocations: 0 / 0.6944 GB, free: 1.539 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.91e-05/0.2017, allocations: 31.94 kB / 0.6945 GB, free: 1.508 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2017, allocations: 0 / 0.6945 GB, free: 1.508 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.2017, allocations: 0 / 0.6945 GB, free: 1.508 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.204, allocations: 1.473 MB / 0.6959 GB, free: 16 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.833e-05/0.2041, allocations: 96.89 kB / 0.696 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.398e-05/0.2042, allocations: 7.938 kB / 0.696 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005712/0.2048, allocations: 12 kB / 0.696 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.205, allocations: 43.95 kB / 0.6961 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-05/0.205, allocations: 32 kB / 0.6961 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.694e-05/0.2051, allocations: 79.34 kB / 0.6962 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2051, allocations: 0 / 0.6962 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005688/0.2057, allocations: 176 kB / 0.6963 GB, free: 15.56 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.0004771/0.2062, allocations: 227 kB / 0.6965 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001339/0.2075, allocations: 0.7417 MB / 0.6973 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2075, allocations: 0 / 0.6973 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000647/0.2082, allocations: 451.8 kB / 0.6977 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003284/0.2085, allocations: 20.16 kB / 0.6977 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003625/0.2121, allocations: 0.7974 MB / 0.6985 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.2125, allocations: 0.7181 MB / 0.6992 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001423/0.2139, allocations: 290.5 kB / 0.6995 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005251/0.2144, allocations: 95.41 kB / 0.6996 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of SimCode: time 2.505e-06/0.2144, allocations: 0 / 0.6996 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of Templates: time 0.01803/0.2325, allocations: 11.23 MB / 0.7105 GB, free: 1.039 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)