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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8176/0.8176, allocations: 143.4 MB / 158.3 MB, free: 5.785 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 177.1 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 223.2 MB / 447.7 MB, free: 6.516 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009536/0.0009536, allocations: 96.22 kB / 0.5188 GB, free: 2.871 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001743/0.001743, allocations: 271.3 kB / 0.6005 GB, free: 48.98 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003925/0.0003925, allocations: 19.98 kB / 0.6929 GB, free: 2.301 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.3995, allocations: 82.78 MB / 0.7737 GB, free: 26.23 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.5506, allocations: 109.2 MB / 0.8804 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.551, allocations: 79.83 kB / 0.8804 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.007184/0.5582, allocations: 2.395 MB / 0.8828 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.404e-06/0.5582, allocations: 3.938 kB / 0.8828 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.5582, allocations: 0 / 0.8828 GB, free: 10.41 MB / 0.5417 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.0003708/0.5586, allocations: 355.3 kB / 0.8831 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.5586, allocations: 8.031 kB / 0.8831 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.775e-05/0.5587, allocations: 4 kB / 0.8831 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.5588, allocations: 174.8 kB / 0.8833 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.5589, allocations: 7.953 kB / 0.8833 GB, free: 9.789 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.333e-05/0.5589, allocations: 8 kB / 0.8833 GB, free: 9.781 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.559, allocations: 57.66 kB / 0.8834 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.5591, allocations: 0 / 0.8834 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.5591, allocations: 0 / 0.8834 GB, free: 9.719 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.5591, allocations: 4 kB / 0.8834 GB, free: 9.715 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.299e-05/0.5592, allocations: 19.98 kB / 0.8834 GB, free: 9.695 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000188/0.5594, allocations: 165.7 kB / 0.8836 GB, free: 9.484 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.5595, allocations: 62.5 kB / 0.8836 GB, free: 9.414 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004994/0.56, allocations: 0.5583 MB / 0.8842 GB, free: 8.727 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.56, allocations: 34.56 kB / 0.8842 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 2.014e-06/0.56, allocations: 0 / 0.8842 GB, free: 8.684 MB / 0.5417 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.01891/0.579, allocations: 4.194 MB / 0.8883 GB, free: 4.352 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.579, allocations: 55.41 kB / 0.8883 GB, free: 4.285 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.171e-05/0.5791, allocations: 92.98 kB / 0.8884 GB, free: 4.188 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.65e-05/0.5792, allocations: 29.7 kB / 0.8885 GB, free: 4.152 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.75e-05/0.5792, allocations: 80.14 kB / 0.8885 GB, free: 4.07 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.88e-05/0.5793, allocations: 59.11 kB / 0.8886 GB, free: 4.012 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.655e-05/0.5794, allocations: 0 / 0.8886 GB, free: 4.012 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.5795, allocations: 322.8 kB / 0.8889 GB, free: 3.688 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004747/0.58, allocations: 307.9 kB / 0.8892 GB, free: 3.387 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.5804, allocations: 313.8 kB / 0.8895 GB, free: 3.082 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006983/0.5812, allocations: 380 kB / 0.8899 GB, free: 2.711 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.5812, allocations: 0 / 0.8899 GB, free: 2.711 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00141/0.5826, allocations: 0.7916 MB / 0.8906 GB, free: 1.914 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.5826, allocations: 8 kB / 0.8906 GB, free: 1.906 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.5826, allocations: 3.984 kB / 0.8906 GB, free: 1.902 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.5826, allocations: 0 / 0.8906 GB, free: 1.902 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007806/0.5834, allocations: 99.88 kB / 0.8907 GB, free: 1.805 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.5834, allocations: 0 / 0.8907 GB, free: 1.805 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004479/0.5839, allocations: 8 kB / 0.8907 GB, free: 1.797 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.841e-05/0.584, allocations: 35.98 kB / 0.8908 GB, free: 1.762 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000197/0.5842, allocations: 130.2 kB / 0.8909 GB, free: 1.625 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.075e-05/0.5843, allocations: 7.906 kB / 0.8909 GB, free: 1.617 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/0.5875, allocations: 1.392 MB / 0.8923 GB, free: 224 kB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.5875, allocations: 4 kB / 0.8923 GB, free: 220 kB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.5875, allocations: 0 / 0.8923 GB, free: 220 kB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5875, allocations: 0 / 0.8923 GB, free: 220 kB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002734/0.5903, allocations: 1.802 MB / 0.894 GB, free: 14.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.5903, allocations: 3.984 kB / 0.894 GB, free: 14.35 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007681/0.5911, allocations: 107.9 kB / 0.8941 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.5911, allocations: 4 kB / 0.8941 GB, free: 14.24 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.429e-05/0.5912, allocations: 24 kB / 0.8942 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.5912, allocations: 4 kB / 0.8942 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5912, allocations: 3.953 kB / 0.8942 GB, free: 14.21 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.5934, allocations: 1.47 MB / 0.8956 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 4.822e-05/0.5934, allocations: 92.89 kB / 0.8957 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.951e-05/0.5935, allocations: 8 kB / 0.8957 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.594, allocations: 15.95 kB / 0.8957 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.5941, allocations: 47.89 kB / 0.8958 GB, free: 12.53 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.939e-05/0.5942, allocations: 32.06 kB / 0.8958 GB, free: 12.5 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.174e-05/0.5942, allocations: 79.28 kB / 0.8959 GB, free: 12.42 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5943, allocations: 0 / 0.8959 GB, free: 12.42 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0006289/0.5949, allocations: 207.7 kB / 0.8961 GB, free: 12.22 MB / 0.5573 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005865/0.5955, allocations: 254.8 kB / 0.8963 GB, free: 11.96 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001166/0.5967, allocations: 0.7145 MB / 0.897 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.5967, allocations: 3.938 kB / 0.897 GB, free: 11.24 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006146/0.5973, allocations: 464.4 kB / 0.8975 GB, free: 10.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.5975, allocations: 15.94 kB / 0.8975 GB, free: 10.77 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.6005, allocations: 0.8458 MB / 0.8983 GB, free: 9.898 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.6008, allocations: 0.7223 MB / 0.899 GB, free: 9.148 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001414/0.6022, allocations: 297.5 kB / 0.8993 GB, free: 8.859 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005404/0.6027, allocations: 95.41 kB / 0.8994 GB, free: 8.766 MB / 0.5573 GB Notification: Performance of SimCode: time 8.32e-07/0.6027, allocations: 0 / 0.8994 GB, free: 8.766 MB / 0.5573 GB Notification: Performance of Templates: time 0.3414/0.9442, allocations: 10.11 MB / 0.9093 GB, free: 131.2 MB / 0.5573 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)